Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX issue - casting problem?

 
sonusgr sonusgre
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I've got an odd issue with an externally provided WSDL. While feeding it to wsimport I get the following

[WARNING] not a WS-I BP1.1 compliant SOAP port "TestSoap": the wsdl binding has mixed style, it must be rpc-literal or document-literal operation!
line 471 of http://test.xxxxx.xx:8080/ITestService.asmx?WSDL

[WARNING] SOAP port "TestSoap12": uses a non-standard SOAP 1.2 binding.
line 474 of http://test.xxxx.xx:8080/TestService.asmx?WSDL

[WARNING] not a WS-I BP1.1 compliant SOAP port "TestSoap12": the wsdl binding has mixed style, it must be rpc-literal or document-literal operation!
line 474 of http://test.xxxxx.xx:8080/TestService.asmx?WSDL

generating code...

[ERROR] com.sun.tools.ws.processor.model.jaxb.RpcLitMember cannot be cast to com.sun.tools.ws.processor.model.jaxb.JAXBType

When loading the WSDL into SoapUI it all looks fine..is this a WSDL messup or a wsimport bug?

Thanks!
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
My guess is that your WSDL has problems, given the error messages.
As stated, allowed binding styles are Document/Literal and RPC/Literal. This information is found in the <binding> element of the WSDL, as in this example:

Best wishes!
 
sonusgr sonusgr
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan, thanks for your quick reply!

The weird thing is that it works fine with Axis, but it fails with jax-ws (which is really what we need to work with)
I am posting an extract from the wsdl, if could spot anything that I cannot I ll be really grateful!

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Which are the lines that you get warnings about in the WSDL?
Since you post an extract, it is difficult to tell using the line numbers.
Best wishes!
 
A timing clock, fuse wire, high explosives and a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!