[Sol]Help: Problem when calling .Net WebService using kSOAP2

Put your problem here if it does not fit any of the other categories.

[Sol]Help: Problem when calling .Net WebService using kSOAP2

Postby felix1000 » Thu Mar 31, 2011 1:19 am

I have got a problem that i don't know how to work with when calling my own Web Service which developed in .Net 3.5
The Error is XmlPullParserException:
expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>@1:6 in java.io.InputStreamReader@47c82fc0)
I have used SOAPUI to Test seems the Web Service is no problem
and I already set DotNet = true before call the WebService
I tried SoapEnvelope.VER12, SoapEnvelope.VER11 and SoapEnvelope.VER10 also no help
I already don't know what is the problem.
Anyone have any idea about that???
Thank you very much
Code: Select all
    public  org.no_ip.comp321server.RoutingResult traceRoute(java.lang.String fromstationid, java.lang.String topromotionid, int speed) throws Exception {
        SoapObject _client = new SoapObject("http://xxx.no-ip.org/", "traceRoute");
        _client.addProperty("fromstationid", fromstationid);
        _client.addProperty("topromotionid", topromotionid);
        _client.addProperty("speed", speed + "");
        SoapSerializationEnvelope _envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        _envelope.dotNet = true;
        _envelope.bodyOut = _client;
        AndroidHttpTransport _ht = new AndroidHttpTransport("http://xxx.no-ip.org/QRWayWebService2/QRWayWebService.asmx");
        _ht.debug = true;
        _ht.call("http://comp321server.no-ip.org/traceRoute", _envelope);
        SoapObject _ret = (SoapObject) _envelope.getResponse();
        int _len = _ret.getPropertyCount();
        org.no_ip.comp321server.RoutingResult _returned = new org.no_ip.comp321server.RoutingResult();
        for (int _i = 0; _i < _len; _i++) {
            _returned.setProperty(_i, _ret.getProperty(_i));        }
        return _returned;
    }


The Following the a VERY long WSDL file:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://comp321server.no-ip.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://comp321server.no-ip.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://comp321server.no-ip.org/">
      <s:element name="HelloWorld">
        <s:complexType />
      </s:element>
      <s:element name="HelloWorldResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getStationByStationID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="stationid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getStationByStationIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getStationByStationIDResult" type="tns:StationResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="StationResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="stationid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="typeid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="stationname" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="stationaddress" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressx" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressy" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="getTransportationTypeByTransportationTypeID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="transportationtypid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getTransportationTypeByTransportationTypeIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getTransportationTypeByTransportationTypeIDResult" type="tns:TransportationType" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="TransportationType">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="transportationtypeid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="transportationtypename" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="getPromotionByPromotionID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="promotionid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getPromotionByPromotionIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getPromotionByPromotionIDResult" type="tns:PromotionResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="PromotionResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="promotionid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="enterpriseid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="promotionproduct" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="promotiondescription" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="promotionwebsite" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="clickthroughcount" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="promotionpublishdate" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="getRetailShopByRetailShopID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="RetailShopResultid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getRetailShopByRetailShopIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getRetailShopByRetailShopIDResult" type="tns:RetailShopResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="RetailShopResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="retailshopid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="enterpriseid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="retailshopname" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="retailshopaddress" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressx" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressy" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="neareststationid" type="s:long" />
        </s:sequence>
      </s:complexType>
      <s:element name="getRetailPromotionByRetailPromotionID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="RetailPromotionid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getRetailPromotionByRetailPromotionIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getRetailPromotionByRetailPromotionIDResult" type="tns:RetailPromotionResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="RetailPromotionResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="retailpromotionid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="retailshopid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="promotionid" type="s:long" />
        </s:sequence>
      </s:complexType>
      <s:element name="getPathByRetailPathID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Pathid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getPathByRetailPathIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getPathByRetailPathIDResult" type="tns:PathResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="PathResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="pathid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="pathweight" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="pathname" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="fromstationid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="fromstation" type="tns:Station" />
          <s:element minOccurs="1" maxOccurs="1" name="tostationid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="tostation" type="tns:Station" />
          <s:element minOccurs="0" maxOccurs="1" name="transportation" type="tns:ArrayOfString" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Station">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="stationid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="typeid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="stationname" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="stationaddress" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressx" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressy" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="transportationtype" type="tns:TransportationType" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfString">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="getRetailShopesResultByPromotionID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="promotionid" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getRetailShopesResultByPromotionIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getRetailShopesResultByPromotionIDResult" type="tns:ArrayOfRetailShopResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfRetailShopResult">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="RetailShopResult" nillable="true" type="tns:RetailShopResult" />
        </s:sequence>
      </s:complexType>
      <s:element name="traceRoute">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="fromstationid" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="topromotionid" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="speed" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="traceRouteResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="traceRouteResult" type="tns:RoutingResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="RoutingResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="isok" type="s:boolean" />
          <s:element minOccurs="0" maxOccurs="1" name="goal" type="tns:RetailShop" />
          <s:element minOccurs="0" maxOccurs="1" name="paths" type="tns:ArrayOfPathResult" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="RetailShop">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="retailshopid" type="s:long" />
          <s:element minOccurs="1" maxOccurs="1" name="enterpriseid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="retailshopname" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="retailshopaddress" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressx" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="addressy" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="neareststationid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="enterprise" type="tns:Enterprise" />
          <s:element minOccurs="0" maxOccurs="1" name="neareststation" type="tns:Station" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Enterprise">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="enterpriseid" type="s:long" />
          <s:element minOccurs="0" maxOccurs="1" name="enterprisename" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="loginname" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfPathResult">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="PathResult" nillable="true" type="tns:PathResult" />
        </s:sequence>
      </s:complexType>
      <s:element name="string" nillable="true" type="s:string" />
      <s:element name="StationResult" nillable="true" type="tns:StationResult" />
      <s:element name="TransportationType" nillable="true" type="tns:TransportationType" />
      <s:element name="PromotionResult" nillable="true" type="tns:PromotionResult" />
      <s:element name="RetailShopResult" nillable="true" type="tns:RetailShopResult" />
      <s:element name="RetailPromotionResult" nillable="true" type="tns:RetailPromotionResult" />
      <s:element name="PathResult" nillable="true" type="tns:PathResult" />
      <s:element name="ArrayOfRetailShopResult" nillable="true" type="tns:ArrayOfRetailShopResult" />
      <s:element name="RoutingResult" nillable="true" type="tns:RoutingResult" />
    </s:schema>
  </wsdl:types>
  <wsdl:message name="HelloWorldSoapIn">
    <wsdl:part name="parameters" element="tns:HelloWorld" />
  </wsdl:message>
  <wsdl:message name="HelloWorldSoapOut">
    <wsdl:part name="parameters" element="tns:HelloWorldResponse" />
  </wsdl:message>
  <wsdl:message name="getStationByStationIDSoapIn">
    <wsdl:part name="parameters" element="tns:getStationByStationID" />
  </wsdl:message>
  <wsdl:message name="getStationByStationIDSoapOut">
    <wsdl:part name="parameters" element="tns:getStationByStationIDResponse" />
  </wsdl:message>
  <wsdl:message name="getTransportationTypeByTransportationTypeIDSoapIn">
    <wsdl:part name="parameters" element="tns:getTransportationTypeByTransportationTypeID" />
  </wsdl:message>
  <wsdl:message name="getTransportationTypeByTransportationTypeIDSoapOut">
    <wsdl:part name="parameters" element="tns:getTransportationTypeByTransportationTypeIDResponse" />
  </wsdl:message>
  <wsdl:message name="getPromotionByPromotionIDSoapIn">
    <wsdl:part name="parameters" element="tns:getPromotionByPromotionID" />
  </wsdl:message>
  <wsdl:message name="getPromotionByPromotionIDSoapOut">
    <wsdl:part name="parameters" element="tns:getPromotionByPromotionIDResponse" />
  </wsdl:message>
  <wsdl:message name="getRetailShopByRetailShopIDSoapIn">
    <wsdl:part name="parameters" element="tns:getRetailShopByRetailShopID" />
  </wsdl:message>
  <wsdl:message name="getRetailShopByRetailShopIDSoapOut">
    <wsdl:part name="parameters" element="tns:getRetailShopByRetailShopIDResponse" />
  </wsdl:message>
  <wsdl:message name="getRetailPromotionByRetailPromotionIDSoapIn">
    <wsdl:part name="parameters" element="tns:getRetailPromotionByRetailPromotionID" />
  </wsdl:message>
  <wsdl:message name="getRetailPromotionByRetailPromotionIDSoapOut">
    <wsdl:part name="parameters" element="tns:getRetailPromotionByRetailPromotionIDResponse" />
  </wsdl:message>
  <wsdl:message name="getPathByRetailPathIDSoapIn">
    <wsdl:part name="parameters" element="tns:getPathByRetailPathID" />
  </wsdl:message>
  <wsdl:message name="getPathByRetailPathIDSoapOut">
    <wsdl:part name="parameters" element="tns:getPathByRetailPathIDResponse" />
  </wsdl:message>
  <wsdl:message name="getRetailShopesResultByPromotionIDSoapIn">
    <wsdl:part name="parameters" element="tns:getRetailShopesResultByPromotionID" />
  </wsdl:message>
  <wsdl:message name="getRetailShopesResultByPromotionIDSoapOut">
    <wsdl:part name="parameters" element="tns:getRetailShopesResultByPromotionIDResponse" />
  </wsdl:message>
  <wsdl:message name="traceRouteSoapIn">
    <wsdl:part name="parameters" element="tns:traceRoute" />
  </wsdl:message>
  <wsdl:message name="traceRouteSoapOut">
    <wsdl:part name="parameters" element="tns:traceRouteResponse" />
  </wsdl:message>
  <wsdl:message name="HelloWorldHttpGetIn" />
  <wsdl:message name="HelloWorldHttpGetOut">
    <wsdl:part name="Body" element="tns:string" />
  </wsdl:message>
  <wsdl:message name="getStationByStationIDHttpGetIn">
    <wsdl:part name="stationid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getStationByStationIDHttpGetOut">
    <wsdl:part name="Body" element="tns:StationResult" />
  </wsdl:message>
  <wsdl:message name="getTransportationTypeByTransportationTypeIDHttpGetIn">
    <wsdl:part name="transportationtypid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getTransportationTypeByTransportationTypeIDHttpGetOut">
    <wsdl:part name="Body" element="tns:TransportationType" />
  </wsdl:message>
  <wsdl:message name="getPromotionByPromotionIDHttpGetIn">
    <wsdl:part name="promotionid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getPromotionByPromotionIDHttpGetOut">
    <wsdl:part name="Body" element="tns:PromotionResult" />
  </wsdl:message>
  <wsdl:message name="getRetailShopByRetailShopIDHttpGetIn">
    <wsdl:part name="RetailShopResultid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getRetailShopByRetailShopIDHttpGetOut">
    <wsdl:part name="Body" element="tns:RetailShopResult" />
  </wsdl:message>
  <wsdl:message name="getRetailPromotionByRetailPromotionIDHttpGetIn">
    <wsdl:part name="RetailPromotionid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getRetailPromotionByRetailPromotionIDHttpGetOut">
    <wsdl:part name="Body" element="tns:RetailPromotionResult" />
  </wsdl:message>
  <wsdl:message name="getPathByRetailPathIDHttpGetIn">
    <wsdl:part name="Pathid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getPathByRetailPathIDHttpGetOut">
    <wsdl:part name="Body" element="tns:PathResult" />
  </wsdl:message>
  <wsdl:message name="getRetailShopesResultByPromotionIDHttpGetIn">
    <wsdl:part name="promotionid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getRetailShopesResultByPromotionIDHttpGetOut">
    <wsdl:part name="Body" element="tns:ArrayOfRetailShopResult" />
  </wsdl:message>
  <wsdl:message name="traceRouteHttpGetIn">
    <wsdl:part name="fromstationid" type="s:string" />
    <wsdl:part name="topromotionid" type="s:string" />
    <wsdl:part name="speed" type="s:string" />
  </wsdl:message>
  <wsdl:message name="traceRouteHttpGetOut">
    <wsdl:part name="Body" element="tns:RoutingResult" />
  </wsdl:message>
  <wsdl:message name="HelloWorldHttpPostIn" />
  <wsdl:message name="HelloWorldHttpPostOut">
    <wsdl:part name="Body" element="tns:string" />
  </wsdl:message>
  <wsdl:message name="getStationByStationIDHttpPostIn">
    <wsdl:part name="stationid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getStationByStationIDHttpPostOut">
    <wsdl:part name="Body" element="tns:StationResult" />
  </wsdl:message>
  <wsdl:message name="getTransportationTypeByTransportationTypeIDHttpPostIn">
    <wsdl:part name="transportationtypid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getTransportationTypeByTransportationTypeIDHttpPostOut">
    <wsdl:part name="Body" element="tns:TransportationType" />
  </wsdl:message>
  <wsdl:message name="getPromotionByPromotionIDHttpPostIn">
    <wsdl:part name="promotionid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getPromotionByPromotionIDHttpPostOut">
    <wsdl:part name="Body" element="tns:PromotionResult" />
  </wsdl:message>
  <wsdl:message name="getRetailShopByRetailShopIDHttpPostIn">
    <wsdl:part name="RetailShopResultid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getRetailShopByRetailShopIDHttpPostOut">
    <wsdl:part name="Body" element="tns:RetailShopResult" />
  </wsdl:message>
  <wsdl:message name="getRetailPromotionByRetailPromotionIDHttpPostIn">
    <wsdl:part name="RetailPromotionid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getRetailPromotionByRetailPromotionIDHttpPostOut">
    <wsdl:part name="Body" element="tns:RetailPromotionResult" />
  </wsdl:message>
  <wsdl:message name="getPathByRetailPathIDHttpPostIn">
    <wsdl:part name="Pathid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getPathByRetailPathIDHttpPostOut">
    <wsdl:part name="Body" element="tns:PathResult" />
  </wsdl:message>
  <wsdl:message name="getRetailShopesResultByPromotionIDHttpPostIn">
    <wsdl:part name="promotionid" type="s:string" />
  </wsdl:message>
  <wsdl:message name="getRetailShopesResultByPromotionIDHttpPostOut">
    <wsdl:part name="Body" element="tns:ArrayOfRetailShopResult" />
  </wsdl:message>
  <wsdl:message name="traceRouteHttpPostIn">
    <wsdl:part name="fromstationid" type="s:string" />
    <wsdl:part name="topromotionid" type="s:string" />
    <wsdl:part name="speed" type="s:string" />
  </wsdl:message>
  <wsdl:message name="traceRouteHttpPostOut">
    <wsdl:part name="Body" element="tns:RoutingResult" />
  </wsdl:message>
  <wsdl:portType name="QRWayWebServiceSoap">
    <wsdl:operation name="HelloWorld">
      <wsdl:input message="tns:HelloWorldSoapIn" />
      <wsdl:output message="tns:HelloWorldSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <wsdl:input message="tns:getStationByStationIDSoapIn" />
      <wsdl:output message="tns:getStationByStationIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <wsdl:input message="tns:getTransportationTypeByTransportationTypeIDSoapIn" />
      <wsdl:output message="tns:getTransportationTypeByTransportationTypeIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <wsdl:input message="tns:getPromotionByPromotionIDSoapIn" />
      <wsdl:output message="tns:getPromotionByPromotionIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <wsdl:input message="tns:getRetailShopByRetailShopIDSoapIn" />
      <wsdl:output message="tns:getRetailShopByRetailShopIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <wsdl:input message="tns:getRetailPromotionByRetailPromotionIDSoapIn" />
      <wsdl:output message="tns:getRetailPromotionByRetailPromotionIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <wsdl:input message="tns:getPathByRetailPathIDSoapIn" />
      <wsdl:output message="tns:getPathByRetailPathIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <wsdl:input message="tns:getRetailShopesResultByPromotionIDSoapIn" />
      <wsdl:output message="tns:getRetailShopesResultByPromotionIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <wsdl:input message="tns:traceRouteSoapIn" />
      <wsdl:output message="tns:traceRouteSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="QRWayWebServiceHttpGet">
    <wsdl:operation name="HelloWorld">
      <wsdl:input message="tns:HelloWorldHttpGetIn" />
      <wsdl:output message="tns:HelloWorldHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <wsdl:input message="tns:getStationByStationIDHttpGetIn" />
      <wsdl:output message="tns:getStationByStationIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <wsdl:input message="tns:getTransportationTypeByTransportationTypeIDHttpGetIn" />
      <wsdl:output message="tns:getTransportationTypeByTransportationTypeIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <wsdl:input message="tns:getPromotionByPromotionIDHttpGetIn" />
      <wsdl:output message="tns:getPromotionByPromotionIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <wsdl:input message="tns:getRetailShopByRetailShopIDHttpGetIn" />
      <wsdl:output message="tns:getRetailShopByRetailShopIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <wsdl:input message="tns:getRetailPromotionByRetailPromotionIDHttpGetIn" />
      <wsdl:output message="tns:getRetailPromotionByRetailPromotionIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <wsdl:input message="tns:getPathByRetailPathIDHttpGetIn" />
      <wsdl:output message="tns:getPathByRetailPathIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <wsdl:input message="tns:getRetailShopesResultByPromotionIDHttpGetIn" />
      <wsdl:output message="tns:getRetailShopesResultByPromotionIDHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <wsdl:input message="tns:traceRouteHttpGetIn" />
      <wsdl:output message="tns:traceRouteHttpGetOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="QRWayWebServiceHttpPost">
    <wsdl:operation name="HelloWorld">
      <wsdl:input message="tns:HelloWorldHttpPostIn" />
      <wsdl:output message="tns:HelloWorldHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <wsdl:input message="tns:getStationByStationIDHttpPostIn" />
      <wsdl:output message="tns:getStationByStationIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <wsdl:input message="tns:getTransportationTypeByTransportationTypeIDHttpPostIn" />
      <wsdl:output message="tns:getTransportationTypeByTransportationTypeIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <wsdl:input message="tns:getPromotionByPromotionIDHttpPostIn" />
      <wsdl:output message="tns:getPromotionByPromotionIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <wsdl:input message="tns:getRetailShopByRetailShopIDHttpPostIn" />
      <wsdl:output message="tns:getRetailShopByRetailShopIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <wsdl:input message="tns:getRetailPromotionByRetailPromotionIDHttpPostIn" />
      <wsdl:output message="tns:getRetailPromotionByRetailPromotionIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <wsdl:input message="tns:getPathByRetailPathIDHttpPostIn" />
      <wsdl:output message="tns:getPathByRetailPathIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <wsdl:input message="tns:getRetailShopesResultByPromotionIDHttpPostIn" />
      <wsdl:output message="tns:getRetailShopesResultByPromotionIDHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <wsdl:input message="tns:traceRouteHttpPostIn" />
      <wsdl:output message="tns:traceRouteHttpPostOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="QRWayWebServiceSoap" type="tns:QRWayWebServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="HelloWorld">
      <soap:operation soapAction="http://comp321server.no-ip.org/HelloWorld" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getStationByStationID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getTransportationTypeByTransportationTypeID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getPromotionByPromotionID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getRetailShopByRetailShopID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getRetailPromotionByRetailPromotionID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getPathByRetailPathID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <soap:operation soapAction="http://comp321server.no-ip.org/getRetailShopesResultByPromotionID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <soap:operation soapAction="http://comp321server.no-ip.org/traceRoute" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="QRWayWebServiceSoap12" type="tns:QRWayWebServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="HelloWorld">
      <soap12:operation soapAction="http://comp321server.no-ip.org/HelloWorld" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getStationByStationID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getTransportationTypeByTransportationTypeID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getPromotionByPromotionID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getRetailShopByRetailShopID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getRetailPromotionByRetailPromotionID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getPathByRetailPathID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <soap12:operation soapAction="http://comp321server.no-ip.org/getRetailShopesResultByPromotionID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <soap12:operation soapAction="http://comp321server.no-ip.org/traceRoute" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="QRWayWebServiceHttpGet" type="tns:QRWayWebServiceHttpGet">
    <http:binding verb="GET" />
    <wsdl:operation name="HelloWorld">
      <http:operation location="/HelloWorld" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <http:operation location="/getStationByStationID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <http:operation location="/getTransportationTypeByTransportationTypeID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <http:operation location="/getPromotionByPromotionID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <http:operation location="/getRetailShopByRetailShopID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <http:operation location="/getRetailPromotionByRetailPromotionID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <http:operation location="/getPathByRetailPathID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <http:operation location="/getRetailShopesResultByPromotionID" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <http:operation location="/traceRoute" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="QRWayWebServiceHttpPost" type="tns:QRWayWebServiceHttpPost">
    <http:binding verb="POST" />
    <wsdl:operation name="HelloWorld">
      <http:operation location="/HelloWorld" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getStationByStationID">
      <http:operation location="/getStationByStationID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getTransportationTypeByTransportationTypeID">
      <http:operation location="/getTransportationTypeByTransportationTypeID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPromotionByPromotionID">
      <http:operation location="/getPromotionByPromotionID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopByRetailShopID">
      <http:operation location="/getRetailShopByRetailShopID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailPromotionByRetailPromotionID">
      <http:operation location="/getRetailPromotionByRetailPromotionID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPathByRetailPathID">
      <http:operation location="/getPathByRetailPathID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getRetailShopesResultByPromotionID">
      <http:operation location="/getRetailShopesResultByPromotionID" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="traceRoute">
      <http:operation location="/traceRoute" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="QRWayWebService">
    <wsdl:port name="QRWayWebServiceSoap" binding="tns:QRWayWebServiceSoap">
      <soap:address location="http://comp321server.no-ip.org:8888/QRWayWebService2/QRWayWebService.asmx" />
    </wsdl:port>
    <wsdl:port name="QRWayWebServiceSoap12" binding="tns:QRWayWebServiceSoap12">
      <soap12:address location="http://comp321server.no-ip.org:8888/QRWayWebService2/QRWayWebService.asmx" />
    </wsdl:port>
    <wsdl:port name="QRWayWebServiceHttpGet" binding="tns:QRWayWebServiceHttpGet">
      <http:address location="http://comp321server.no-ip.org:8888/QRWayWebService2/QRWayWebService.asmx" />
    </wsdl:port>
    <wsdl:port name="QRWayWebServiceHttpPost" binding="tns:QRWayWebServiceHttpPost">
      <http:address location="http://comp321server.no-ip.org:8888/QRWayWebService2/QRWayWebService.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
Last edited by felix1000 on Fri Apr 01, 2011 2:18 am, edited 1 time in total.
felix1000
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 31, 2011 12:59 am

Top

Re: Help: Problem when calling .Net WebService using kSOAP2

Postby raj_J2ME » Thu Mar 31, 2011 8:41 am

Have you tried verifying the actual URL that your code puts together, and manually pasting it into a browser?

This would be the easiest way to spot check and make sure the URL is valid and the service is returning a proper XML document.
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Help: Problem when calling .Net WebService using kSOAP2

Postby felix1000 » Thu Mar 31, 2011 1:29 pm

Firstly, thank you very much for your help.

I have tried just paste the URL used to create AndroidHttpTransport into my mobile phone's Opera Mini via GPRS network, it can show the .Net Web Service Testing page successfully.
In addition, I tried to use the URL and post the XML generated by SOAPUI using my Desktop Firefox with poster plugin and I can get the Web Service Response Successfully.

The XML generated by SOAPUI: content type: text/xml
Code: Select all
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://comp321server.no-ip.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <com:traceRoute>
         <!--Optional:-->
         <com:fromstationid>3</com:fromstationid>
         <!--Optional:-->
         <com:topromotionid>0</com:topromotionid>
         <com:speed>0</com:speed>
      </com:traceRoute>
   </soapenv:Body>
</soapenv:Envelope>


Response returned by the URL:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><traceRouteResponse xmlns="http://comp321server.no-ip.org/"><traceRouteResult><isok>true</isok><goal>..........................
felix1000
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 31, 2011 12:59 am

Re: Help: Problem when calling .Net WebService using kSOAP2

Postby raj_J2ME » Thu Mar 31, 2011 1:51 pm

This is my pleasure dear.. :)
so every thing is working fine and as per the expectation ?
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Help: Problem when calling .Net WebService using kSOAP2

Postby felix1000 » Fri Apr 01, 2011 2:18 am

yeah!!! ^_^ thank you very much for your help again
felix1000
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 31, 2011 12:59 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests