use Axis webservice - null ResponseObject , but trace shows validResponse

Discussion in 'ASP .Net Web Services' started by Mathias Fritsch, Jul 9, 2008.

  1. I have an webservice that runs on Apache Axis version: 1.2 and a
    client in c#.

    The static wsdl is http://webservice.tecdoc.net/pegasus-1-2/wsdl/TecdocToCatWL

    I post a valid and get a response that seams to be correct.

    (Trace at the end of my post)

    However if I debug into the generated classes I have no Respone-Object

    object[] results = this.Invoke("getPegasusVersionInfo",
    new object[] {
    in0});
    return ((VersionInfoResponse)(results[0]));

    result[0] is null

    Is there a way to debug further or log information about what is
    happening when parsing the response?

    regards

    Mathias Fritsch




    POST /pegasus-1-2/services/TecdocToCatWL HTTP/1.1

    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
    Protocol 2.0.50727.1433)

    VsDebuggerCausalityData: uIDPo7VU6DHRX
    +NLvDhBUuKkriYAAAAAJCbrKipbzkex4ydl5eKBhbbuYo3SNhtChFYp8PNR7rAACQAA

    Content-Type: text/xml; charset=utf-8

    SOAPAction: ""

    Host: webservice.tecdoc.net

    Content-Length: 439

    Expect: 100-continue

    Connection: Keep-Alive



    <?xml version="1.0" encoding="utf-8"?><soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/
    XMLSchema"><soap:Body><getPegasusVersionInfo xmlns="http://
    webservice.tecdoc.net/pegasus-1-2/services/
    TecdocToCatWL"><in0><provider xmlns="http://
    datatype.cat.tecdoc.net">171</provider></in0></getPegasusVersionInfo></
    soap:Body></soap:Envelope>HTTP/1.1 200 OK

    Date: Wed, 09 Jul 2008 16:07:04 GMT

    Server: Apache/2.0.55

    P3P: CP="ALL DSP NID CURa ADMa OTPa OUR LEG UNI COM NAV"

    Keep-Alive: timeout=15, max=100

    Connection: Keep-Alive

    Transfer-Encoding: chunked

    Content-Type: text/xml;charset=utf-8



    265

    <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getPegasusVersionInfoResponse
    xmlns="http://webservice.tecdoc.net/pegasus-1-2/services/
    TecdocToCatWL"><getPegasusVersionInfoReturn xmlns=""><build>446</
    build><date>2008/02/27 11:34</date><major>1</major><minor>2</
    minor><revision>1</revision><status>200</status><statusText
    xsi:nil="true"/></getPegasusVersionInfoReturn></
    getPegasusVersionInfoResponse></soapenv:Body></soapenv:Envelope>

    0
    Mathias Fritsch, Jul 9, 2008
    #1
    1. Advertising

  2. Re: use Axis webservice - null ResponseObject , but trace shows valid Response

    Be sure that you're receiving the correct namespaces. For instance, I notice
    that getPegasusVersionInfoReturn has xmlns="". Is that what the WSDL says
    you should expect?

    --
    John Saunders | MVP - Connected System Developer
    John Saunders, Jul 11, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gce
    Replies:
    0
    Views:
    751
  2. Replies:
    0
    Views:
    898
  3. Cyril
    Replies:
    2
    Views:
    4,485
    Cyril
    Jun 1, 2006
  4. ed
    Replies:
    2
    Views:
    414
    Mike Schilling
    Dec 8, 2006
  5. Gianni

    IE shows false and Firefox shows true

    Gianni, Jul 10, 2009, in forum: Javascript
    Replies:
    3
    Views:
    438
    Thomas 'PointedEars' Lahn
    Jul 10, 2009
Loading...

Share This Page