How do I make use of a .wsdl file that is attached to a secure remote server?
I recently been assigned a project to develop an internal web service that makes use of an outside service from Sprint. the only thing I have is a .wsdl file web reference from Sprint. When I add the web reference to the project and compile my code, I get a parser error message (posted).
I have used web services before; meaning that they have an extension of .asmx. however, this service has an ?wsdl format and I don't know if there is a real difference. How can I fix the .wsdl file to prevent the compilation error (posted).
If you need copy of .wsdl and .discomap file I can provide that.
Full error code
Parser Error Message: Schema item 'element' named 'getSmsDeliveryStatus' from namespace 'http://www.csapi.org/schema/parlayx/sms/send/v1_0/local'. The global element 'http://www.csapi.org/schema/parlayx/sms/send/v1_0/local:getSmsDeliveryStatus' has already been declared.
justapimp
Junior Poster in Training
87 posts since Sep 2007
Reputation Points: 11
Solved Threads: 1
I am developing a web service for our internal client and this web service MUST make use of the Spring .wsdl.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:tns="http://www.csapi.org/wsdl/parlayx/sms/send/v1_0/service" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:interface="http://www.csapi.org/wsdl/parlayx/sms/send/v1_0/interface" xmlns="http://schemas.xmlsoap.org/wsdl/" name="parlayx_sms_send_service" targetNamespace="http://www.csapi.org/wsdl/parlayx/sms/send/v1_0/service" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:import namespace="http://www.csapi.org/wsdl/parlayx/sms/send/v1_0/interface" location="http://testgatewaytws.pcslab.com/SendSmsService/5939559e237816bf1033ed00281dd0f5?wsdl=parlayx_sms_send_interface.wsdl" />
<wsdl:types />
<wsdl:binding name="SendSmsBinding" type="interface:SendSms">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="sendSms">
<soap:operation soapAction="" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="InvalidArgumentException">
<soap:fault use="literal" name="InvalidArgumentException" namespace="" />
</wsdl:fault>
<wsdl:fault name="UnknownEndUserException">
<soap:fault use="literal" name="UnknownEndUserException" namespace="" />
</wsdl:fault>
<wsdl:fault name="MessageTooLongException">
<soap:fault use="literal" name="MessageTooLongException" namespace="" />
</wsdl:fault>
<wsdl:fault name="PolicyException">
<soap:fault use="literal" name="PolicyException" namespace="" />
</wsdl:fault>
<wsdl:fault name="ServiceException">
<soap:fault use="literal" name="ServiceException" namespace="" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="sendSmsLogo">
<soap:operation soapAction="" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="InvalidArgumentException">
<soap:fault use="literal" name="InvalidArgumentException" namespace="" />
</wsdl:fault>
<wsdl:fault name="UnknownEndUserException">
<soap:fault use="literal" name="UnknownEndUserException" namespace="" />
</wsdl:fault>
<wsdl:fault name="UnsupportedFormatException">
<soap:fault use="literal" name="UnsupportedFormatException" namespace="" />
</wsdl:fault>
<wsdl:fault name="MessageTooLongException">
<soap:fault use="literal" name="MessageTooLongException" namespace="" />
</wsdl:fault>
<wsdl:fault name="PolicyException">
<soap:fault use="literal" name="PolicyException" namespace="" />
</wsdl:fault>
<wsdl:fault name="ServiceException">
<soap:fault use="literal" name="ServiceException" namespace="" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="sendSmsRingTone">
<soap:operation soapAction="" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="InvalidArgumentException">
<soap:fault use="literal" name="InvalidArgumentException" namespace="" />
</wsdl:fault>
<wsdl:fault name="UnknownEndUserException">
<soap:fault use="literal" name="UnknownEndUserException" namespace="" />
</wsdl:fault>
<wsdl:fault name="UnsupportedFormatException">
<soap:fault use="literal" name="UnsupportedFormatException" namespace="" />
</wsdl:fault>
<wsdl:fault name="MessageTooLongException">
<soap:fault use="literal" name="MessageTooLongException" namespace="" />
</wsdl:fault>
<wsdl:fault name="PolicyException">
<soap:fault use="literal" name="PolicyException" namespace="" />
</wsdl:fault>
<wsdl:fault name="ServiceException">
<soap:fault use="literal" name="ServiceException" namespace="" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getSmsDeliveryStatus">
<soap:operation soapAction="" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="UnknownRequestIdentifierException">
<soap:fault use="literal" name="UnknownRequestIdentifierException" namespace="" />
</wsdl:fault>
<wsdl:fault name="ServiceException">
<soap:fault use="literal" name="ServiceException" namespace="" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SendSmsService">
<wsdl:port name="SendSms" binding="tns:SendSmsBinding">
<soap:address location="http://testgatewaytws.pcslab.com/SendSmsService/5939559e237816bf1033ed00281dd0f5" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
justapimp
Junior Poster in Training
87 posts since Sep 2007
Reputation Points: 11
Solved Threads: 1
justapimp
Junior Poster in Training
87 posts since Sep 2007
Reputation Points: 11
Solved Threads: 1
Yes I can and you are right there is a problem with the wsdl and Sprint is currently working on the repair. However, they have one of the services fix and I am now able to access the methods within. but for some reason, I can't make use of the RequestSoadContext.Security.Elements.Add(xxxx) method. Would this be a function of X509 or a method within the wsdl?
justapimp
Junior Poster in Training
87 posts since Sep 2007
Reputation Points: 11
Solved Threads: 1