Author Message
KishoreJoshi
Joined: Nov 26, 2013
Messages: 15
Offline
Hello,

I am trying to access web services (developed in .Net) with different combination of http vs https & axis 1.4 vs axis 2. Below are the request & response in each of the cases when run thru the simulator -

Axis 1.4 over http -

11/01/2012 15:39:52:470 INFO - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Using SCESession 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities servlet : callWebService
11/01/2012 15:39:52:517 INFO - Node Entry | session id:sess7776614 | testAnnuities:callWebService | Framework | callWebService | | | undefined
11/01/2012 15:39:53:126 DEBUG - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Collecting [connectivity.ws.beans.ValidateContractStatus@47b8a0c] from:ValidateContractStatus
11/01/2012 15:39:53:126 DEBUG - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Calling Web Service [JHATelephonyService] at [http://xxxx.com/SERVICES/JHATS/JHANNUITIES.TELEPHONE.IISHOST/Telephone.svc] operation [ValidateContractStatus]
11/01/2012 15:39:53:142 DEBUG - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Setting web service timeout to 45 seconds
Web Service Request -> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ValidateContractStatus xmlns="http://tempuri.org/"><reqInfo><ns1:Request xmlns:ns1="http://schemas.datacontract.org/2004/07/JHAnnuities.Telephone.Service"><ns1:ContractNumber>GP07054767</ns1:ContractNumber><ns1:UCID>undefined</ns1:UCID></ns1:Request></reqInfo></ValidateContractStatus></soapenv:Body></soapenv:Envelope>
11/01/2012 15:39:53:454 INFO - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Capturing exception [java.lang.reflect.InvocationTargetException]. Message [null]
11/01/2012 15:39:53:454 INFO - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Using SCESession 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities servlet : stop
11/01/2012 15:39:53:501 INFO - Node Entry | session id:sess7776614 | testAnnuities:stop | Framework | stop | | | undefined
11/01/2012 15:39:53:517 INFO - Application Exit | session id:sess7776614 | testAnnuities:stop | Framework | Application Exiting | | | undefined
11/01/2012 15:39:53:517 INFO - 6F335E337C331E1DA29FC14986B0A2A9:/testAnnuities : Removing session from AvayaSessionTermination Servlet

Axis 1.4 over https -

11/01/2012 15:43:04:268 INFO - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Using SCESession 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities servlet : callWebService
11/01/2012 15:43:04:315 INFO - Node Entry | session id:sess2023412 | testAnnuities:callWebService | Framework | callWebService | | | undefined
11/01/2012 15:43:04:831 DEBUG - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Collecting [connectivity.ws.beans.ValidateContractStatus@47b8a0c] from:ValidateContractStatus
11/01/2012 15:43:04:831 DEBUG - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Calling Web Service [JHATelephonyService] at [https://xxxx.com/SERVICES/JHATS/JHANNUITIES.TELEPHONE.IISHOST/Telephone.svc] operation [ValidateContractStatus]
11/01/2012 15:43:04:831 DEBUG - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Setting web service timeout to 45 seconds
Web Service Request -> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ValidateContractStatus xmlns="http://tempuri.org/"><reqInfo><ns1:Request xmlns:ns1="http://schemas.datacontract.org/2004/07/JHAnnuities.Telephone.Service"><ns1:ContractNumber>GP07054767</ns1:ContractNumber><ns1:UCID>undefined</ns1:UCID></ns1:Request></reqInfo></ValidateContractStatus></soapenv:Body></soapenv:Envelope>
Web Service Reply <- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><ActivityId CorrelationId="0c61792b-d54e-4048-8eca-af2aa5f3d1cb" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">bc285a26-0258-4c84-aef2-9deac082a242</ActivityId></s:Header><s:Body><ValidateContractStatusResponse xmlns="http://tempuri.org/"><ValidateContractStatusResult xmlns:a="http://schemas.datacontract.org/2004/07/JHAnnuities.Telephone.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:Accounts i:nil="true"/><a:Brokers i:nil="true"/><a:Request><a:ContractNumber>GP07054767</a:ContractNumber><a:HistoricalDate i:nil="true"/><a:Pin i:nil="true"/><a:SSN i:nil="true"/><a:UCID>undefined</a:UCID></a:Request><a:Results><a:Result><a:ContractNumber>GP07054767</a:ContractNumber><a:PolicyStatus>201</a:PolicyStatus><a:RequestStatus>114</a:RequestStatus></a:Result></a:Results><a:SecurityToken i:nil="true"/></ValidateContractStatusResult></ValidateContractStatusResponse></s:Body></s:Envelope>
11/01/2012 15:43:05:581 DEBUG - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Storing [connectivity.ws.beans.ValidateContractStatusResponse@46d7b401] to:ValidateContractStatusResponse
11/01/2012 15:43:05:581 INFO - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Using SCESession 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities servlet : parseResponse
11/01/2012 15:43:05:627 INFO - Node Entry | session id:sess2023412 | testAnnuities:parseResponse | Framework | parseResponse | | | undefined
11/01/2012 15:43:05:627 INFO - 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities : Using SCESession 3DE8BDFD7A338026BA7EBCA82F8F240E:/testAnnuities servlet : displayResponse
11/01/2012 15:43:05:659 INFO - Node Entry | session id:sess2023412 | testAnnuities:displayResponse | Framework | displayResponse | | | undefined

axis2 on http -

11/01/2012 15:45:22:691 INFO - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : Using SCESession 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities servlet : callWebService
11/01/2012 15:45:22:738 INFO - Node Entry | session id:sess826675 | ivrAnnuities:callWebService | Framework | callWebService | | | undefined
11/01/2012 15:45:22:785 INFO - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : Calling method [{http://tempuri.org/}ValidateContractStatus] on web service [JHATelephonyService] at [http://xxxx.com/SERVICES/JHATS/JHANNUITIES.TELEPHONE.IISHOST/Telephone.svc]
11/01/2012 15:45:23:425 DEBUG - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : Collecting [connectivity.ws.beans.JHATelephonyServiceStub$ValidateContractStatus@13e58cd] from:ValidateContractStatus
Web Service Request -> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns2:ValidateContractStatus xmlns:ns2="http://tempuri.org/"><ns2:reqInfo><Request xmlns="http://schemas.datacontract.org/2004/07/JHAnnuities.Telephone.Service"><ContractNumber>GP07054767</ContractNumber><UCID>undefined</UCID></Request></ns2:reqInfo></ns2:ValidateContractStatus></soapenv:Body></soapenv:Envelope>
Web Service Reply <- Transport error: 404 Error: Not Found
11/01/2012 15:45:23:675 ERROR - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : Got AxisFault during web service call: Transport error: 404 Error: Not Found
11/01/2012 15:45:23:691 INFO - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : Capturing exception [org.apache.axis2.AxisFault]. Message [Transport error: 404 Error: Not Found]
11/01/2012 15:45:23:691 DEBUG - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : session id:sess826675 | ivrAnnuities:callWebService | Web Service Failure
11/01/2012 15:45:23:722 INFO - 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities : Using SCESession 4FF798C50AA409DBCFC60DE1E981B380:/ivrAnnuities servlet : stop

axis2 on http -

11/01/2012 15:47:49:473 INFO - Node Entry | session id:sess271696 | ivrAnnuities:callWebService | Framework | callWebService | | | undefined
11/01/2012 15:47:49:504 INFO - C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities : Calling method [{http://tempuri.org/}ValidateContractStatus] on web service [JHATelephonyService] at [https://xxxx.com/SERVICES/JHATS/JHANNUITIES.TELEPHONE.IISHOST/Telephone.svc]
11/01/2012 15:47:50:098 DEBUG - C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities : Collecting [connectivity.ws.beans.JHATelephonyServiceStub$ValidateContractStatus@a0ff27] from:ValidateContractStatus
Web Service Request -> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns2:ValidateContractStatus xmlns:ns2="http://tempuri.org/"><ns2:reqInfo><Request xmlns="http://schemas.datacontract.org/2004/07/JHAnnuities.Telephone.Service"><ContractNumber>GP07054767</ContractNumber><UCID>undefined</UCID></Request></ns2:reqInfo></ns2:ValidateContractStatus></soapenv:Body></soapenv:Envelope>
Web Service Reply <- <?xml version='1.0' encoding='utf-8'?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><ActivityId xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics" CorrelationId="ea7ea519-c305-4a62-864b-51ed198b9b30">884e2fba-40ed-4755-88ac-b5138f55ed44</ActivityId></s:Header><s:Body><ValidateContractStatusResponse xmlns="http://tempuri.org/"><ValidateContractStatusResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:a="http://schemas.datacontract.org/2004/07/JHAnnuities.Telephone.Service"><a:Accounts i:nil="true" /><a:Brokers i:nil="true" /><a:Request><a:ContractNumber>GP07054767</a:ContractNumber><a:HistoricalDate i:nil="true" /><a:Pin i:nil="true" /><a:SSN i:nil="true" /><a:UCID>undefined</a:UCID></a:Request><a:Results><a:Result><a:ContractNumber>GP07054767</a:ContractNumber><a:PolicyStatus>201</a:PolicyStatus><a:RequestStatus>114</a:RequestStatus></a:Result></a:Results><a:SecurityToken i:nil="true" /></ValidateContractStatusResult></ValidateContractStatusResponse></s:Body></s:Envelope>
Web Service Reply <- Variable does not exist
11/01/2012 15:47:50:660 ERROR - C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities : Got AxisFault during web service call: Variable does not exist
11/01/2012 15:47:50:676 INFO - C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities : Capturing exception [org.apache.axis2.AxisFault]. Message [Variable does not exist]
11/01/2012 15:47:50:676 DEBUG - C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities : session id:sess271696 | ivrAnnuities:callWebService | Web Service Failure
11/01/2012 15:47:50:692 INFO - C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities : Using SCESession C5D566AE8D7E9506C4C72D8F7BD2B5BE:/ivrAnnuities servlet : stop

I cannot continue with the application with axis 1.4 over https as there is some other issue with certificate in the app server. I just wanted to know why there are so much differences in request and response in different scenarios and using axis 2 over https i could get the response but there is also a second response which says invalid variable due to which it is failing. And axis 2 over http i am getting 404 error but all the requests are going to the same server. Even i can open the browser and get the info either thru http or https.

If you need the wsdl i can mail you but cannot post in public forums as it is live wsdl running at my client place.

Thanks,
Kishore
KishoreJoshi
Joined: Nov 26, 2013
Messages: 15
Offline
small correction the last log snippet is for axis2 over https and not http
DennisJakobsen
Joined: Feb 7, 2006
Messages: 0
Offline
Axis 1.4 and Axis 2 are different implementation and use different encodings. I know Axis 1.4 did have some problems in the .net area so Axis 2 is probably the best route for you. I have not spent too much time analyzing the low level differences, but from your posts it sounds like you will be ok going with Axis 2, and if we can get that "Web Service Reply <- Variable does not exist " error figured out you would be good to go. Is that correct? It it is, please email a simple application which will product the last trace you posted and I will take a look at it. My email is jakobsen@avaya.com

RicardoSosa
Joined: Dec 1, 2011
Messages: 43
Offline
Hello,

I am having the same issue using Axis 2.

I am calling a web service over https and getting the error I am copying below.

Did you find a solution?

Thank you.

Got AxisFault during web service call: Transport error: 404 Error: Not Found

Capturing exception [org.apache.axis2.AxisFault]. Message [Transport error: 404 Error: Not Found]
SamareshKowshik
Joined: Nov 6, 2013
Messages: 351
Offline
I believe the issue below was that the customer was trying to use a non-secure connection (http, and not https), which was resulting in the 404 error. When the customer used https, the web service call did go through and then there were further issues.

For your issue, it would seem that using https is causing the 404 error. Have you tried using http instead? Http and https are treated as separate URLs, so if the server isn't set to do https it may simply give the 404 Not Found error without further explanation.
RicardoSosa
Joined: Dec 1, 2011
Messages: 43
Offline
Yes, with http it works properly, but when I try https I get this error.
SamareshKowshik
Joined: Nov 6, 2013
Messages: 351
Offline
The 404 error pretty definitively means that the URL doesn't exist on the server. Usually it's the result of typing the URL incorrectly, but it can happen with an http/https mismatch as well. Https must be supported by the web service or server in order for it to function at all. That just means you couldn't change a regular http URL to https and have it work, even in a web browser.
Go to:   
Mobile view