Hi Jose
Tanx for you response
The problem is that i need to send a "SOAP" (envelope)message and i think
XAILER can't handle this
the message is like:
<soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns3:denyP1 xmlns:ns3="
http://ws.p1.alsc">
<ns3:originInstitutionId>863</ns3:originInstitutionId>
<ns3:p1Code>123792</ns3:p1Code>
<ns3:sendFacility>DEFAULT</ns3:sendFacility>
<ns3:receiveFacility>DEFAULT</ns3:receiveFacility>
<ns3:sendApplication>SHILEIRIA</ns3:sendApplication>
<ns3:receiveApplication>ALERTP1</ns3:receiveApplication>
<ns3:messageXml><P1Row
value="123792" ><P1_CODE>123792</P1_CODE> ;<P1_INSTITUTION>863</P1_INSTITUTION&am p;gt;<P1_REFERENCE_ES>37</P1_REFERENCE_ ES><PATIENT_CODE>187571</PATIENT _CODE><SPECIALITY_CODE>6431</SPE CIALITY_CODE><HEALTH_CARE_UNIT_CODE>113 0900</HEALTH_CARE_UNIT_CODE><PROFESSITI ONAL_ORDER_NUMBER>1607</PROFESSITIONAL_ORDER_N UMBER><PROFESSITIONAL_NAME>IPOP,< ;/PROFESSITIONAL_NAME><SCHEDULE_DATE>&a mp;lt;YEAR>2009</YEAR><MONTH& ;gt;3</MONTH><DAY>16</DAY ><HOUR>9</HOUR><MI NUTE>10</MINUTE><SECOND>0 </SECOND></SCHEDULE_DATE>< ;REFUSAL_CODE>5</REFUSAL_CODE></ P1Row> </ns3:messageXml>
</ns3:denyP1>
</soapenv:Body>
</soapenv:Envelope>
How can i do that ?
Best regards
Pedro Faro
"José Lalín" <
notengo@correo.com> escreveu na mensagem
news:48ecb8fb$[email=
1@ozsrv2.ozlan.local...]
1@ozsrv2.ozlan.local...[/email]
>
> Pedro,
>
>> I supose the sintax is 1º parameter = Url and the second is xth XML
>> right ?
>
> Yes, although the second parameter can be any kind of data. Just send it
> in the format expected by the url.
>
> IF you need to know how things gone:
>
> LOCAL hRequest := oInet:PostRequest( ... )
> LOCAL cBuffer := Space( 1024 )
> LOCAL cData := ""
>
> IF !Empty( hRequest )
> WHILE oInet:ReadFile( hRequest, @cBuffer, 1024 )
> cData += cBuffer
> cBuffer := Space( 1024 )
> END
> oInet:CloseRequest( hRequest )
> ENDIF
>
> I wrote this sample from the top of my head but it should work that way.
>
> Regards,
> José Lalín
>