I fix the error, but when I run the client on PHP and .NET show me this
message:
soapclient: Error: HTTP Error: no data present after HTTP headers
This is my WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://co.com.www.avisortech/MPPWebServices/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MPPWebServices"
targetNamespace="http://co.com.www.avisortech/MPPWebServices/">
<wsdl:types>
<xsd:schema targetNamespace="http://co.com.www.avisortech/MPPWebServices/">
<xsd:element name="createTransactionPaymentResponse"
type="tns:createTransactionPaymentResponseType"/>
<xsd:element name="createTransactionPaymentRequest"
type="tns:createTransactionPaymentRequestType"/>
<xsd:complexType name="createTransactionPaymentRequestType">
<xsd:sequence>
<xsd:element name="EntityCode" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="TicketId" type="xsd:string" minOccurs="0"
maxOccurs="1"></xsd:element>
<xsd:element name="SrvCode" type="xsd:string" minOccurs="0"
maxOccurs="1"></xsd:element>
<xsd:element name="PaymentDesc" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="TransValue" type="xsd:decimal"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="TransVatValue" type="xsd:decimal"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="UserType" type="xsd:string" minOccurs="0"
maxOccurs="1"></xsd:element>
<xsd:element name="Reference1" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="Reference2" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="Reference3" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="PaymentSystem" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="URLResponse" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="FICode" type="xsd:string" minOccurs="0"
maxOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="createTransactionPaymentResponseType">
<xsd:sequence>
<xsd:element name="ReturnCode" type="xsd:string"
minOccurs="0" maxOccurs="1"></xsd:element>
<xsd:element name="Url" type="xsd:string" minOccurs="0"
maxOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="createTransactionPaymentResponse">
<wsdl:part element="tns:createTransactionPaymentResponse"
name="createTransactionPaymentResponse"/>
</wsdl:message>
<wsdl:message name="createTransactionPaymentRequest">
<wsdl:part element="tns:createTransactionPaymentRequest"
name="createTransactionPaymentRequest"/>
</wsdl:message>
<wsdl:portType name="MPPWebServices">
<wsdl:operation name="createTransactionPayment">
<wsdl:input message="tns:createTransactionPaymentRequest"/>
<wsdl:output message="tns:createTransactionPaymentResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MPPWebServicesSOAP" type="tns:MPPWebServices">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="createTransactionPayment">
<soap:operation
soapAction="http://co.com.www.avisortech/MPPWebServices/createTransactionPayment"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MPPWebServices">
<wsdl:port binding="tns:MPPWebServicesSOAP" name="MPPWebServicesSOAP">
<soap:address
location="http://localhost:8080/axis/services/MPPWebServicesSOAP"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
this generate the seervice stub, in the class I have this code:
package avisortech.www.com.co.MPPWebServices;
public class MPPWebServicesSOAPImpl implements
avisortech.www.com.co.MPPWebServices.MPPWebServices_Port{
public
avisortech.www.com.co.MPPWebServices.CreateTransactionPaymentResponseType
createTransactionPayment(avisortech.www.com.co.MPPWebServices.CreateTransactionPaymentRequestType
createTransactionPaymentRequest) throws java.rmi.RemoteException {
CreateTransactionPaymentResponseType req = new
CreateTransactionPaymentResponseType();
req.setReturnCode("SUCESS");
req.setUrl("http://localhost;");
return req;
}
}
I don't know what happend with this.... I don't know if I must generate
the service encoded or literal....
Thanks....
Nicolás G. Rico
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]