Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <wsdl:definitions 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://implecsa.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://implecsa.org/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://implecsa.org/">
- <s:element name="LogUserInOut">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="user" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
- <s:element minOccurs="1" maxOccurs="1" name="action" type="s:int"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="LogUserInOutResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="LogUserInOutResult" type="tns:ResponseInfoStructOfProductoStruct"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:complexType name="ResponseInfoStructOfProductoStruct">
- <s:complexContent mixed="false">
- <s:extension base="tns:GeneralInfoStruct">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="Parameters" type="tns:ArrayOfProductoStruct"/>
- </s:sequence>
- </s:extension>
- </s:complexContent>
- </s:complexType>
- <s:complexType name="GeneralInfoStruct">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="opcode" type="s:int"/>
- <s:element minOccurs="1" maxOccurs="1" name="scopeidentity" type="s:int"/>
- <s:element minOccurs="1" maxOccurs="1" name="lastsyncticks" type="s:long"/>
- <s:element minOccurs="0" maxOccurs="1" name="message" type="s:string"/>
- <s:element minOccurs="1" maxOccurs="1" name="tag" type="s:int"/>
- <s:element minOccurs="1" maxOccurs="1" name="tagflags" type="s:int"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="ArrayOfProductoStruct">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded" name="ProductoStruct" nillable="true" type="tns:ProductoStruct"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="ProductoStruct">
- <s:complexContent mixed="false">
- <s:extension base="tns:BaseStruct">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="Nombre" type="s:string"/>
- </s:sequence>
- </s:extension>
- </s:complexContent>
- </s:complexType>
- <s:complexType name="BaseStruct">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="id" type="s:int"/>
- </s:sequence>
- </s:complexType>
- <s:element name="ResponseInfoStructOfProductoStruct" nillable="true" type="tns:ResponseInfoStructOfProductoStruct"/>
- </s:schema>
- </wsdl:types>
- <wsdl:message name="LogUserInOutSoapIn">
- <wsdl:part name="parameters" element="tns:LogUserInOut"/>
- </wsdl:message>
- <wsdl:message name="LogUserInOutSoapOut">
- <wsdl:part name="parameters" element="tns:LogUserInOutResponse"/>
- </wsdl:message>
- <wsdl:message name="LogUserInOutHttpGetIn">
- <wsdl:part name="user" type="s:string"/>
- <wsdl:part name="password" type="s:string"/>
- <wsdl:part name="action" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="LogUserInOutHttpGetOut">
- <wsdl:part name="Body" element="tns:ResponseInfoStructOfProductoStruct"/>
- </wsdl:message>
- <wsdl:message name="LogUserInOutHttpPostIn">
- <wsdl:part name="user" type="s:string"/>
- <wsdl:part name="password" type="s:string"/>
- <wsdl:part name="action" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="LogUserInOutHttpPostOut">
- <wsdl:part name="Body" element="tns:ResponseInfoStructOfProductoStruct"/>
- </wsdl:message>
- <wsdl:portType name="WsRegisterDBSoap">
- <wsdl:operation name="LogUserInOut">
- <wsdl:input message="tns:LogUserInOutSoapIn"/>
- <wsdl:output message="tns:LogUserInOutSoapOut"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:portType name="WsRegisterDBHttpGet">
- <wsdl:operation name="LogUserInOut">
- <wsdl:input message="tns:LogUserInOutHttpGetIn"/>
- <wsdl:output message="tns:LogUserInOutHttpGetOut"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:portType name="WsRegisterDBHttpPost">
- <wsdl:operation name="LogUserInOut">
- <wsdl:input message="tns:LogUserInOutHttpPostIn"/>
- <wsdl:output message="tns:LogUserInOutHttpPostOut"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="WsRegisterDBSoap" type="tns:WsRegisterDBSoap">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="LogUserInOut">
- <soap:operation soapAction="http://implecsa.org/LogUserInOut" 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="WsRegisterDBSoap12" type="tns:WsRegisterDBSoap">
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="LogUserInOut">
- <soap12:operation soapAction="http://implecsa.org/LogUserInOut" 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="WsRegisterDBHttpGet" type="tns:WsRegisterDBHttpGet">
- <http:binding verb="GET"/>
- <wsdl:operation name="LogUserInOut">
- <http:operation location="/LogUserInOut"/>
- <wsdl:input>
- <http:urlEncoded/>
- </wsdl:input>
- <wsdl:output>
- <mime:mimeXml part="Body"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="WsRegisterDBHttpPost" type="tns:WsRegisterDBHttpPost">
- <http:binding verb="POST"/>
- <wsdl:operation name="LogUserInOut">
- <http:operation location="/LogUserInOut"/>
- <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="WsRegisterDB">
- <wsdl:port name="WsRegisterDBSoap" binding="tns:WsRegisterDBSoap">
- <soap:address location="http://implecsawebservice.azurewebsites.net/wsregisterdb.asmx"/>
- </wsdl:port>
- <wsdl:port name="WsRegisterDBSoap12" binding="tns:WsRegisterDBSoap12">
- <soap12:address location="http://implecsawebservice.azurewebsites.net/wsregisterdb.asmx"/>
- </wsdl:port>
- <wsdl:port name="WsRegisterDBHttpGet" binding="tns:WsRegisterDBHttpGet">
- <http:address location="http://implecsawebservice.azurewebsites.net/wsregisterdb.asmx"/>
- </wsdl:port>
- <wsdl:port name="WsRegisterDBHttpPost" binding="tns:WsRegisterDBHttpPost">
- <http:address location="http://implecsawebservice.azurewebsites.net/wsregisterdb.asmx"/>
- </wsdl:port>
- </wsdl:service>
- </wsdl:definitions>
- private static void LogInOut() {
- LogUserInOut data = new LogUserInOut();
- data.user= "admin";
- data.password= "admin";
- data.action =1;
- WsRegisterDBSoap service = new WsRegisterDBSoap();
- service.Address= urlRegister;
- try {
- LogUserInOutResponse response = service.LogUserInOut(data);
- System.out.println("Resultado = "+response.LogUserInOutResult.opcode);
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- public LogUserInOutResponse LogUserInOut(LogUserInOut params) throws Exception
- {
- SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
- envelope.dotNet = IsDotNet;
- envelope.setOutputSoapObject(params.GetSoapParams());
- new LogUserInOutResponse().register(envelope);
- HttpTransportSE DemoHttpTransport = new HttpTransportSE(Address);
- DemoHttpTransport.call(params.GetSoapAction(), envelope);
- LogUserInOutResponse resp = (LogUserInOutResponse)envelope.bodyIn;
- return resp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement