Foren

Web service problem

thumbnail
Víctor Miranda Beltrán, geändert vor 13 Jahren.

Web service problem

New Member Beiträge: 4 Beitrittsdatum: 05.09.10 Neueste Beiträge
Hello. I have a problem with a web service.
I managed to generate the wsdl and then access the Web service.
I have refined and was executed method code I've written in the "impl", but the response back to me the service is baffling.


 <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:body>
 <ns1:getservicematrixresponse xmlns:ns1="urn:http.service.data.portal.securitasdirect.com" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/">
  <getservicematrixreturn href="#id0" /> 
  </ns1:getservicematrixresponse>
  </soapenv:body>
  </soapenv:envelope>

what is the href="#id0" />
here this must be the objectSoap.
I write the wsdl if it helps you:


<!--?xml version="1.0" encoding="UTF-8"?-->

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:http.service.data.portal.securitasdirect.com" xmlns:intf="urn:http.service.data.portal.securitasdirect.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://model.data.portal.securitasdirect.com" xmlns:tns2="http://persistence.service.data.portal.securitasdirect.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetnamespace="urn:http.service.data.portal.securitasdirect.com">
	<!--WSDL created by Apache Axis version: 1.4Built on Apr 22, 2006 (06:55:48 PDT)-->
	<wsdl:types>
		<schema xmlns="http://www.w3.org/2001/XMLSchema" targetnamespace="http://persistence.service.data.portal.securitasdirect.com">
			<import namespace="http://model.data.portal.securitasdirect.com" />
			<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
			<complextype name="ServiceMatrixPK">
				<sequence>

					<element name="countrySecuritasId" nillable="true" type="soapenc:int" />
					<element name="panelId" nillable="true" type="soapenc:string" />
					<element name="serviceId" nillable="true" type="soapenc:int" />
				</sequence>
			</complextype>
		</schema>
		<schema xmlns="http://www.w3.org/2001/XMLSchema" targetnamespace="http://model.data.portal.securitasdirect.com">
			<import namespace="http://persistence.service.data.portal.securitasdirect.com" />
			<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />

			<complextype name="ServiceMatrixSoap">
				<sequence>
					<element name="countrySecuritasId" nillable="true" type="soapenc:int" />
					<element name="hasCostSuported" type="xsd:boolean" />
					<element name="included" type="xsd:boolean" />
					<element name="message" nillable="true" type="soapenc:string" />
					<element name="operative" type="xsd:boolean" />
					<element name="panelId" nillable="true" type="soapenc:string" />
					<element name="primaryKey" nillable="true" type="tns2:ServiceMatrixPK" />

					<element name="requireCodeOperation" type="xsd:boolean" />
					<element name="serviceId" nillable="true" type="soapenc:int" />
					<element name="visible" type="xsd:boolean" />
				</sequence>
			</complextype>
		</schema>
	</wsdl:types>
	<wsdl:message name="getServiceMatrixResponse">
		<wsdl:part name="getServiceMatrixReturn" type="tns1:ServiceMatrixSoap" />

	</wsdl:message>
	<wsdl:message name="getServiceMatrixRequest">
		<wsdl:part name="countryCode" type="xsd:string" />
		<wsdl:part name="panelId" type="xsd:string" />
		<wsdl:part name="serviceId" type="xsd:int" />
		<wsdl:part name="sourceId" type="xsd:int" />
	</wsdl:message>
	<wsdl:porttype name="ServiceMatrixServiceSoap">
		<wsdl:operation name="getServiceMatrix" parameterorder="countryCode panelId serviceId sourceId">

			<wsdl:input message="impl:getServiceMatrixRequest" name="getServiceMatrixRequest" />
			<wsdl:output message="impl:getServiceMatrixResponse" name="getServiceMatrixResponse" />
		</wsdl:operation>
	</wsdl:porttype>
	<wsdl:binding name="Portlet_SDPortal_ServiceMatrixServiceSoapBinding" type="impl:ServiceMatrixServiceSoap">
		<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="getServiceMatrix">
			<wsdlsoap:operation soapAction="" />
			<wsdl:input name="getServiceMatrixRequest">

				<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.data.portal.securitasdirect.com" use="encoded" />
			</wsdl:input>
			<wsdl:output name="getServiceMatrixResponse">
				<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.data.portal.securitasdirect.com" use="encoded" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="ServiceMatrixServiceSoapService">
		<wsdl:port binding="impl:Portlet_SDPortal_ServiceMatrixServiceSoapBinding" name="Portlet_SDPortal_ServiceMatrixService">

			<wsdlsoap:address location="http://localhost:8080/tunnel-web/secure/axis/Portlet_SDPortal_ServiceMatrixService" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>


Sorry about my english and thanks for your attention.

Greetings