Click here to Skip to main content
15,916,941 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello there.

I am trying to send data to a remote location which is not in the same network via web service(using soap header).I am writing code in asp.net 3.5 and the remote location uses php.

I added his reference to my project as web referance and whenever I try to call "sendIktsData" it throws an exception saying that : "Procedure 'base64Binary' not present".

So I googled and try to find some answers but I can't find anything yet.
I asked the person who made the wdsl, he said the service works and send me another web page that calls the service and it looks like the service works. (The page is also made in php by the way)

So what could be the problem? My guess is he should have add something into this service. (You see I am totally clueless)

So here is the wsdl I hope you can help me if something is missing in here :
XML
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:tns="http://xx.xx.xx.xx/tiks-servis/"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                  xmlns="http://schemas.xmlsoap.org/wsdl/"
                  name="IktsData"
                  targetNamespace="http://xx.xx.xx.xx/tiks-servis/"
                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types />
  <wsdl:message name="sendIktsDataRequest">
    <wsdl:part name="data2" type="xsd:base64Binary" />
  </wsdl:message>
  <wsdl:message name="sendIktsDataResponse">
    <wsdl:part name="Result" type="xsd:base64Binary" />
  </wsdl:message>
  <wsdl:portType name="IktsDataPortType">
    <wsdl:operation name="sendIktsData">
      <wsdl:input message="tns:sendIktsDataRequest" />
      <wsdl:output message="tns:sendIktsDataResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="IktsDataBinding" type="tns:IktsDataPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="sendIktsData">
      <soap:operation soapAction="urn:xmethods-delayed-quotes#sendIktsData" />
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:xmethods-delayed-quotes" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:xmethods-delayed-quotes" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="IktsDataService">
    <wsdl:port name="IktsDataPort" binding="tns:IktsDataBinding">
      <soap:address location="http://xx.xx.xx.xx/tiks-servis/server2.php" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
Posted
Updated 16-Feb-11 9:38am
v2
Comments
aidin Tajadod 16-Feb-11 19:26pm    
I need your facade class to help you.Please update your original post and add you facade class code.
as you can see in wsdl, the function sendIktsDataResponse return something as xsd:base64Binary. so it might be the problem. most of the times you can change the facade code by your self and correct the problem.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900