[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Webservice SOAP
OK,
I really need is to invoke a web service expects the following structure as
input message:
<QNSMessage>
<header>
<CREDENTIALS>
<USER_LOGIN>...</USER_LOGIN>
<USER_PASSWORD>...</USER_PASSWORD>
</CREDENTIALS>
<delivery>
<message>
...
<subject>importOrder</subject>
</message>
...
</delivery>
...
</header>
<body>
<Order>...</Order>
</body>
</QNSMessage>
In this call should be informed on the <body> the xml that represents the
Order object.
<Order>
<Header>
<Number>...</Number>
<PurchaseType>...</PurchaseType>
<OrderType>PURCHASE_ORDER</OrderType>
<GeneralComment>Enviado por Servicio Web</GeneralComment>
<SupplierConfirmPortal>true</SupplierConfirmPortal>
<TotalPrice>1000123,4</TotalPrice>
<Supplier>
<SupplierVatNumber>......</SupplierVatNumber>
</Supplier>
<Buyer>
<BuyerVatNumber>A08074908</BuyerVatNumber>
</Buyer>
</Header>
<Lines>
<Line>
<RawMaterialSource>China</RawMaterialSource>
<GeneralComments>Por WS</GeneralComments>
.......
</Line>
</Lines>
</Order>
If the call to the operation "importOrder" web service succeeds, it returns
a message with the following structure:
<?xml version="1.0" encoding="UTF-8"?>
<QNSResponse
xmlns:noNamespaceSchemaLocation="http://localhost:8080/...../QNSEnvelope.xsd
">
<header>
<successFlag>true</successFlag>
<responseToMessage>
<sent>Mon Oct 03 16:02:01 GMT 2011</sent>
<subject>importOrder</subject>
</responseToMessage>
<delivery>
<from>
<address>....</address>
</from>
<to>
<address>....</address>
</to>
<message>
<sent>Mon Oct 03 16:02:02 GMT 2011</sent>
<subject>response</subject>
</message>
</delivery>
</header>
<body>
<Order><OBJECT_ID>457</OBJECT_ID> ... </Order>
</body>
</QNSResponse>
Then, we would like to know how we would make the call from RPG and how we
would receive the web service response in RPG too.
Sorry but I am very new to this technology.
Thanks.
-----Mensaje original-----
De: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] En nombre de Scott Klement
Enviado el: jueves, 20 de octubre de 2011 19:40
Para: HTTPAPI and FTPAPI Projects
Asunto: Re: Webservice SOAP
On 10/20/2011 12:19 PM, Javier - Yahoo wrote:
>
> Where I can find an example of use?
>
Can you be more specific? As far as I can tell, you want an example of:
1) Preparing an XML message.
2) Preparing a connection with appropriate parameters.
3) Attaching the message to the parameters
4) Invoking a SOAP service.
All of these are sort of broad descriptions. Can you describe what you're
looking for in more detail?
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------