Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > use Axis webservice - null ResponseObject , but trace shows validResponse

Reply
Thread Tools

use Axis webservice - null ResponseObject , but trace shows validResponse

 
 
Mathias Fritsch
Guest
Posts: n/a
 
      07-09-2008
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.../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
+NLvDhBUuKkriYAAAAAJCbrKipbzkex4ydl5eKBhbbuYo3SNht ChFYp8PNR7rAACQAA

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/"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xmlnssd="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/"
xmlnssd="http://www.w3.org/2001/XMLSchema" xmlnssi="http://
www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getPegasusVersionInfoResp onse
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

 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      07-11-2008
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis question: what is the correct way to use Axis? ed Java 2 12-08-2006 07:31 PM
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
Trace: Can anyone suggest a good tool to catch trace messages? Rukmal Fernando ASP .Net 4 10-27-2003 09:03 PM



Advertisments