我在eWay webservice上遇到问题。
我创建的客户端的WS通过的wsimport与https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?WSDL
随着生成的文件,我调用WS的方法如何在eWay webservice上创建eWayHeader
ManageRebillTestSoap soap = new ManageRebillTest() .getManageRebillTestSoap();
CustomerDetails details = soap.createRebillCustomer(....);
消息返回错误是:的“eWayCustomerID”元素根据其数据具有无效值类型。
SOAP消息的格式是
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<eWAYHeader xmlns="http://www.eway.com.au/gateway/rebill/manageRebill">
<eWAYCustomerID>string</eWAYCustomerID>
<Username>string</Username>
<Password>string</Password>
</eWAYHeader>
</soap:Header>
<soap:Body>
<CreateRebillCustomer xmlns="http://www.eway.com.au/gateway/rebill/manageRebill">
<customerTitle>string</customerTitle>
<customerFirstName>string</customerFirstName>
<customerLastName>string</customerLastName>
<customerAddress>string</customerAddress>
<customerSuburb>string</customerSuburb>
<customerState>string</customerState>
<customerCompany>string</customerCompany>
<customerPostCode>string</customerPostCode>
<customerCountry>string</customerCountry>
<customerEmail>string</customerEmail>
<customerFax>string</customerFax>
<customerPhone1>string</customerPhone1>
<customerPhone2>string</customerPhone2>
<customerRef>string</customerRef>
<customerJobDesc>string</customerJobDesc>
<customerComments>string</customerComments>
<customerURL>string</customerURL>
</CreateRebillCustomer>
</soap:Body>
</soap:Envelope>
在上述方法只是添加<Soap:Body>
任何人都知道添加eWayHeader或<soap:Header>
上EWAY webservice时调用的方法?请帮帮我。
你好@Jimmy,我是支付网关的新手。对于你是否使用java第三方库?请发送定义eaf的Java API的链接。 – 2014-06-16 11:15:59
@jimmy你解决了这个问题吗? – 2016-06-17 12:55:06