RE: https with WS

2006-06-23 Thread Vineet_Vashisht

Just FYI. I was able to get it to work
with minimum fuss using Axis2-0.93 instead of Axis2-1.0  . Have no
idea why but 0.93 seems a lot easier to work with as far as just generating
a client goes.






"Ben Ethridge"
<[EMAIL PROTECTED]> 
06/23/2006 10:32 AM



Please respond to
axis-user@ws.apache.org





To



cc



Subject
RE: https with WS








Sorry. Don’t know. I’ve only
been working with 1.x so far. Have you googled the error in the log? Or
maybe someone who knows 2.x could help.
 
Ben
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 10:13 AM
To: axis-user@ws.apache.org
Subject: RE: https with WS
 

Ben, thanks for the reply. Yours was one of the posts that I had read before
eventually posting the email. The article you referenced was one that I
had worked with in the past.


I am still very unclear on how the whole SSL works with WebServices. The
axis 1.1 is working but I am not sure if I even set up all the certificates
etc. correctly. it just somehow works. As far as the Axis 2.0 client goes,
I am beginning to think it might be something unrelated to authentication
and certificates altogether.


I just get a transport error - unknown from axis. I have tried a few things
to try to give it more information (changing axis2.xml) but they have had
no impact. 

Looking at the actuall SOAP requests generated, I can see that axis1.1
uses HTTP 1.0 and Axis2.0 uses HTTP1.1 . Do you think that could cause
a problem? 

The person who hosts the WS says he is receiving no traffic from me whatsoever.
When I change the endpoint to oint to a generic https site, the message
that I get back shows me that I WAS able to at least reach that generic
https site. Somehow the WS host never sees anything at all.






"Ben Ethridge"
<[EMAIL PROTECTED]> 
06/23/2006 10:05 AM






Please respond to
axis-user@ws.apache.org






To




cc
 


Subject
RE: https with WS
 




 
 




Hi, Vineet. Did you see my post from a couple of days ago on this?

  
  

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Friday, June 23, 2006 7:54 AM
To: axis-user@ws.apache.org
Subject: https with WS 
  
Hello All,

        I am unable
to get the https to work with WS. I have followed many posts and other
srticles on the web and I have tried just about all they have suggested
but am still unsuccessful. I was wondering if someone could help me out.

I am using JDK1.4 with Axis2 (1.0) generated
client (WSDL2Java) to access an https WS hosted by a third party vendor.

Currently I am getting a sun.security.validator.ValidatorException:
No trusted certificate found

Any help would be appreciated.

On a sidenote, I was able to get this
to work using Axis 1.1 client stub (WSDL2Java) with JDK1.3 (inside WebSphere
Studio) 
Vineet

This e-mail message may contain confidential
and/or privileged information. If you are 
not an addressee or otherwise authorized to receive this message, you should
not use, 
copy, disclose or take any action based on this e-mail or any information
contained in the 
message. If you have received this material in error, please advise the
sender immediately 
by reply e-mail and delete this message. 

Thank you.
This e-mail message may contain confidential and/or
privileged information. If you are 
not an addressee or otherwise authorized to receive this message, you should
not use, 
copy, disclose or take any action based on this e-mail or any information
contained in the 
message. If you have received this material in error, please advise the
sender immediately 
by reply e-mail and delete this message. 

Thank you.




RE: https with WS

2006-06-23 Thread Vineet_Vashisht

Ben, thanks for the reply. Yours was
one of the posts that I had read before eventually posting the email. The
article you referenced was one that I had worked with in the past.

I am still very unclear on how the whole
SSL works with WebServices. The axis 1.1 is working but I am not sure if
I even set up all the certificates etc. correctly. it just somehow works.
As far as the Axis 2.0 client goes, I am beginning to think it might be
something unrelated to authentication and certificates altogether.

I just get a transport error - unknown
from axis. I have tried a few things to try to give it more information
(changing axis2.xml) but they have had no impact. 

Looking at the actuall SOAP requests
generated, I can see that axis1.1 uses HTTP 1.0 and Axis2.0 uses HTTP1.1
. Do you think that could cause a problem?

The person who hosts the WS says he
is receiving no traffic from me whatsoever. When I change the endpoint
to oint to a generic https site, the message that I get back shows me that
I WAS able to at least reach that generic https site. Somehow the WS host
never sees anything at all.






"Ben Ethridge"
<[EMAIL PROTECTED]> 
06/23/2006 10:05 AM



Please respond to
axis-user@ws.apache.org





To



cc



Subject
RE: https with WS








Hi, Vineet. Did you see my
post from a couple of days ago on this?
 
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 7:54 AM
To: axis-user@ws.apache.org
Subject: https with WS
 
Hello All,

        I am unable
to get the https to work with WS. I have followed many posts and other
srticles on the web and I have tried just about all they have suggested
but am still unsuccessful. I was wondering if someone could help me out.

I am using JDK1.4 with Axis2 (1.0) generated
client (WSDL2Java) to access an https WS hosted by a third party vendor.

Currently I am getting a sun.security.validator.ValidatorException:
No trusted certificate found

Any help would be appreciated.

On a sidenote, I was able to get this
to work using Axis 1.1 client stub (WSDL2Java) with JDK1.3 (inside WebSphere
Studio) 
Vineet
This e-mail message may contain confidential and/or
privileged information. If you are 
not an addressee or otherwise authorized to receive this message, you should
not use, 
copy, disclose or take any action based on this e-mail or any information
contained in the 
message. If you have received this material in error, please advise the
sender immediately 
by reply e-mail and delete this message. 

Thank you.



unknown exception

2006-06-23 Thread Vineet_Vashisht

I am getting an exception while using
axis2 with a https Webservice whose client stub has been generated using
WSDL2Java. How can I dig in further to see what is going on? This does
not give me a lot of information. Earlier I thought that there was some
SSL auth problem but now I am thinking this might be unrelated. Please
advise.

org.apache.axis2.AxisFault:
Axis2 transport error : Unknown; nested exception is: 
       
org.apache.axis2.AxisFault: Axis2 transport error : Unknown; nested
exception is: 
       
org.apache.axis2.AxisFault: Axis2 transport error : Unknown; nested
exception is: 
       
org.apache.axis2.AxisFault: Axis2 transport error : Unknown
       
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
       
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:641)
       
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:341)
       
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
       
at com.anf.ads.Sales10Stub.sales10(Sales10Stub.java:123)
       
at com.anf.ads.axis2.TestAxis2Client.main(TestAxis2Client.java:69)
Caused by: org.apache.axis2.AxisFault:
Axis2 transport error : Unknown; nested exception is: 
       
org.apache.axis2.AxisFault: Axis2 transport error : Unknown
       
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:304)
       
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
       
... 5 more
Caused by: org.apache.axis2.AxisFault:
Axis2 transport error : Unknown
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:141)
       
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:298)
       
... 6 more



https with WS

2006-06-23 Thread Vineet_Vashisht

Hello All,
        I
am unable to get the https to work with WS. I have followed many posts
and other srticles on the web and I have tried just about all they have
suggested but am still unsuccessful. I was wondering if someone could help
me out.
I am using JDK1.4 with Axis2 (1.0) generated
client (WSDL2Java) to access an https WS hosted by a third party vendor.
Currently I am getting a sun.security.validator.ValidatorException:
No trusted certificate found
Any help would be appreciated.
On a sidenote, I was able to get this
to work using Axis 1.1 client stub (WSDL2Java) with JDK1.3 (inside WebSphere
Studio)
Vineet

Axis2 with https WS

2006-06-22 Thread Vineet_Vashisht

Hello all,
        I
get a strange error while trying to use axis2.0 (using JDK1.4.2) to access
a webservice that has an 'https' url. I have set the keystore etc. related
system properties and get this when I run the client. I did see just one
mail on this error and it turns out that the user had actually changed
the Axis2.0 code to make it work.

Do I need to download another version
of the software? Is there a patch out there for this?

thanks
Vineet

Caused by: org.apache.axis2.AxisFault:
problem accessing the parser. Parser already accessed!; nested exception
is: 
       
javax.xml.stream.XMLStreamException: problem accessing the parser.
Parser already accessed!
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:194)
       
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
       
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
       
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
       
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
       
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
       
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
       
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
       
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:530)
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:92)
       
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299)
       
... 6 more
Caused by: javax.xml.stream.XMLStreamException:
problem accessing the parser. Parser already accessed!
       
at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:858)
       
at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:71)
       
at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:56)
       
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315)
       
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:790)
       
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:171)
       
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
       
at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381)
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:145)
       
at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:180)
       
... 16 more