Results 1 to 6 of 6
- 02-01-2012, 03:20 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
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,
- 02-01-2012, 03:27 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
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?
- 02-01-2012, 04:00 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
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
- 02-01-2012, 05:39 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
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.
- 02-02-2012, 03:24 PM #5
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
Re: javax.xml.rpc.ServiceException: WsdlMessage
Thanks for the reply.I regenerated my code with the wsdl using clientgen and the error is resolved.
- 02-02-2012, 03:57 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
javax.mail.Session cannot be cast to javax.mail.Session
By JustinCase in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 03-26-2012, 05:43 PM -
Maven - Unresolved references to [javax.activation, javax.annotation]
By rcbandit in forum Apache MavenReplies: 0Last Post: 01-28-2012, 09:53 PM -
javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
By vietnamusa in forum Enterprise JavaBeans (EJB)Replies: 4Last Post: 04-01-2011, 07:47 PM -
javax.microedition.io/ javax.bluetooth
By ahtiven in forum New To JavaReplies: 3Last Post: 01-13-2009, 02:54 PM -
map javax.swing.text.Element to javax.swing.text.View
By elizabeth in forum New To JavaReplies: 1Last Post: 07-30-2007, 07:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks