473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Interoperability PERL:ASP.Net

Hey All,

Thanks Dino for your previous help.

I have a working Perl script on a Linux box using a soap::lite wrapper. I
am trying to use the Perl module WSDL::generator to generate a WSDL. Using
that WSDL. I was hoping to reference the Perl web method from an ASP.Net web
part. The problem is that when I add the web-reference using VS I get the
following error

"Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'smssendSMSBinding' from namespace 'http://janus/AxeSMS'. Unable to
import operation 'sendSMS'. The element 'http://janus/AxeSMS:sendSMSRequest'
is missing.".

I realize this is generated via the WSDL, but what is wrong with it?

Thanks for your help,
Josh.

THE CODE:
THE WSDL:
<?xml version="1.0"?>
<definitions name="sendSMS"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://janus/AxeSMS"
xmlns:s="http://janus/AxeSMS"
xmlns:s0="http://janus/AxeSMS"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema targetNamespace="">
<xsd:element name="sendSMSRequest" type="xsd:string"
/>
<xsd:element name="sendSMSResponse"
type="xsd:string" />

</xsd:schema>
</types>
<message name="sendSMSRequest">
<part name="sendSMSRequestSoapMsg"
element="s0:sendSMSRequest"/>
</message>
<message name="sendSMSResponse">
<part name="sendSMSResponseSoapMsg"
element="s0:sendSMSResponse"/>
</message>
<portType name="smssendSMSPortType">
<operation name="sendSMS">
<input message="s:sendSMSRequest" />
<output message="s:sendSMSResponse" />
</operation>
</portType>
<binding name="smssendSMSBinding" type="s:smssendSMSPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sendSMS">
<soap:operation style="document"
soapAction=""/>

<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="sendSMS">
<documentation>
Send SMS
</documentation>
<port name="smssendSMSPort" binding="s:smssendSMSBinding">
<soap:address
location="http://janus/cgi-bin/sms.cgi"/>
</port>
</service>
</definitions>

THE PERL SOAP WRAPPER
#!/usr/bin/perl -w
# hw_client.pl - SMS Client, note that asp.net demands very specific things
to be defined in the SOAP::lite interface.
# ASP.NET demands that everything has a namespace including the input/output
parameters, and that the input parameters also have a specific type assigned
to them.
use lib '/usr/local/apache/cgi-bin/AxeSMS/';
use SOAP::Lite;

my $no = shift;
my $txt = shift;

print "\n\nCalling the SOAP Server to say hello\n\n";

#print SOAP::Lite
# -> uri('http://janus/AxeSMS')
# -> proxy('http://janus/cgi-bin/sms2.cgi')
# -> sendSMS($no, $txt)
# -> result . "\n\n";

print SOAP::Lite
-> uri('http://janus/AxeSMS')
-> on_action(sub{sprintf '%s/%s', @_ })
-> proxy('http://janus/cgi-bin/sms.cgi')
-> sendSMS(SOAP::Data -> name(no => $no) -> type('string') ->
uri('http://janus/AxeSMS'), SOAP::Data -> name(txt => $txt) ->
type('string') -> uri('http://janus/AxeSMS'))
-> result . "\n\n";

Nov 19 '05 #1
0 1033

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get a perl/asp/php variable into client-side js?...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get a perl/asp/php variable into client-side js?...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get a perl/asp/php variable into client-side js?...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get a perl/asp/php variable into client-side js?...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.