• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JAX issue - casting problem?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic