Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 9 Jul 2008 09:14:55 -0700 (PDT),    group: microsoft.public.dotnet.framework.aspnet.webservices        back       


use Axis webservice - null ResponseObject , but trace shows valid Response   
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
date: Wed, 9 Jul 2008 09:14:55 -0700 (PDT)   author:   Mathias Fritsch

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
date: Fri, 11 Jul 2008 10:46:11 -0400   author:   John Saunders

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us