Hello, I work with power builder v10.5.2 build 7016
Oracle 10 and I have problems with a webservice which has several methods .
https://www.sunat.gob.pe:443/ol-ti-itcpgem-beta/billService?wsdl
1.- when I think the normal proxy Easy Soap with wizard does not show me the webservice methods (library pbsoapclient105.pbd). I can't register proxy.
2.- When I work with ".net engine" with library pbwsclient105.pbd, when calling the method SendBill, I get the message "The SoapClient does not support .NET proxy" (I have installed the framawork and SDK) .
a.- For what reason I can not work with EsaySoap?
b.- Wath it gives me error with the ".nte engine"?
Thanks for your help
/////////////////////////////////////////////
Example schema SOAP for service sendBill() of provider wevbservice:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sunat.gob.pe" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soapenv:Header> <wsse:Security> <wsse:UsernameToken> <wsse:Username>20100066603MODDATOS</wsse:Username> <wsse:Password>moddatos</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soapenv:Header>
<soapenv:Body>
<ser:sendBill>
<fileName>20100066603-01-F001-1.zip</fileName>
<contentFile>cid:20100066603-01-F001-1.zip</contentFile>
</ser:sendBill>
</soapenv:Body>
</soapenv:Envelope>
///////////////////////////////////////
/* In program when I used ".net engine" */
byte | lb_byte[], lb_byte_resp[] | |
long | llReturnValue | |
SoapConnection | lsc_cnx |
lsc_cnx = CREATE soapconnection
TRY
lsc_cnx.setoptions("SoapLog='soap.log'") | |
lsc_cnx.SetTimeOut(10) |
CATCH (soapException se)
MessageBox('Error',se.getMessage()) | |||||
DESTROY lsc_cnx | |||||
RETURN -1 |
END TRY
proxy_sunatbillservice | lpxy_billservice |
TRY
llReturnValue = lsc_cnx.createInstance( lpxy_billservice, "proxy_sunatbillservice") | |
llReturnValue = lsc_cnx.SetBasicAuthentication ('PC01', '20106785288MODDATOS', 'MODDATOS') |
CATCH (SoapException se1)
MessageBox('Error',se1.getMessage()) | |
return -1 |
END TRY
TRY
lb_byte_resp = lpxy_billservice.sendbill('c:\archivo.zip', lb_byte ) |
CATCH (SoapException se2)
MessageBox('Error', se2.getMessage()) |
END TRY
////////////