javax.xml.rpc.ServiceException: WsdlMessage
I am trying to hit a target site wsdl from my weblogic 10.3.5 deployed java application.I get the exception when I hit the wsdl
javax.xml.rpc.ServiceException: WsdlMessage {http://webservices.webservicetest.test.com}testrequest, part system, for a doc-lit-wrap style operation should use global element.
at weblogic.wsee.jaxrpc.ServiceImpl.throwServiceExcep tion(ServiceImpl.java:185)
at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl. java:170)
at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImp l.java:129)
Is there some issue with the wsdl or I have to modify my java code as per the wsdl.I am new to Webservices.
I have a wsdl ,a mapping xml ,a stub ,Service class in my Java code.Do I have to change any of these.
Please help.
Thanks,
Re: javax.xml.rpc.ServiceException: WsdlMessage
Not knowing what the service does, or what it accepts, it's going to be hard to say.
What are you sending?
What does the WSDL actually say?
Re: javax.xml.rpc.ServiceException: WsdlMessage
Thanks for the reply.The wsdl has lines like
<wsdl:message name="testrequest">
<wsdl:part name="system" type="xsd:string" />
<wsdl:part name="test2" type="xsd:string" />
<wsdl:part name="test3" type="tns2:testrequest />
</wsdl:message>
<wsdl:operation name="test" parameterOrder="system password req">
Thanks for the reply.I can share a few line of The wsdl containing the word testrequest
<wsdl:message name="testrequest">
<wsdl:part name="system" type="xsd:string" />
<wsdl:part name="test2" type="xsd:string" />
<wsdl:part name="test3" type="tns2:testrequest />
</wsdl:message>
<wsdl:operation name="test" parameterOrder="system test2,test3">
<wsdl:input message="impl:testrequest" name="testrequest" />
<wsdl:input name="testrequest">
<wsdlsoap:body namespace="http://webservices.webservicetest.test.com" use="literal" />
</wsdl:input>
Can you provide some indications as to why it says that the part system should be a global element?
I know its difficult to say without the wsdl but because of security I cannot share
Re: javax.xml.rpc.ServiceException: WsdlMessage
I think it's something to do with where the parts of a multipart message can be located.
Looks to me like you might be nesting them?
As I say, can't tell with the limited info, but that's where I would look.
Can you use soap-ui or something similar against the service?
Might shed some light.
Re: javax.xml.rpc.ServiceException: WsdlMessage
Thanks for the reply.I regenerated my code with the wsdl using clientgen and the error is resolved.
Re: javax.xml.rpc.ServiceException: WsdlMessage
Haha...the good old "have you tried turning it off and on again"?
:)