shows the results
>of hitting the Soap Admin gui, listing deployed services and
>clicking on
>this one.
>
> and the actual method in the server (the class XMLAPITest)
>is this:
>
> This works--->
>
>
>
> public String helloWorldWithArg(String arg) {
>
;Andrew Trieger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 14:10
Subject: Re: Fw: using SOAPContext as first argument in RPC SOAP messages
class notworking
> SON OF A BI#$@#$#@#$#@$@#
> That's it, i put my .class into the webapp's classes
ply be the case there that a different classloader
is used in iplanet for stuff in a general classes location and classes
within a webapp.
Soap, when needing to do this separate search for a matching signature
with SOAPContext in it, must somehow be relying on it not simply being
available in t
That is the problem. When I put the byte code in
$CATALINA_HOME/common/classes, I get the same error you are seeing:
Ouch, the call failed:
Fault Code = SOAP-ENV:Server
Fault String = Exception while handling service request:
org/apache/soap/rpc/SOAPContext
I bet that Tomcat uses a
PROTECTED]>
Sent: Monday, April 22, 2002 13:15
Subject: Re: using SOAPContext as first argument in RPC SOAP messages class
notworking
> sure, i'm sending this just to you since the list probably doesnt want to
see bytecode...
> Drew
>
> Scott Nichol wrote:
>
> Andrew,
&g
ent: Monday, April 22, 2002 12:48
Subject: Re: using SOAPContext as first argument in RPC SOAP messages class
notworking
> Scott,
> OK. I now reproduced the error on my win2k (professional) box as
well. To reiterate from the previous email response from me, I took your
server cl
esult.getValue
());
}
}
}
- Original Message -
From: "Andrew Trieger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 1:20 PM
Subject: Re: using SOAPContext as first argument in RPC SOAP messages
class not
working
> Good idea, but
call failed:
Fault Code = SOAP-ENV:Server
Fault String = Exception while handling service request:
org/apache/soap/rpc/SOAPContext
[atrieger@shadowfax workspaces]$
With nothing in the catalina.out file.
However, I didnt do anything with your deployment
description below, really, I deploy
thod in the server (the class XMLAPITest)
is this:
This works--->
public String helloWorldWithArg(String arg) {
return arg;
}
But as soon as I add SOAPContext here and
recompile, it doesnt work --->
public String helloWorldWithArg(SOAPContext ctx, String arg)
{
return
pServletRequest)ctx.getProperty(org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST);
>
> if (req != null) _log("remote user is:
>"+req.getQueryString());
>
> return arg;
>
> }
>
>
>
>
>
>
>
> Here's the problem:
>
> It w
ault Code = " + fault.getFaultCode ());
System.out.println (" Fault String = " + fault.getFaultString ());
} else {
Parameter result = resp.getReturnValue ();
System.out.println (result.getValue ());
}
}
}
- Original Message -----
From: "
Good idea, but I *think* its not even executing my method as my first
line println isnt coming out, so I'm screwed, but i might be able to
subclass rpcrouter servlet, use mine instead of theirs, catch throwable
and dump any info to stderr...
Any idea if defining my own custom fault-handler would
against was the same for all tests
> as I forgot to change it, which is the servlet.jar
> in tomcat4.0. So in theory Iplanet
> could have a problem with that, but:
>
> 1. the test fails in tomcat as well as soon as I add
> the SOAPContext arg to the method.
> 2. the messagin
yeah, that is a good idea. The servlet.jar I compiled against was the same for all
tests
as I forgot to change it, which is the servlet.jar in tomcat4.0. So in theory Iplanet
could have a problem with that, but:
1. the test fails in tomcat as well as soon as I add the SOAPContext arg to the
sed in.");
req =
(HttpServletRequest)ctx.getProperty(org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST);
if (req != null) _log("remote
user is: "+req.getQueryString());
return arg;
}
Here's the problem:
It works fine in both java's
and both webservers
(iplanet and tomcat) if I do NOT h
in both java's and both webservers
(iplanet and tomcat) if I do NOT have the SOAPContext first argument
there, only the String named "arg". But, if i change the code to
as it appears above, recompile (with the proper javac for whichever java
i'm using) and restart the webserver
I have seen in the doPost() method of SOAP main servlet
(org.apache.soap.server.http.RPCRouterServlet.class) that some HTTP context
information are copied in the request SOAP Context. Here is the original
code
< CUT HERE ---->
SOAPContext reqCtx = new SOAPContext();
SOAPContext
17 matches
Mail list logo