Connecting a Perl Web Service to ASP.Net

J

josh

Hi All,

I have been looking on the internet for a solution to this problem for some
time now with no luck, could you guys help me.

I have a perl web service running on a linux box. In my ASP.Net
application i want to be able to call this method as a web refrence, I have
written a WSDL as an interface between the two platforms.

When I try to refrence this WSDL using asp.net i get the following error
message: "The proxy settings on this computer are not configured correctly
for web discovery. Click the Help button for more information."

If anyone could help it would be greatly appreciated,

Josh.


THE WSDL

<?xml version="1.0"?>
<definitions name="sms" targetNamespace = "http://tempuri.org/wsdl/"
xmlns:wsdlns="http://tempuri.org/wsdl/"
xmlns:typens="http://tempuri.org/type"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:stk="http://schemas.microsoft.com/soap-toolkit/wsdl-extension"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<schema targetNamespace="http://tempuri.org/type"
xmlns="http://www.w3.org/2000/10/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
</schema>
</types>
<message name="sendSMSRequest">
<part name="sendSMSRequestSoapMsg" element="xsdl:sendSMSRequest"/>
</message>
<message name="sendSMSResponse">
<part name="sendSMSResponseSoapMsg" element="xsdl:sendSMSResponse"/>
</message>
<portType name="smssmsPortType">
<operation name="sendSMS">
<input message="tns:sendSMSRequest" />
<output message="tns:sendSMSResponse" />
</operation>
</portType>
<binding name="smssmsBinding" type="tns:smssmsPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sendSMS">
<soap:eek:peration style="document" soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="sms">
<documentation>
Send SMS
</documentation>
<port name="smssmsPort" binding="tns:smssmsBinding">
<soap:address location="http://<LINUX SERVER>/cgi-bin/sms.cgi"/>
</port>
</service>
</definitions>
 
D

Dino Chiesa [Microsoft]

Josh, you wrote,
When I try to refrence this WSDL using asp.net ...

What exactly do you mean by that statement?
What are you trying to do?
Are you using a tool, if so which one?
If it is in code, then show us the code?


After you fix the first problem, you will run into the second problem: the
WSDL you provided is broken.
It references a namespace prefix (xsdl), and types within that namespace,
which are never defined.
It includes references to namespaces which are never used.

Building a WSDL that corresponds to a given pre-existing web service, such
as one built in Perl with SOAP::Lite or whatever, is tricky.
Without toolkit support for WSDL - in other words support for
auto-generating WSDL from SOAP::Lite, or support for generating a SOAP::Lite
skeleton from an existing WSDL -- There is no guarantee that the WSDL you
write will match the service you write. Getting them to match is tricky.

-Dino
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top