You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Tony Wiharjito <to...@telkom.net> on 2000/10/06 20:19:05 UTC
Secure soap example
Hi All,
I've tried secure soap on my PC (linux box) , I've installed it and I've
seen that the RPC router is up on port 8080.
I try to browse at URL:
http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
which cakra.ee.itb.ac.id is my computer name, and it shows :
Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.
Then I try to run the example from scripts in Tshells.LIN. I run it without
anychange to the scripts, but there is error message :
*** CREATED Soap Properties from: Soap.properties
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=error creating input stream from URL Connection:
http://localhost:80/servlet/org.apache.soap.server.http.RPCRouterServlet
HTTP/1.1; targetException=java.lang.IllegalArgumentException: error
creating input stream from URL Connection:
http://localhost:80/servlet/org.apache.soap.server.http.RPCRouterServlet
HTTP/1.1]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
at org.apache.soap.rpc.Call.invoke(Call.java:151)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
Then I try to change the Soap.properties entries with this changes :
org.apache.soap.Server.MasterSoapServerURL =
http://cakra.ee.itb.ac.id/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
org.apache.soap.UseProxy = true
org.apache.soap.ProxyHost = cakra.ee.itb.ac.id
org.apache.soap.http.ProxyPort = 8080
and at /Tshells.LIN/deploya.sh I make this change :
RPC=http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.RPCRouterServlet
but there's error message :
*** CREATED Soap Properties from: Soap.properties
ERROR while building Soap's System Properties: null
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:377)
at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:243)
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:108)
at org.apache.soap.rpc.Call.invoke(Call.java:151)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
Can anyone help me ??? why those problems come ?
I will very appreciate any help.
TIA,
Tony W
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Soap has some of its own problems with Tomcat3.2B1 due to Sun's use of its own XML
parser. I will provide installation hints with the upcoming SecureSoap version.
Thanks for trying SSL Soap - George
George I Matkovits wrote:
> Please, please let me know your experience. I must really be much more aware of
> backward compatibility issues. I am doing SecureSoap with Java2/StdEdition1.3 on
> both NT and Linux. I will not be able to sleep now until a 'good soul' will try
> it with generic 'old' Java2.2 and/or we ALL upgrade to V1.3. Do think that this
> would be feasible?
> Thank you - George
>
> Tony Wiharjito wrote:
>
> > Thank you very much George for your hints......
> > I'm using Tomcat 3.1 ....but after read your mail, I'd like to try Tomcat
> > 3.2B1 .
> >
> > Thanks again,
> >
> > Tony W
> >
> > At 10:40 PM 10/23/00 -0500, you wrote:
> > >I believe I finally understand what is going on. It is the HTTP1.1 string
> > >which
> > >is not understood by various Application Servers or earlier then V3.2B1
> > >Tomcats
> > >( I know that V3.2B1 is OK because I am using it).
> > >This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the
> > >client
> > >code. EnableSSL passes the incoming URL without the HTTP1.1 string.
> > >Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
> > >default (later this week?)
> > >Thank you for trying SecureSoap and providing feedback - George
> > >p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you
> > >IMHO
> > >should be OK.
> > >What level of Tomcat are you at, please?
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Soap has some of its own problems with Tomcat3.2B1 due to Sun's use of its own XML
parser. I will provide installation hints with the upcoming SecureSoap version.
Thanks for trying SSL Soap - George
George I Matkovits wrote:
> Please, please let me know your experience. I must really be much more aware of
> backward compatibility issues. I am doing SecureSoap with Java2/StdEdition1.3 on
> both NT and Linux. I will not be able to sleep now until a 'good soul' will try
> it with generic 'old' Java2.2 and/or we ALL upgrade to V1.3. Do think that this
> would be feasible?
> Thank you - George
>
> Tony Wiharjito wrote:
>
> > Thank you very much George for your hints......
> > I'm using Tomcat 3.1 ....but after read your mail, I'd like to try Tomcat
> > 3.2B1 .
> >
> > Thanks again,
> >
> > Tony W
> >
> > At 10:40 PM 10/23/00 -0500, you wrote:
> > >I believe I finally understand what is going on. It is the HTTP1.1 string
> > >which
> > >is not understood by various Application Servers or earlier then V3.2B1
> > >Tomcats
> > >( I know that V3.2B1 is OK because I am using it).
> > >This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the
> > >client
> > >code. EnableSSL passes the incoming URL without the HTTP1.1 string.
> > >Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
> > >default (later this week?)
> > >Thank you for trying SecureSoap and providing feedback - George
> > >p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you
> > >IMHO
> > >should be OK.
> > >What level of Tomcat are you at, please?
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Please, please let me know your experience. I must really be much more aware of
backward compatibility issues. I am doing SecureSoap with Java2/StdEdition1.3 on
both NT and Linux. I will not be able to sleep now until a 'good soul' will try
it with generic 'old' Java2.2 and/or we ALL upgrade to V1.3. Do think that this
would be feasible?
Thank you - George
Tony Wiharjito wrote:
> Thank you very much George for your hints......
> I'm using Tomcat 3.1 ....but after read your mail, I'd like to try Tomcat
> 3.2B1 .
>
> Thanks again,
>
> Tony W
>
> At 10:40 PM 10/23/00 -0500, you wrote:
> >I believe I finally understand what is going on. It is the HTTP1.1 string
> >which
> >is not understood by various Application Servers or earlier then V3.2B1
> >Tomcats
> >( I know that V3.2B1 is OK because I am using it).
> >This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the
> >client
> >code. EnableSSL passes the incoming URL without the HTTP1.1 string.
> >Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
> >default (later this week?)
> >Thank you for trying SecureSoap and providing feedback - George
> >p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you
> >IMHO
> >should be OK.
> >What level of Tomcat are you at, please?
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Please, please let me know your experience. I must really be much more aware of
backward compatibility issues. I am doing SecureSoap with Java2/StdEdition1.3 on
both NT and Linux. I will not be able to sleep now until a 'good soul' will try
it with generic 'old' Java2.2 and/or we ALL upgrade to V1.3. Do think that this
would be feasible?
Thank you - George
Tony Wiharjito wrote:
> Thank you very much George for your hints......
> I'm using Tomcat 3.1 ....but after read your mail, I'd like to try Tomcat
> 3.2B1 .
>
> Thanks again,
>
> Tony W
>
> At 10:40 PM 10/23/00 -0500, you wrote:
> >I believe I finally understand what is going on. It is the HTTP1.1 string
> >which
> >is not understood by various Application Servers or earlier then V3.2B1
> >Tomcats
> >( I know that V3.2B1 is OK because I am using it).
> >This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the
> >client
> >code. EnableSSL passes the incoming URL without the HTTP1.1 string.
> >Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
> >default (later this week?)
> >Thank you for trying SecureSoap and providing feedback - George
> >p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you
> >IMHO
> >should be OK.
> >What level of Tomcat are you at, please?
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Thank you very much George for your hints......
I'm using Tomcat 3.1 ....but after read your mail, I'd like to try Tomcat
3.2B1 .
Thanks again,
Tony W
At 10:40 PM 10/23/00 -0500, you wrote:
>I believe I finally understand what is going on. It is the HTTP1.1 string
>which
>is not understood by various Application Servers or earlier then V3.2B1
>Tomcats
>( I know that V3.2B1 is OK because I am using it).
>This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the
>client
>code. EnableSSL passes the incoming URL without the HTTP1.1 string.
>Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
>default (later this week?)
>Thank you for trying SecureSoap and providing feedback - George
>p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you
>IMHO
>should be OK.
>What level of Tomcat are you at, please?
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Thank you very much George for your hints......
I'm using Tomcat 3.1 ....but after read your mail, I'd like to try Tomcat
3.2B1 .
Thanks again,
Tony W
At 10:40 PM 10/23/00 -0500, you wrote:
>I believe I finally understand what is going on. It is the HTTP1.1 string
>which
>is not understood by various Application Servers or earlier then V3.2B1
>Tomcats
>( I know that V3.2B1 is OK because I am using it).
>This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the
>client
>code. EnableSSL passes the incoming URL without the HTTP1.1 string.
>Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
>default (later this week?)
>Thank you for trying SecureSoap and providing feedback - George
>p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you
>IMHO
>should be OK.
>What level of Tomcat are you at, please?
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
I believe I finally understand what is going on. It is the HTTP1.1 string which
is not understood by various Application Servers or earlier then V3.2B1 Tomcats
( I know that V3.2B1 is OK because I am using it).
This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the client
code. EnableSSL passes the incoming URL without the HTTP1.1 string.
Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
default (later this week?)
Thank you for trying SecureSoap and providing feedback - George
p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you IMHO
should be OK.
What level of Tomcat are you at, please?
Tony Wiharjito wrote:
> Yes, George....I had used standard SOAP 2.0 before tried to use secure
> SOAP, and my standard SOAP
> 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> then Now I'm running
> my standard SOAP 2.0 again, and it still works properly.
>
> At 08:52 AM 10/17/00 -0500, you wrote:
> >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> >even come into the
> >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> >that Tomcat is not
> >accepting connections on port 8080. IMHO your Tomcat configuration seems
> >to be wrong.
> >Regards - George
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Wow !! thank you very much Nathan for your offer. I'd like to try yours.
Maybe you could send it to tonyw@telkom.net .
Thanks again....
At 09:18 AM 10/21/00 +0100, you wrote:
>I have a slightly different HTTPS enabled version of SOAP if you'd like to try
>it TOny. Let me know and I'll drop you a copy.
TIA,
Tony W
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Could I also get a copy of your example, please?
Regards - George
??? wrote:
> I would like to try the Secure Soap example that Tony Wiharjito wrote.
> Can you drop me a copy as well?
>
> Best regards.
>
> ? ??, Travis Song
> Engineer
> eSum Technologies Inc.,
> XML-Based Solutions R&D
> Sungbo Yeoksam Bldg, 833-2 Yeoksam-dong
> Kangnam-gu, Seoul Korea 135-080
> Office 82 2 3451 2389
> Mobile 82 16 201 3007
> AOL esumtravis
> ICQ 82395925
>
> "You're only here for a short visit.
> Don't hurry. Don't worry.
> And be sure to smell the flowers along the way."
> ----- Original Message -----
> From: "Nathan Wray" <nw...@mich.com>
> To: <so...@xml.apache.org>
> Sent: Saturday, October 21, 2000 5:18 PM
> Subject: Re: Secure soap example
>
> >
> > I have a slightly different HTTPS enabled version of SOAP if you'd like to try
> > it TOny. Let me know and I'll drop you a copy.
> >
> > Tony Wiharjito wrote:
> >
> > > Yes, George....I had used standard SOAP 2.0 before tried to use secure
> > > SOAP, and my standard SOAP
> > > 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> > > then Now I'm running
> > > my standard SOAP 2.0 again, and it still works properly.
> > >
> > > At 08:52 AM 10/17/00 -0500, you wrote:
> > > >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> > > >even come into the
> > > >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> > > >that Tomcat is not
> > > >accepting connections on port 8080. IMHO your Tomcat configuration seems
> > > >to be wrong.
> > > >Regards - George
> >
> > --
> > Nathan Wray
> > nwray@mich.com
> > --
> > |
> > | "Currently, developers struggle to
> > | make their distributed applications
> > | work across the Internet when
> > | firewalls get in the way.
> > | [...]
> > | Since SOAP [Simple Object Access Protocol]
> > | relies on HTTP as the transport
> > | mechanism, and most firewalls allow
> > | HTTP to pass through, you'll have no
> > | problem invoking SOAP endpoints
> > | from either side of a firewall."
> > |
> > | -- Microsoft, on how SOAP uses HTTP
> > | tunneling to circumvent network security
> > |
> > | http://msdn.microsoft.com/library/periodic/period00/soap.htm
> > |
> >
> >
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Could I also get a copy of your example, please?
Regards - George
??? wrote:
> I would like to try the Secure Soap example that Tony Wiharjito wrote.
> Can you drop me a copy as well?
>
> Best regards.
>
> ? ??, Travis Song
> Engineer
> eSum Technologies Inc.,
> XML-Based Solutions R&D
> Sungbo Yeoksam Bldg, 833-2 Yeoksam-dong
> Kangnam-gu, Seoul Korea 135-080
> Office 82 2 3451 2389
> Mobile 82 16 201 3007
> AOL esumtravis
> ICQ 82395925
>
> "You're only here for a short visit.
> Don't hurry. Don't worry.
> And be sure to smell the flowers along the way."
> ----- Original Message -----
> From: "Nathan Wray" <nw...@mich.com>
> To: <so...@xml.apache.org>
> Sent: Saturday, October 21, 2000 5:18 PM
> Subject: Re: Secure soap example
>
> >
> > I have a slightly different HTTPS enabled version of SOAP if you'd like to try
> > it TOny. Let me know and I'll drop you a copy.
> >
> > Tony Wiharjito wrote:
> >
> > > Yes, George....I had used standard SOAP 2.0 before tried to use secure
> > > SOAP, and my standard SOAP
> > > 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> > > then Now I'm running
> > > my standard SOAP 2.0 again, and it still works properly.
> > >
> > > At 08:52 AM 10/17/00 -0500, you wrote:
> > > >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> > > >even come into the
> > > >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> > > >that Tomcat is not
> > > >accepting connections on port 8080. IMHO your Tomcat configuration seems
> > > >to be wrong.
> > > >Regards - George
> >
> > --
> > Nathan Wray
> > nwray@mich.com
> > --
> > |
> > | "Currently, developers struggle to
> > | make their distributed applications
> > | work across the Internet when
> > | firewalls get in the way.
> > | [...]
> > | Since SOAP [Simple Object Access Protocol]
> > | relies on HTTP as the transport
> > | mechanism, and most firewalls allow
> > | HTTP to pass through, you'll have no
> > | problem invoking SOAP endpoints
> > | from either side of a firewall."
> > |
> > | -- Microsoft, on how SOAP uses HTTP
> > | tunneling to circumvent network security
> > |
> > | http://msdn.microsoft.com/library/periodic/period00/soap.htm
> > |
> >
> >
Re: Secure soap example
Posted by ??? <tr...@esumtech.com>.
I would like to try the Secure Soap example that Tony Wiharjito wrote.
Can you drop me a copy as well?
Best regards.
? ??, Travis Song
Engineer
eSum Technologies Inc.,
XML-Based Solutions R&D
Sungbo Yeoksam Bldg, 833-2 Yeoksam-dong
Kangnam-gu, Seoul Korea 135-080
Office 82 2 3451 2389
Mobile 82 16 201 3007
AOL esumtravis
ICQ 82395925
"You're only here for a short visit.
Don't hurry. Don't worry.
And be sure to smell the flowers along the way."
----- Original Message -----
From: "Nathan Wray" <nw...@mich.com>
To: <so...@xml.apache.org>
Sent: Saturday, October 21, 2000 5:18 PM
Subject: Re: Secure soap example
>
> I have a slightly different HTTPS enabled version of SOAP if you'd like to try
> it TOny. Let me know and I'll drop you a copy.
>
> Tony Wiharjito wrote:
>
> > Yes, George....I had used standard SOAP 2.0 before tried to use secure
> > SOAP, and my standard SOAP
> > 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> > then Now I'm running
> > my standard SOAP 2.0 again, and it still works properly.
> >
> > At 08:52 AM 10/17/00 -0500, you wrote:
> > >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> > >even come into the
> > >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> > >that Tomcat is not
> > >accepting connections on port 8080. IMHO your Tomcat configuration seems
> > >to be wrong.
> > >Regards - George
>
> --
> Nathan Wray
> nwray@mich.com
> --
> |
> | "Currently, developers struggle to
> | make their distributed applications
> | work across the Internet when
> | firewalls get in the way.
> | [...]
> | Since SOAP [Simple Object Access Protocol]
> | relies on HTTP as the transport
> | mechanism, and most firewalls allow
> | HTTP to pass through, you'll have no
> | problem invoking SOAP endpoints
> | from either side of a firewall."
> |
> | -- Microsoft, on how SOAP uses HTTP
> | tunneling to circumvent network security
> |
> | http://msdn.microsoft.com/library/periodic/period00/soap.htm
> |
>
>
Re: Secure soap example
Posted by ??? <tr...@esumtech.com>.
I would like to try the Secure Soap example that Tony Wiharjito wrote.
Can you drop me a copy as well?
Best regards.
? ??, Travis Song
Engineer
eSum Technologies Inc.,
XML-Based Solutions R&D
Sungbo Yeoksam Bldg, 833-2 Yeoksam-dong
Kangnam-gu, Seoul Korea 135-080
Office 82 2 3451 2389
Mobile 82 16 201 3007
AOL esumtravis
ICQ 82395925
"You're only here for a short visit.
Don't hurry. Don't worry.
And be sure to smell the flowers along the way."
----- Original Message -----
From: "Nathan Wray" <nw...@mich.com>
To: <so...@xml.apache.org>
Sent: Saturday, October 21, 2000 5:18 PM
Subject: Re: Secure soap example
>
> I have a slightly different HTTPS enabled version of SOAP if you'd like to try
> it TOny. Let me know and I'll drop you a copy.
>
> Tony Wiharjito wrote:
>
> > Yes, George....I had used standard SOAP 2.0 before tried to use secure
> > SOAP, and my standard SOAP
> > 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> > then Now I'm running
> > my standard SOAP 2.0 again, and it still works properly.
> >
> > At 08:52 AM 10/17/00 -0500, you wrote:
> > >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> > >even come into the
> > >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> > >that Tomcat is not
> > >accepting connections on port 8080. IMHO your Tomcat configuration seems
> > >to be wrong.
> > >Regards - George
>
> --
> Nathan Wray
> nwray@mich.com
> --
> |
> | "Currently, developers struggle to
> | make their distributed applications
> | work across the Internet when
> | firewalls get in the way.
> | [...]
> | Since SOAP [Simple Object Access Protocol]
> | relies on HTTP as the transport
> | mechanism, and most firewalls allow
> | HTTP to pass through, you'll have no
> | problem invoking SOAP endpoints
> | from either side of a firewall."
> |
> | -- Microsoft, on how SOAP uses HTTP
> | tunneling to circumvent network security
> |
> | http://msdn.microsoft.com/library/periodic/period00/soap.htm
> |
>
>
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Wow !! thank you very much Nathan for your offer. I'd like to try yours.
Maybe you could send it to tonyw@telkom.net .
Thanks again....
At 09:18 AM 10/21/00 +0100, you wrote:
>I have a slightly different HTTPS enabled version of SOAP if you'd like to try
>it TOny. Let me know and I'll drop you a copy.
TIA,
Tony W
Re: Secure soap example
Posted by Nathan Wray <nw...@mich.com>.
I have a slightly different HTTPS enabled version of SOAP if you'd like to try
it TOny. Let me know and I'll drop you a copy.
Tony Wiharjito wrote:
> Yes, George....I had used standard SOAP 2.0 before tried to use secure
> SOAP, and my standard SOAP
> 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> then Now I'm running
> my standard SOAP 2.0 again, and it still works properly.
>
> At 08:52 AM 10/17/00 -0500, you wrote:
> >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> >even come into the
> >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> >that Tomcat is not
> >accepting connections on port 8080. IMHO your Tomcat configuration seems
> >to be wrong.
> >Regards - George
--
Nathan Wray
nwray@mich.com
--
|
| "Currently, developers struggle to
| make their distributed applications
| work across the Internet when
| firewalls get in the way.
| [...]
| Since SOAP [Simple Object Access Protocol]
| relies on HTTP as the transport
| mechanism, and most firewalls allow
| HTTP to pass through, you'll have no
| problem invoking SOAP endpoints
| from either side of a firewall."
|
| -- Microsoft, on how SOAP uses HTTP
| tunneling to circumvent network security
|
| http://msdn.microsoft.com/library/periodic/period00/soap.htm
|
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
I believe I finally understand what is going on. It is the HTTP1.1 string which
is not understood by various Application Servers or earlier then V3.2B1 Tomcats
( I know that V3.2B1 is OK because I am using it).
This can be fixed when using EnableSSL and NOT AutoEnableSSL call in the client
code. EnableSSL passes the incoming URL without the HTTP1.1 string.
Sorry for the delay, the upcoming SecureSoap version will have EnableSSL by
default (later this week?)
Thank you for trying SecureSoap and providing feedback - George
p.s. By eliminating the rewriting code in HTTPUtils (at the beginning) you IMHO
should be OK.
What level of Tomcat are you at, please?
Tony Wiharjito wrote:
> Yes, George....I had used standard SOAP 2.0 before tried to use secure
> SOAP, and my standard SOAP
> 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> then Now I'm running
> my standard SOAP 2.0 again, and it still works properly.
>
> At 08:52 AM 10/17/00 -0500, you wrote:
> >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> >even come into the
> >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> >that Tomcat is not
> >accepting connections on port 8080. IMHO your Tomcat configuration seems
> >to be wrong.
> >Regards - George
Re: Secure soap example
Posted by Nathan Wray <nw...@mich.com>.
I have a slightly different HTTPS enabled version of SOAP if you'd like to try
it TOny. Let me know and I'll drop you a copy.
Tony Wiharjito wrote:
> Yes, George....I had used standard SOAP 2.0 before tried to use secure
> SOAP, and my standard SOAP
> 2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
> then Now I'm running
> my standard SOAP 2.0 again, and it still works properly.
>
> At 08:52 AM 10/17/00 -0500, you wrote:
> >Port# 8080 says that you are connecting directly to Tomcat. Apach does not
> >even come into the
> >picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
> >that Tomcat is not
> >accepting connections on port 8080. IMHO your Tomcat configuration seems
> >to be wrong.
> >Regards - George
--
Nathan Wray
nwray@mich.com
--
|
| "Currently, developers struggle to
| make their distributed applications
| work across the Internet when
| firewalls get in the way.
| [...]
| Since SOAP [Simple Object Access Protocol]
| relies on HTTP as the transport
| mechanism, and most firewalls allow
| HTTP to pass through, you'll have no
| problem invoking SOAP endpoints
| from either side of a firewall."
|
| -- Microsoft, on how SOAP uses HTTP
| tunneling to circumvent network security
|
| http://msdn.microsoft.com/library/periodic/period00/soap.htm
|
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Yes, George....I had used standard SOAP 2.0 before tried to use secure
SOAP, and my standard SOAP
2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
then Now I'm running
my standard SOAP 2.0 again, and it still works properly.
At 08:52 AM 10/17/00 -0500, you wrote:
>Port# 8080 says that you are connecting directly to Tomcat. Apach does not
>even come into the
>picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
>that Tomcat is not
>accepting connections on port 8080. IMHO your Tomcat configuration seems
>to be wrong.
>Regards - George
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Yes, George....I had used standard SOAP 2.0 before tried to use secure
SOAP, and my standard SOAP
2.0 worked properly. Because I couldn't run my secure SOAP on my computer,
then Now I'm running
my standard SOAP 2.0 again, and it still works properly.
At 08:52 AM 10/17/00 -0500, you wrote:
>Port# 8080 says that you are connecting directly to Tomcat. Apach does not
>even come into the
>picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like
>that Tomcat is not
>accepting connections on port 8080. IMHO your Tomcat configuration seems
>to be wrong.
>Regards - George
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Port# 8080 says that you are connecting directly to Tomcat. Apach does not even come into the
picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like that Tomcat is not
accepting connections on port 8080. IMHO your Tomcat configuration seems to be wrong.
Regards - George
Tony Wiharjito wrote:
> I'm running Tomcat behind apache . I agree with you , It looks like
> misconfiguration.
> But too bad I don't know where the mistake is. I turned on the debug flags,
> and I only got these :
>
> *** CREATED Soap Properties from: Soap.properties
> ********** SOAP PROPERTIES **************
> ***SERVER URL:
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> HTTP/1.1
> UseProxy: false
> ProxyHost: cakra.ee.itb.ac.id
> ProxyPort: null
> UseProxyLogin: false
> Proxy UserId: 1571
> Proxy Password: monika1965
> Headers Debug: true
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=error
> creating input stream from URL Connection: Error writing to server;
> targetExcept
> ion=java.lang.IllegalArgumentException: error creating input stream from
> URL Con
> nection: Error writing to server]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:115)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> erClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> nt.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> .java:198)
>
> TIA,
>
> Tony W
>
> At 05:15 AM 10/12/00 -0500, you wrote:
> >What is your configuration, please? Are you running with Tomcat behind
> >Apache or just
> >stand-alone. Heave you got all the debug flags turned on (set to true)?
> >It almost looks like that you are not configured correctly.
> >Regards - George
> >
> >Tony Wiharjito wrote:
> >
> > > Hi George, thank you very much for your answer, I really appreciate it.
> > >
> > > from your p.s. :
> > > 1.) configure the URL in the scripts.
> > >
> > > Do you mean the scripts in the TShells.LIN directory ? If these are what
> > > you mean,
> > > I've changed the deploya.sh , so the URL became :
> > >
> > >
> > http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> > >
> > > then I ran the deploya.sh, but there is an error message like this :
> > >
> > > *** CREATED Soap Properties from: Soap.properties
> > > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> > > msg=error creating input stream from URL Connection: Error writing to
> > > server; targetException=java.lang.IllegalArgumentException: error creating
> > > input stream from URL Connection: Error writing to server]
> > > at
> > >
> > org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> > > at org.apache.soap.rpc.Call.invoke(Call.java:151)
> > > at
> > >
> > org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> > > at
> > >
> > org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> > > at
> > >
> > org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
> > >
> > > So I even couldn't deploy it. Do you have any suggestion ??
> > >
> > > TIA,
> > >
> > > Tony W
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
Port# 8080 says that you are connecting directly to Tomcat. Apach does not even come into the
picture.Do you have 'standard' Soap2_0 working OK? It 'almost' looks like that Tomcat is not
accepting connections on port 8080. IMHO your Tomcat configuration seems to be wrong.
Regards - George
Tony Wiharjito wrote:
> I'm running Tomcat behind apache . I agree with you , It looks like
> misconfiguration.
> But too bad I don't know where the mistake is. I turned on the debug flags,
> and I only got these :
>
> *** CREATED Soap Properties from: Soap.properties
> ********** SOAP PROPERTIES **************
> ***SERVER URL:
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> HTTP/1.1
> UseProxy: false
> ProxyHost: cakra.ee.itb.ac.id
> ProxyPort: null
> UseProxyLogin: false
> Proxy UserId: 1571
> Proxy Password: monika1965
> Headers Debug: true
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=error
> creating input stream from URL Connection: Error writing to server;
> targetExcept
> ion=java.lang.IllegalArgumentException: error creating input stream from
> URL Con
> nection: Error writing to server]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:115)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> erClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> nt.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> .java:198)
>
> TIA,
>
> Tony W
>
> At 05:15 AM 10/12/00 -0500, you wrote:
> >What is your configuration, please? Are you running with Tomcat behind
> >Apache or just
> >stand-alone. Heave you got all the debug flags turned on (set to true)?
> >It almost looks like that you are not configured correctly.
> >Regards - George
> >
> >Tony Wiharjito wrote:
> >
> > > Hi George, thank you very much for your answer, I really appreciate it.
> > >
> > > from your p.s. :
> > > 1.) configure the URL in the scripts.
> > >
> > > Do you mean the scripts in the TShells.LIN directory ? If these are what
> > > you mean,
> > > I've changed the deploya.sh , so the URL became :
> > >
> > >
> > http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> > >
> > > then I ran the deploya.sh, but there is an error message like this :
> > >
> > > *** CREATED Soap Properties from: Soap.properties
> > > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> > > msg=error creating input stream from URL Connection: Error writing to
> > > server; targetException=java.lang.IllegalArgumentException: error creating
> > > input stream from URL Connection: Error writing to server]
> > > at
> > >
> > org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> > > at org.apache.soap.rpc.Call.invoke(Call.java:151)
> > > at
> > >
> > org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> > > at
> > >
> > org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> > > at
> > >
> > org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
> > >
> > > So I even couldn't deploy it. Do you have any suggestion ??
> > >
> > > TIA,
> > >
> > > Tony W
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
I'm running Tomcat behind apache . I agree with you , It looks like
misconfiguration.
But too bad I don't know where the mistake is. I turned on the debug flags,
and I only got these :
*** CREATED Soap Properties from: Soap.properties
********** SOAP PROPERTIES **************
***SERVER URL:
http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
HTTP/1.1
UseProxy: false
ProxyHost: cakra.ee.itb.ac.id
ProxyPort: null
UseProxyLogin: false
Proxy UserId: 1571
Proxy Password: monika1965
Headers Debug: true
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=error
creating input stream from URL Connection: Error writing to server;
targetExcept
ion=java.lang.IllegalArgumentException: error creating input stream from
URL Con
nection: Error writing to server]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:115)
at org.apache.soap.rpc.Call.invoke(Call.java:151)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:113)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:126)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:198)
TIA,
Tony W
At 05:15 AM 10/12/00 -0500, you wrote:
>What is your configuration, please? Are you running with Tomcat behind
>Apache or just
>stand-alone. Heave you got all the debug flags turned on (set to true)?
>It almost looks like that you are not configured correctly.
>Regards - George
>
>Tony Wiharjito wrote:
>
> > Hi George, thank you very much for your answer, I really appreciate it.
> >
> > from your p.s. :
> > 1.) configure the URL in the scripts.
> >
> > Do you mean the scripts in the TShells.LIN directory ? If these are what
> > you mean,
> > I've changed the deploya.sh , so the URL became :
> >
> >
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> >
> > then I ran the deploya.sh, but there is an error message like this :
> >
> > *** CREATED Soap Properties from: Soap.properties
> > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> > msg=error creating input stream from URL Connection: Error writing to
> > server; targetException=java.lang.IllegalArgumentException: error creating
> > input stream from URL Connection: Error writing to server]
> > at
> >
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> > at org.apache.soap.rpc.Call.invoke(Call.java:151)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
> >
> > So I even couldn't deploy it. Do you have any suggestion ??
> >
> > TIA,
> >
> > Tony W
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
I'm running Tomcat behind apache . I agree with you , It looks like
misconfiguration.
But too bad I don't know where the mistake is. I turned on the debug flags,
and I only got these :
*** CREATED Soap Properties from: Soap.properties
********** SOAP PROPERTIES **************
***SERVER URL:
http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
HTTP/1.1
UseProxy: false
ProxyHost: cakra.ee.itb.ac.id
ProxyPort: null
UseProxyLogin: false
Proxy UserId: 1571
Proxy Password: monika1965
Headers Debug: true
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=error
creating input stream from URL Connection: Error writing to server;
targetExcept
ion=java.lang.IllegalArgumentException: error creating input stream from
URL Con
nection: Error writing to server]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:115)
at org.apache.soap.rpc.Call.invoke(Call.java:151)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:113)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:126)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:198)
TIA,
Tony W
At 05:15 AM 10/12/00 -0500, you wrote:
>What is your configuration, please? Are you running with Tomcat behind
>Apache or just
>stand-alone. Heave you got all the debug flags turned on (set to true)?
>It almost looks like that you are not configured correctly.
>Regards - George
>
>Tony Wiharjito wrote:
>
> > Hi George, thank you very much for your answer, I really appreciate it.
> >
> > from your p.s. :
> > 1.) configure the URL in the scripts.
> >
> > Do you mean the scripts in the TShells.LIN directory ? If these are what
> > you mean,
> > I've changed the deploya.sh , so the URL became :
> >
> >
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> >
> > then I ran the deploya.sh, but there is an error message like this :
> >
> > *** CREATED Soap Properties from: Soap.properties
> > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> > msg=error creating input stream from URL Connection: Error writing to
> > server; targetException=java.lang.IllegalArgumentException: error creating
> > input stream from URL Connection: Error writing to server]
> > at
> >
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> > at org.apache.soap.rpc.Call.invoke(Call.java:151)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
> >
> > So I even couldn't deploy it. Do you have any suggestion ??
> >
> > TIA,
> >
> > Tony W
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
What is your configuration, please? Are you running with Tomcat behind Apache or just
stand-alone. Heave you got all the debug flags turned on (set to true)?
It almost looks like that you are not configured correctly.
Regards - George
Tony Wiharjito wrote:
> Hi George, thank you very much for your answer, I really appreciate it.
>
> from your p.s. :
> 1.) configure the URL in the scripts.
>
> Do you mean the scripts in the TShells.LIN directory ? If these are what
> you mean,
> I've changed the deploya.sh , so the URL became :
>
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
>
> then I ran the deploya.sh, but there is an error message like this :
>
> *** CREATED Soap Properties from: Soap.properties
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=error creating input stream from URL Connection: Error writing to
> server; targetException=java.lang.IllegalArgumentException: error creating
> input stream from URL Connection: Error writing to server]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
>
> So I even couldn't deploy it. Do you have any suggestion ??
>
> TIA,
>
> Tony W
>
> At 08:58 AM 10/11/00 -0500, you wrote:
> >The scripts must contain the correct target URL (also the 8080 port number
> >for Tomcat). You
> >must change them for your configuration. Also you must deploy the
> >application before use
> >like (deploya.sh, within the scripts directory, for Linux:) The example
> >scripts were used
> >with Apache at default Port:80 (or 443 for an https connection). That is
> >why there are NO
> >port numbers:
> >deploya.sh
> >runita0.sh or runita1.sh or runita2.sh (for the various addressbook sample
> >variants)
> >Browsing the URL will not really do anything meaningful, please try to
> >configure the URL in
> >the scripts correctly. The master URL is not used yet from the
> >Soap.properties file. The URL
> >in the scripts must be correct currently.
> >I should have done a README in the scripts file.
> >Thank you - George
> >
> >p.s. again in SUMMARY:
> >1.) configure the URL in the scripts.
> >2.) run: deploya.sh
> >3.) run; runita0.sh or runita1.sh or runita2.sh
> >You will get the exceptions when the target URL is NOT correct.
> >Than you - George
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
What is your configuration, please? Are you running with Tomcat behind Apache or just
stand-alone. Heave you got all the debug flags turned on (set to true)?
It almost looks like that you are not configured correctly.
Regards - George
Tony Wiharjito wrote:
> Hi George, thank you very much for your answer, I really appreciate it.
>
> from your p.s. :
> 1.) configure the URL in the scripts.
>
> Do you mean the scripts in the TShells.LIN directory ? If these are what
> you mean,
> I've changed the deploya.sh , so the URL became :
>
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
>
> then I ran the deploya.sh, but there is an error message like this :
>
> *** CREATED Soap Properties from: Soap.properties
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=error creating input stream from URL Connection: Error writing to
> server; targetException=java.lang.IllegalArgumentException: error creating
> input stream from URL Connection: Error writing to server]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
>
> So I even couldn't deploy it. Do you have any suggestion ??
>
> TIA,
>
> Tony W
>
> At 08:58 AM 10/11/00 -0500, you wrote:
> >The scripts must contain the correct target URL (also the 8080 port number
> >for Tomcat). You
> >must change them for your configuration. Also you must deploy the
> >application before use
> >like (deploya.sh, within the scripts directory, for Linux:) The example
> >scripts were used
> >with Apache at default Port:80 (or 443 for an https connection). That is
> >why there are NO
> >port numbers:
> >deploya.sh
> >runita0.sh or runita1.sh or runita2.sh (for the various addressbook sample
> >variants)
> >Browsing the URL will not really do anything meaningful, please try to
> >configure the URL in
> >the scripts correctly. The master URL is not used yet from the
> >Soap.properties file. The URL
> >in the scripts must be correct currently.
> >I should have done a README in the scripts file.
> >Thank you - George
> >
> >p.s. again in SUMMARY:
> >1.) configure the URL in the scripts.
> >2.) run: deploya.sh
> >3.) run; runita0.sh or runita1.sh or runita2.sh
> >You will get the exceptions when the target URL is NOT correct.
> >Than you - George
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Hi George, thank you very much for your answer, I really appreciate it.
from your p.s. :
1.) configure the URL in the scripts.
Do you mean the scripts in the TShells.LIN directory ? If these are what
you mean,
I've changed the deploya.sh , so the URL became :
http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
then I ran the deploya.sh, but there is an error message like this :
*** CREATED Soap Properties from: Soap.properties
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=error creating input stream from URL Connection: Error writing to
server; targetException=java.lang.IllegalArgumentException: error creating
input stream from URL Connection: Error writing to server]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
at org.apache.soap.rpc.Call.invoke(Call.java:151)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
So I even couldn't deploy it. Do you have any suggestion ??
TIA,
Tony W
At 08:58 AM 10/11/00 -0500, you wrote:
>The scripts must contain the correct target URL (also the 8080 port number
>for Tomcat). You
>must change them for your configuration. Also you must deploy the
>application before use
>like (deploya.sh, within the scripts directory, for Linux:) The example
>scripts were used
>with Apache at default Port:80 (or 443 for an https connection). That is
>why there are NO
>port numbers:
>deploya.sh
>runita0.sh or runita1.sh or runita2.sh (for the various addressbook sample
>variants)
>Browsing the URL will not really do anything meaningful, please try to
>configure the URL in
>the scripts correctly. The master URL is not used yet from the
>Soap.properties file. The URL
>in the scripts must be correct currently.
>I should have done a README in the scripts file.
>Thank you - George
>
>p.s. again in SUMMARY:
>1.) configure the URL in the scripts.
>2.) run: deploya.sh
>3.) run; runita0.sh or runita1.sh or runita2.sh
>You will get the exceptions when the target URL is NOT correct.
>Than you - George
Re: Secure soap example
Posted by Tony Wiharjito <to...@telkom.net>.
Hi George, thank you very much for your answer, I really appreciate it.
from your p.s. :
1.) configure the URL in the scripts.
Do you mean the scripts in the TShells.LIN directory ? If these are what
you mean,
I've changed the deploya.sh , so the URL became :
http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
then I ran the deploya.sh, but there is an error message like this :
*** CREATED Soap Properties from: Soap.properties
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=error creating input stream from URL Connection: Error writing to
server; targetException=java.lang.IllegalArgumentException: error creating
input stream from URL Connection: Error writing to server]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
at org.apache.soap.rpc.Call.invoke(Call.java:151)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
So I even couldn't deploy it. Do you have any suggestion ??
TIA,
Tony W
At 08:58 AM 10/11/00 -0500, you wrote:
>The scripts must contain the correct target URL (also the 8080 port number
>for Tomcat). You
>must change them for your configuration. Also you must deploy the
>application before use
>like (deploya.sh, within the scripts directory, for Linux:) The example
>scripts were used
>with Apache at default Port:80 (or 443 for an https connection). That is
>why there are NO
>port numbers:
>deploya.sh
>runita0.sh or runita1.sh or runita2.sh (for the various addressbook sample
>variants)
>Browsing the URL will not really do anything meaningful, please try to
>configure the URL in
>the scripts correctly. The master URL is not used yet from the
>Soap.properties file. The URL
>in the scripts must be correct currently.
>I should have done a README in the scripts file.
>Thank you - George
>
>p.s. again in SUMMARY:
>1.) configure the URL in the scripts.
>2.) run: deploya.sh
>3.) run; runita0.sh or runita1.sh or runita2.sh
>You will get the exceptions when the target URL is NOT correct.
>Than you - George
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
The scripts must contain the correct target URL (also the 8080 port number for Tomcat). You
must change them for your configuration. Also you must deploy the application before use
like (deploya.sh, within the scripts directory, for Linux:) The example scripts were used
with Apache at default Port:80 (or 443 for an https connection). That is why there are NO
port numbers:
deploya.sh
runita0.sh or runita1.sh or runita2.sh (for the various addressbook sample variants)
Browsing the URL will not really do anything meaningful, please try to configure the URL in
the scripts correctly. The master URL is not used yet from the Soap.properties file. The URL
in the scripts must be correct currently.
I should have done a README in the scripts file.
Thank you - George
p.s. again in SUMMARY:
1.) configure the URL in the scripts.
2.) run: deploya.sh
3.) run; runita0.sh or runita1.sh or runita2.sh
You will get the exceptions when the target URL is NOT correct.
Than you - George
Tony Wiharjito wrote:
> Hi All,
>
> I've tried secure soap on my PC (linux box) , I've installed it and I've
> seen that the RPC router is up on port 8080.
> I try to browse at URL:
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> which cakra.ee.itb.ac.id is my computer name, and it shows :
>
> Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.
>
> Then I try to run the example from scripts in Tshells.LIN. I run it without
> anychange to the scripts, but there is error message :
>
> *** CREATED Soap Properties from: Soap.properties
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=error creating input stream from URL Connection:
> http://localhost:80/servlet/org.apache.soap.server.http.RPCRouterServlet
> HTTP/1.1; targetException=java.lang.IllegalArgumentException: error
> creating input stream from URL Connection:
> http://localhost:80/servlet/org.apache.soap.server.http.RPCRouterServlet
> HTTP/1.1]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
>
> Then I try to change the Soap.properties entries with this changes :
>
> org.apache.soap.Server.MasterSoapServerURL =
> http://cakra.ee.itb.ac.id/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> org.apache.soap.UseProxy = true
> org.apache.soap.ProxyHost = cakra.ee.itb.ac.id
> org.apache.soap.http.ProxyPort = 8080
>
> and at /Tshells.LIN/deploya.sh I make this change :
>
> RPC=http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.RPCRouterServlet
>
> but there's error message :
>
> *** CREATED Soap Properties from: Soap.properties
> ERROR while building Soap's System Properties: null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:377)
> at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:243)
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:108)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
>
> Can anyone help me ??? why those problems come ?
> I will very appreciate any help.
>
> TIA,
>
> Tony W
Re: Secure soap example
Posted by George I Matkovits <ma...@uswest.net>.
The scripts must contain the correct target URL (also the 8080 port number for Tomcat). You
must change them for your configuration. Also you must deploy the application before use
like (deploya.sh, within the scripts directory, for Linux:) The example scripts were used
with Apache at default Port:80 (or 443 for an https connection). That is why there are NO
port numbers:
deploya.sh
runita0.sh or runita1.sh or runita2.sh (for the various addressbook sample variants)
Browsing the URL will not really do anything meaningful, please try to configure the URL in
the scripts correctly. The master URL is not used yet from the Soap.properties file. The URL
in the scripts must be correct currently.
I should have done a README in the scripts file.
Thank you - George
p.s. again in SUMMARY:
1.) configure the URL in the scripts.
2.) run: deploya.sh
3.) run; runita0.sh or runita1.sh or runita2.sh
You will get the exceptions when the target URL is NOT correct.
Than you - George
Tony Wiharjito wrote:
> Hi All,
>
> I've tried secure soap on my PC (linux box) , I've installed it and I've
> seen that the RPC router is up on port 8080.
> I try to browse at URL:
> http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> which cakra.ee.itb.ac.id is my computer name, and it shows :
>
> Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.
>
> Then I try to run the example from scripts in Tshells.LIN. I run it without
> anychange to the scripts, but there is error message :
>
> *** CREATED Soap Properties from: Soap.properties
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=error creating input stream from URL Connection:
> http://localhost:80/servlet/org.apache.soap.server.http.RPCRouterServlet
> HTTP/1.1; targetException=java.lang.IllegalArgumentException: error
> creating input stream from URL Connection:
> http://localhost:80/servlet/org.apache.soap.server.http.RPCRouterServlet
> HTTP/1.1]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
>
> Then I try to change the Soap.properties entries with this changes :
>
> org.apache.soap.Server.MasterSoapServerURL =
> http://cakra.ee.itb.ac.id/soap/servlet/org.apache.soap.server.http.RPCRouterServlet
> org.apache.soap.UseProxy = true
> org.apache.soap.ProxyHost = cakra.ee.itb.ac.id
> org.apache.soap.http.ProxyPort = 8080
>
> and at /Tshells.LIN/deploya.sh I make this change :
>
> RPC=http://cakra.ee.itb.ac.id:8080/soap/servlet/org.apache.soap.server.RPCRouterServlet
>
> but there's error message :
>
> *** CREATED Soap Properties from: Soap.properties
> ERROR while building Soap's System Properties: null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:377)
> at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:243)
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:108)
> at org.apache.soap.rpc.Call.invoke(Call.java:151)
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:113)
> at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java:126)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:198)
>
> Can anyone help me ??? why those problems come ?
> I will very appreciate any help.
>
> TIA,
>
> Tony W