質問

I'm trying to import a WSDL using wsimport (JDK 6).

This fails, however, telling me to:

turn off BP 1.1 conformance warnings

How can I configure these in wsimport?

I've tried running wsimport using:

wsimport http://tripauthority.com/hotel.asmx?WSDL 

But it only replies:

its not WS-I BP 1.1 compliant: the wsdl binding has mixed style, it must be rpc-literal or document-literal operation. try running wsimport with -extension switch.

And I've tried adding the flag -extension but wsimport still won't complete (maybe I'm doing it wrong?):

wsimport http://tripauthority.com/hotel.asmx?WSDL -extension

Can anyone help? Thanks

P.s. I can't use Eclipse's Wizard for creating web clients using a WSDL, since this will run on Google App Engine which doesn't allow the rmi package. Unless there's a way to tell this Wizard not to use RMI, which I'd also be interested in.

Update

The supplier additionally recommends this, but again, I don't know what needs to be done for this:

Recommendation: To make it conformant change the implementation of the service to use 'rpc-literal' or 'document-literal' SOAP messages. You need to add explicit Use=SoapBindingUse.Literal property to all service and method level attributes: SoapRpcService, SoapRpcMethod, SoapDocumentService, SoapDocumentMethod.

Recommendation: To make binding conformant add explicit SoapRpcMethod or SoapDocumentMethod attribute to all WebMethods of this binding.

役に立ちましたか?

解決

You could download the WSDL to your local disk and from the binding elements remove the operations whose names are "SubmitRequestRpc", if you're not using them. Then try wsimport with the local modified file.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top