WSDL help, what type is xml doc as it being passed via soap?
Posted: Thu Apr 20, 2006 3:57 pm
feyd | Please use
i then pass this data via soap, a serialised xml doc. what data type is this? am i sending a long string? i did a 'is_string', 'is_array' test etc, and php says it is a string.
I have created my service so that very little WSDL is needed, basically all calls go to one function, in xml doc form.
When i try to create an ASP.net client, it seems to have some kind of problem with this string.
i get soapmapper errors, and it cant create the string element or whatever.
how should a WSDL file entry look if passing an xml doc? would it just be stated as a string? everything seems to work for PHP side of things.
also, i use disco() to generate my WSDL, asp.net seems to have a problem with this, and likes the actual file to exist. This means i have had to copy the WSDL output from php. whats the point in having the disco?
surely someone else must have had these kind of problems when first starting to create multiple clients for php soap services?
heres my wsdl, just for the help of it, like i said, 1 function, 1 parameter back/forth(an xml doc string):
actual asp.net error when building simple .vbs client:
thanks
m
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all,
i have a web service, my server/client create xml docs with serializer to pass info between them. I pass data that i get from the serialiser eg:Code: Select all
$xmldocdata = $serialiser.getSerialisedData();I have created my service so that very little WSDL is needed, basically all calls go to one function, in xml doc form.
When i try to create an ASP.net client, it seems to have some kind of problem with this string.
i get soapmapper errors, and it cant create the string element or whatever.
how should a WSDL file entry look if passing an xml doc? would it just be stated as a string? everything seems to work for PHP side of things.
also, i use disco() to generate my WSDL, asp.net seems to have a problem with this, and likes the actual file to exist. This means i have had to copy the WSDL output from php. whats the point in having the disco?
surely someone else must have had these kind of problems when first starting to create multiple clients for php soap services?
heres my wsdl, just for the help of it, like i said, 1 function, 1 parameter back/forth(an xml doc string):
Code: Select all
<definitions name="NNEPC" targetNamespace="urn:NNEPC" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:NNEPC" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types xmlns="http://schemas.xmlsoap.org/wsdl/" />
<message name="accessRequest">
<part name="args" type="xsd:String" />
</message>
<portType name="NNEPCPort">
<operation name="access">
<input message="tns:accessRequest" />
<output message="tns:" />
</operation>
</portType>
<binding name="NNEPCBinding" type="tns:NNEPCPort">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="access">
<soap:operation soapAction="NNEPC#nnepc_service#access" />
<input>
<soap:body use="encoded" namespace="NNEPC" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="NNEPC" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
<service name="NNEPCService">
<documentation />
<port name="NNEPCPort" binding="tns:NNEPCBinding">
<soap:address location="http://www.mentalwealthstudios.com/NNEPC2/practice3/server1.php" />
</port>
</service>
</definitions>
actual asp.net error when building simple .vbs client:
Code: Select all
soapmapper: the schema definiton for <targetnamespace>..... for soapmapper string cannot be found......
wsdlreader: analysing wsdl file failed....initiation of service failed.....terrorism alert, please vacate the building....etc
thanks
m
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]