Strange SOAP error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mikael.lindqvist@pokergaming.com

    Strange SOAP error

    I have a program that calls a web service using the PEAR SOAP
    extension. The problem is that on one machine it works and on another
    it doesn't. The actual part of the conversation that specifies the
    method to call and the parameters looks like this in the case where it
    works:

    <ns5:getCustome rInfoFromSID>
    <ns5:sid>xxx</ns5:sid>
    </ns5:getCustomer InfoFromSID>

    And in the case where it doesn't work like this:

    <ns5:getCustome rInfoFromSID>
    <sid xsi:type="xsd:s tring">xxx</sid>
    </ns5:getCustomer InfoFromSID>

    The webservice fails and gives a message:

    Error deserializing arguments.
    Unrecognized element sid - expected sid@http://www.test.com/

    Which kind of makes sense since there is no ns5 namespace on the
    parameter. But why isn't there?

    Any ideas would be much appreciated!

    -- Mikael

  • vincent

    #2
    Re: Strange SOAP error

    Hey, I'm facing the same problem here. A few minutes ago I read that it
    can depend on the java version you are using. With java 1.4.2 it should
    work, but not with version 1.5.
    But I'm working here with version 1.3.2. And I think I'm going to change
    this, because this error is turning me mad!

    Do you think it's possible?

    Greets

    -------------------------------------
    mikael.lindqvis t@pokergaming.c wrote:



    [color=blue]
    > I have a program that calls a web service using the PEAR SOAP
    > extension. The problem is that on one machine it works and on another
    > it doesn't. The actual part of the conversation that specifies the
    > method to call and the parameters looks like this in the case where it
    > works:[/color]
    [color=blue]
    > <ns5:getCustome rInfoFromSID>
    > <ns5:sid>xxx</ns5:sid>
    > </ns5:getCustomer InfoFromSID>[/color]
    [color=blue]
    > And in the case where it doesn't work like this:[/color]
    [color=blue]
    > <ns5:getCustome rInfoFromSID>
    > <sid xsi:type="xsd:s tring">xxx</sid>
    > </ns5:getCustomer InfoFromSID>[/color]
    [color=blue]
    > The webservice fails and gives a message:[/color]
    [color=blue]
    > Error deserializing arguments.
    > Unrecognized element sid - expected sid@http://www.test.com/[/color]
    [color=blue]
    > Which kind of makes sense since there is no ns5 namespace on the
    > parameter. But why isn't there?[/color]
    [color=blue]
    > Any ideas would be much appreciated![/color]
    [color=blue]
    > -- Mikael[/color]







    -- ---------------------------------------------
    Article posted with Web Developer's USENET Archive

    no-spam read and post WWW interface to your favorite newsgroup -
    comp.lang.php - 31231 messages and counting!
    -----------------------------------------------

    Comment

    Working...