[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: First web service using WSDL2RPG



Maybe the issue is with the remote server. This web service is not public and maybe the software vendor restricts access to the IP addresses of recognized customers.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Raddatz
Sent: Wednesday, June 10, 2015 2:55 PM
To: HTTPAPI and FTPAPI Projects
Subject: AW: First web service using WSDL2RPG

Douglas,

I receive the following error message when I enter the URL into Firefox:

The requested URL was rejected. Please consult with your administrator.

Your support ID is: 7109750400780955883


Furthermore I am not sure what log you posted. When I use soapUI to call a web service, the httplog looks like that:

Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "POST http://tools400.dyndns.org:88/axis2/services/DownloadAttachmentService.DownloadAttachment HTTP/1.1[\r][\n]"
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "SOAPAction: "http://tools400.de/wsdl2rpg/webservice/sample/downloadattachment/service"[\r][\n]";
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "Content-Length: 346[\r][\n]"
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "Host: tools400.dyndns.org:88[\r][\n]"
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "Proxy-Connection: Keep-Alive[\r][\n]"
Wed Jun 10 20:49:21 CEST 2015:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"


I asked for the log, because I wanted to see the POST statement.

Thomas.


-----Ursprüngliche Nachricht-----
Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Lindahl, Douglas
Gesendet: Mittwoch, 10. Juni 2015 20:18
An: HTTPAPI and FTPAPI Projects
Betreff: RE: First web service using WSDL2RPG

Hi Thomas. Thanks for the reply. 
Think this is the URL you are looking for: https://anda.ondemand.vertexinc.com/vertex-ws/listVertexServices.jsp

Yes, I was able to access the web service from SoapUI. This is the log that I received.

HTTP/1.1 200 OK
Date: Tue, 09 Jun 2015 13:30:50 GMT
SOAPAction: ""
Accept: text/xml
Content-Type: text/xml;charset=UTF-8
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Set-Cookie: Vertex_Tampa_Cookie=755635628.20480.0000; path=/
Set-Cookie: TSa3dd89=ff17bd53e23e2d0e67339fe382a628399c7ae9c637026bce5576ea8a84c3ac138e59baab; Path=/
Set-Cookie: TSa3dd89_28=cbb4ebbcb9f378c4cf0de5bbf50a36889c7ae9c637026bce0000000000000000005576ea8a9c7ae9c637026bce; Path=/
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><VertexEnvelope xmlns="urn:vertexinc:o-series:tps:7:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><Login><UserName>*******</UserName>
<Password>******</Password>
</Login>
<QuotationResponse documentDate="2015-06-09" transactionType="SALE"><Customer><CustomerCode>887016</CustomerCode>
<Destination taxAreaId="442513055"><StreetAddress1>1621 W. HENDERSON ST</StreetAddress1> <City>CLEBURNE</City> <MainDivision>TX</MainDivision> <PostalCode>76031</PostalCode> <Country>USA</Country> </Destination> </Customer> <SubTotal>49.61</SubTotal> <Total>53.7</Total> <TotalTax>4.09</TotalTax> <LineItem><Product>320504</Product>
<Quantity>1.0</Quantity>
<FairMarketValue>48.7</FairMarketValue>
<UnitPrice>48.7</UnitPrice>
<ExtendedPrice>48.7</ExtendedPrice>
<Taxes taxResult="TAXABLE" taxType="SALES" situs="DESTINATION" taxCollectedFromParty="BUYER" taxStructure="SINGLE_RATE"><Jurisdiction jurisdictionLevel="STATE" jurisdictionId="35763">TEXAS</Jurisdiction>
<CalculatedTax>3.04</CalculatedTax>
<EffectiveRate>0.0625</EffectiveRate>
<Taxable>48.7</Taxable>
<Imposition impositionId="1">Sales and Use Tax</Imposition> <ImpositionType impositionTypeId="1">General Sales and Use Tax</ImpositionType> <TaxRuleId>18653</TaxRuleId> </Taxes> <Taxes taxResult="TAXABLE" taxType="SALES" situs="DESTINATION" taxCollectedFromParty="BUYER" taxStructure="SINGLE_RATE"><Jurisdiction jurisdictionLevel="CITY" jurisdictionId="77898">BURLESON</Jurisdiction>
<CalculatedTax>0.97</CalculatedTax>
<EffectiveRate>0.02</EffectiveRate>
<Taxable>48.7</Taxable>
<Imposition impositionId="1">Local Sales and Use Tax</Imposition> <ImpositionType impositionTypeId="1">General Sales and Use Tax</ImpositionType> <TaxRuleId>26358</TaxRuleId> </Taxes> <TotalTax>4.01</TotalTax> </LineItem> <LineItem><Product>513407</Product>
<Quantity>1.0</Quantity>
<FairMarketValue>0.91</FairMarketValue>
<UnitPrice>0.91</UnitPrice>
<ExtendedPrice>0.91</ExtendedPrice>
<Taxes taxResult="TAXABLE" taxType="SALES" situs="DESTINATION" taxCollectedFromParty="BUYER" taxStructure="SINGLE_RATE"><Jurisdiction jurisdictionLevel="STATE" jurisdictionId="35763">TEXAS</Jurisdiction>
<CalculatedTax>0.06</CalculatedTax>
<EffectiveRate>0.0625</EffectiveRate>
<Taxable>0.91</Taxable>
<Imposition impositionId="1">Sales and Use Tax</Imposition> <ImpositionType impositionTypeId="1">General Sales and Use Tax</ImpositionType> <TaxRuleId>18653</TaxRuleId> </Taxes> <Taxes taxResult="TAXABLE" taxType="SALES" situs="DESTINATION" taxCollectedFromParty="BUYER" taxStructure="SINGLE_RATE"><Jurisdiction jurisdictionLevel="CITY" jurisdictionId="77898">BURLESON</Jurisdiction>
<CalculatedTax>0.02</CalculatedTax>
<EffectiveRate>0.02</EffectiveRate>
<Taxable>0.91</Taxable>
<Imposition impositionId="1">Local Sales and Use Tax</Imposition> <ImpositionType impositionTypeId="1">General Sales and Use Tax</ImpositionType> <TaxRuleId>26358</TaxRuleId> </Taxes> <TotalTax>0.08</TotalTax> </LineItem> </QuotationResponse> <ApplicationData><ResponseTimeMS>119.2</ResponseTimeMS>
</ApplicationData>
</VertexEnvelope></soapenv:Body></soapenv:Envelope>

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Raddatz
Sent: Wednesday, June 10, 2015 1:49 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: First web service using WSDL2RPG

Douglas,

I get back the same error message, when I put the URL into Firefox. Are you sure, that the following URL is correct:

https://anda.ondemand.vertexinc.com:443/vertex-ws/services/CalculateTax70

I cannot find any documentation for the Vertex O Series 7.0 web service and the URLs for the older web services are different:

http://vha0230.vertexinc.com/vertex-ws/listVertexServices.jsp

Can you call the web service from soapUI?
Can you post the http log of soapUI (without user and passwort of course)?

Thomas.


Am 08.06.2015 um 17:47 schrieb Lindahl, Douglas:
>    I've run into a brick wall trying to get this web service working and
>    I'm about out of ideas. I've verified that the XML is valid and I've
>    been able to connect and get a good response from the server using
>    desktop tools. I at first thought that the issue was with the vendor,
>    but now I'm not so sure. I'm trying to determine if the "Requested URL
>    was rejected" message was generated locally or by the remote server. If
>    anyone could look at this debug log and give me some thoughts I'd
>    appreciate it. Please note that we currently have other web services
>    working correctly with HTTPAPI, but not using WSDL2RPG. Thanks.
> 
> 
>    HTTPAPI Ver 1.24 released 2012-01-23
> 
>    OS/400 Ver V7R1M0
> 
> 
> 
>    WSDL2RPG Ver 1.16.3 released 2015-04-19 (V7R1M0)
> 
> 
>    ** 2015-06-05-09.19.13.043000: Entering
>    CalculateTax70_calculateTax70(), compiled for V7R1M0
> 
>    New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819.
>    ProtLoc=0
> 
>    ** 2015-06-05-09.19.13.366000: Sending request to server
> 
>    http_persist_open(): entered
> 
>    http_long_ParseURL(): entered
> 
>    DNS resolver retrans: 2
> 
>    DNS resolver retry  : 2
> 
>    DNS resolver options: x'00000136'
> 
>    DNS default domain: ANDRX.COM
> 
>    DNS server found: 10.14.122.104
> 
>    DNS server found: 10.14.122.112
> 
>    -----------------------------------------------------------------------
>    --------------
> 
>    Dump of server-side certificate information:
> 
>    -----------------------------------------------------------------------
>    --------------
> 
>    Cert Validation Code = 0
> 
>    -----BEGIN CERTIFICATE-----
> 
>    MIIFETCCA/mgAwIBAgIDAiTPMA0GCSqGSIb3DQEBBQUAMEAxCzAJBgNVBAYTAlVT
> 
>    MRcwFQYDVQQKEw5HZW9UcnVzdCwgSW5jLjEYMBYGA1UEAxMPR2VvVHJ1c3QgU1NM
> 
>    IENBMB4XDTEzMDQwMzE2NDIwMFoXDTE3MDYwMzIzNTIxNVowga0xKTAnBgNVBAUT
> 
>    IHlzREtiSzMyQkRqZE5keTc3UnBmOEtqWHhZU24vVWdnMQswCQYDVQQGEwJVUzEV
> 
>    MBMGA1UECBMMUGVubnN5bHZhbmlhMQ8wDQYDVQQHEwZCZXJ3eW4xFDASBgNVBAoT
> 
>    C1ZlcnRleCBJbmMuMRIwEAYDVQQLEwlWZXJ0ZXggSVQxITAfBgNVBAMMGCoub25k
> 
>    ZW1hbmQudmVydGV4aW5jLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
> 
>    ggEBAMXru4v3yNpBowQADOBNPloDMvtf3WT6L1Jc64Yzx9HFXOdfL2n8jBKF4rXz
> 
>    3vYGrtUh3qS1HSJetZpw1VWOaMveaLTQNzYemxUNQXjQkB6V97IxV+RgOhL60t3l
> 
>    bulq+MLtX71GVsccn7sBXwrSMcWZD2D3ecigdFOigYH89/uRg/i0uCpuqyN1xn4h
> 
>    PDGT2ma/lflhMYVrP1WG1owppu2JBUKJlyoCXAneytYO57Z54e1B8z+SV+fCV81u
> 
>    qryx5TLr5eT0v80bCNTK2VVY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zSNUAkXmg+4Ekm1CBHVYe3GuuUTkGGaypnioZXKm
> 
>    J7QEH8I=
> 
>    -----END CERTIFICATE-----
> 
>    Serial Number: 02:24:CF
> 
>    Common Name: *.ondemand.vertexinc.com
> 
>    Country: US
> 
>    State/Province: Pennsylvania
> 
>    Locality: Berwyn
> 
>    Org Unit: Vertex Inc.
> 
>    Org: Vertex IT
> 
>    Issuer CN: GeoTrust SSL CA
> 
>    Issuer Country: US
> 
>    Issuer Org: GeoTrust, Inc.
> 
>    Version: 3
> 
>    not before: 20130403124200
> 
>    Unknown Field: 12:42:00 03-04-2013
> 
>    not after: 20170603195215
> 
>    Unknown Field: 19:52:15 03-06-2017
> 
>    pub key alg: 1.2.840.113549.1.1.5
> 
> 
>    Protocol Used: TLS Version 1
> 
>    http_persist_post(): entered
> 
>    http_persist_req(POST) entered.
> 
>    http_long_ParseURL(): entered
> 
>    do_oper(POST): entered
> 
>    There are 0 cookies in the cache
> 
>    POST /vertex-ws/services/CalculateTax70 HTTP/1.1
> 
>    Host: anda.ondemand.vertexinc.com:443
> 
>    User-Agent: http-api/1.21
> 
>    Content-Length: 1787
> 
>    Content-Type: text/xml
> 
>    SOAPAction:
> 
> 
> 
>    sendraw(): entered
> 
>    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
>    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>    xmlns:tns1="http://www.vertexinc.com/oseries/services/CalculateTax70";
>    xmlns:vev="urn:vertexinc:o-series:tps:7:0"><soapenv:Body><vev:VertexEnv
>    elope><vev:Login><vev:UserName>********</vev:UserName><vev:Password>***
>    ***</vev:Password></vev:Login><vev:QuotationRequest
>    documentDate="2015-06-05"
>    transactionType="SALE"><vev:Customer><vev:CustomerCode>107196</vev:Cust
>    omerCode><vev:Destination><vev:StreetAddress1>2961 WEST 12TH
>    AVENUE
>    </vev:StreetAddress1><vev:StreetAddress2></vev:StreetAddress2><vev:City
>    >HIALEAH
>    </vev:City><vev:MainDivision>FL</vev:MainDivision><vev:SubDivision></ve
>    v:SubDivision><vev:PostalCode>33012
>    </vev:PostalCode><vev:Country>USA</vev:Country><vev:CurrencyConversion>
>    0</vev:CurrencyConversion></vev:Destination><vev:ExemptionCertificate><
>    /vev:ExemptionCertificate></vev:Customer><vev:LineItem><vev:Product>317
>    870</vev:Product><vev:Quantity>3</vev:Quantity><vev:UnitPrice>2.66</vev
>    :UnitPrice></vev:LineItem><vev:LineItem><vev:Product>320568</vev:Produc
>    t><vev:Quantity>1</vev:Quantity><vev:UnitPrice>100.8</vev:UnitPrice></v
>    ev:LineItem><vev:LineItem><vev:Product>390874</vev:Product><vev:Quantit
>    y>1</vev:Quantity><vev:UnitPrice>37.95</vev:UnitPrice></vev:LineItem><v
>    ev:LineItem><vev:Product>312503</vev:Product><vev:Quantity>1</vev:Quant
>    ity><vev:UnitPrice>86.98</vev:UnitPrice></vev:LineItem><vev:LineItem><v
>    ev:Product>311253</vev:Product><vev:Quantity>1</vev:Quantity><vev:UnitP
>    rice>11.69</vev:UnitPrice></vev:LineItem><vev:LineItem><vev:Product>803
>    643</vev:Product><vev:Quantity>2</vev:Quantity><vev:UnitPrice>70.68</ve
>    v:UnitPrice></vev:LineItem></vev:QuotationRequest></vev:VertexEnvelope>
>    </soapenv:Body></soapenv:Envelope>
> 
>    recvresp(): entered
> 
>    HTTP/1.1 200 OK
> 
>    Connection: close
> 
>    Cache-Control: no-cache
> 
>    Content-Type: text/html; charset=utf-8
> 
>    Pragma: no-cache
> 
>    Content-Length: 188
> 
> 
> 
>    SetError() #13: HTTP/1.1 200 OK
> 
>    recvresp(): end with 200
> 
>    recvdoc parms: identity 188
> 
>    header_load_cookies() entered
> 
>    recvdoc(): entered
> 
>    SetError() #0:
> 
>    <html><head><title>Request Rejected</title></head><body>The requested
>    URL was rejected. Please consult with your administrator.<br><br>Your
>    support ID is: 7109750400737997612</body></html>
> 
>    ** 2015-06-05-09.19.16.065000: Preparing to parse received message
> 
>    WSDL2RPG: USR0030: Unexpected HTML data received from web service.
> 
>                       Recovery  . . . :   Call
>    CalculateTax70_setHttpDebug(*ON) to enable the HTTP API debug log and
>    call the web service again. Then inspect the debug log do get further
>    information about what the web service returns to you. The default log
>    f
> 
>    ile name is '/tmp/httpapi_debug.txt'.
> 
>              received from procedure: BASICS1R1_f_sndPgmMsg
> 
>                        and statement: 54400
> 
>    ** 2015-06-05-09.19.16.240000: Leaving
> CalculateTax70_calculateTax70()
> 
> 
> 
> ----------------------------------------------------------------------
> - 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
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender.

-----------------------------------------------------------------------
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
-----------------------------------------------------------------------