Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Wed, 23 Jul 2008 05:56:53 -0700 (PDT),    group: microsoft.public.xml.soap        back       


Parameter not passed when calling ASP.NET web service from soap::lite   
Hi,

I have a weird problem, please help. I have an ASP.NET webservice that
I am trying to call from a perl script via soap::lite. I have
installed the latest version of soap::lite.

The stub from stubmaker sends this SOAP Message:

SOAP::Transport::HTTP::Client::send_receive: POST http://www.drobnik.net/services/tv.asmx
HTTP/1.1
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Content-Length: 748
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.drobnik.net/services/GetSeriesName"

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:tm="http://
microsoft.com/wsdl/mime/textMatching/" xmlns:soap12="http://
schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://
schemas.xmlsoap.org/wsdl/mime/" soap:encodingStyle="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/
XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://
www.drobnik.net/services/"><soap:Body><tns:GetSeriesName><name
xsi:type="s:string">Colbert</name></tns:GetSeriesName></soap:Body></
soap:Envelope>




If I manually code the soap request as in the example on the Microsoft
page, the request looks like this. The only difference I could see is
that the function name does not have the name space directly attached
but in an extra name space tns.

SOAP::Transport::HTTP::Client::send_receive: POST http://www.drobnik.net/services/tv.asmx
HTTP/1.1
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Content-Length: 481
Content-Type: text/xml; charset=utf-8
SOAPAction: http://www.drobnik.net/services/GetSeriesName

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/
XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/
encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><GetSeriesName xmlns="http://www.drobnik.net/
services/"><name xsi:type="xsd:string">Colbert</name></GetSeriesName></
soap:Body></soap:Envelope>


The second query works and passes the parameter correctly. The first
request however, even though I don't see a difference in the name
spaces causes the parameter to be lost.

What is the difference for the asp.net listener between those
requests?

cheers
Oliver Drobnik
date: Wed, 23 Jul 2008 05:56:53 -0700 (PDT)   author:   drops

Google
 
Web ureader.com


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