Results 1 to 6 of 6
  1. #1
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default 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,

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,002
    Rep Power
    20

    Default 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?

  3. #3
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default 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

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,002
    Rep Power
    20

    Default 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.

  5. #5
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default Re: javax.xml.rpc.ServiceException: WsdlMessage

    Thanks for the reply.I regenerated my code with the wsdl using clientgen and the error is resolved.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,002
    Rep Power
    20

    Default Re: javax.xml.rpc.ServiceException: WsdlMessage

    Haha...the good old "have you tried turning it off and on again"?
    :)

Similar Threads

  1. javax.mail.Session cannot be cast to javax.mail.Session
    By JustinCase in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 03-26-2012, 05:43 PM
  2. Replies: 0
    Last Post: 01-28-2012, 09:53 PM
  3. Replies: 4
    Last Post: 04-01-2011, 07:47 PM
  4. javax.microedition.io/ javax.bluetooth
    By ahtiven in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 02:54 PM
  5. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •