Re: Install Problem: Admin client prints raw HTML

2001-10-08 Thread Gordon Jones

Ok. The problem is due to precomiled jsps but I have
no idea where they are.

By continuously hitting "refresh" I eventually got new
copies to load, but I have no idea where the original
compiled pages were being kept !

--- Gordon Jones <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm trying to upgrade from a previous version of
> Apache SOAP, and I'm having trouble running the
> admin
> client.
> 
> The main page runs ok, but when I hit deploy or list
> any other button I get the following raw HTML/Java
> junk.
> 
> Please assist me if you can. Here is the output I
> get
> in the browser window from "list":
> 
> <%@ page import="java.util.*,
> org.apache.soap.server.*" %>
> 
> Service Listing
> 
> <% 
>   ServiceManager serviceManager =
>
>
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application);
> 
>   String[] serviceNames = serviceManager.list ();
>   if (serviceNames.length == 0) {
> out.println ("Sorry, there are no services
> currently deployed.");
>   } else {
> out.println ("Here are the deployed services
> (select one to see");
> out.println ("details)");
> %>
> 
> <%
> for (int i = 0; i < serviceNames.length; i++) {
>   String id = serviceNames[i];
> %>
>   <%=
> id%>
> <%
> }
> %>
> 
> <%
>   }
> %>
> 
> 
> 
> 
> __
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site
> hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Install Problem: Admin client prints raw HTML

2001-10-08 Thread Gordon Jones

Hi,

I'm trying to upgrade from a previous version of
Apache SOAP, and I'm having trouble running the admin
client.

The main page runs ok, but when I hit deploy or list
any other button I get the following raw HTML/Java
junk.

Please assist me if you can. Here is the output I get
in the browser window from "list":

<%@ page import="java.util.*,
org.apache.soap.server.*" %>

Service Listing

<% 
  ServiceManager serviceManager =
   
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application);

  String[] serviceNames = serviceManager.list ();
  if (serviceNames.length == 0) {
out.println ("Sorry, there are no services
currently deployed.");
  } else {
out.println ("Here are the deployed services
(select one to see");
out.println ("details)");
%>

<%
for (int i = 0; i < serviceNames.length; i++) {
  String id = serviceNames[i];
%>
  <%=
id%>
<%
}
%>

<%
  }
%>




__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



JAXM

2001-10-08 Thread Dahnke, Eric


Newbie Q sorry,

Does anyone have any feedback about using Sun's JAXM package for creating
SOAP messages?  

I'm looking into creating a  local provider (they call them) type SOAP
client.

The API looks good. Would SOAP messages created with JAXM play well with
other SOAP implementations?


- Regards



RE: ms soap --> apache soap

2001-10-08 Thread Bono, Chris

Thanks a million Richard. You da man!

I suppose further inspection of the MS Soap API would have 
the SOAPAttribute method. I know very little C++ and this
is all new to me. 

Thanks again for your help.

Chris

>>-Original Message-
>>From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, October 05, 2001 3:57 PM
>>To: '[EMAIL PROTECTED]'
>>Subject: RE: ms soap --> apache soap
>>
>>
>>Here is a vb snippet that did it for me. I suppose the same 
>>set of calls
>>should work the same in C++.
>>
>>  Serializer.startElement "string1"
>>  Serializer.SoapAttribute "type", , "xsd:string", "xsi"
>>  Serializer.writeString "client 1"
>>  Serializer.endElement
>>
>>Rick Hansen
>>
>>> We have been running an java apache soap client to a java 
>>> apache soap server
>>> successfully since it was owned by IBM. :-)
>>> 
>>> Well know we have a client that is a C++ shop and I have to 
>>> write a C++ soap
>>> client. Well, not write one, but use one. I have chosen the 
>>> MS Soap Toolkit.
>>> 
>>> 
>>> Without getting into the specifics - I know this is not the 
>>> MS SOAP tookit
>>> list - I would like to know if anyone out there has made 
>>this happen.
>>> 
>>> I am getting really close. However, the low-level ms soap api 
>>> don't let me
>>> specify a type of an element such as
>>> 
>>> aUserID
>>> 
>>> they only allow to specify a name, a namespace uri, an 
>>> encoding style, and a
>>> prefix.
>>> 
>>> >encodingStyle=enc>aUserID
>>> 
>>> Is there a way to make these two forms say the same thing?
>>> 
>>> TIA,
>>> 
>>> Chris Bono
>>> [EMAIL PROTECTED]
>>> 512.531.8518
>>> http://www.zilliant.com
>>>  
>>> 
>>



RE: sessions

2001-10-08 Thread Ryan Winkler

I'd say that this would be a matter of design.  Personally, I'd opt for the
company to have a username and password, which you'd verify through some
sort of login call through SOAP.  Maintain the valid username (or a boolean,
or whatever you choose) on your side, checking for a valid value as needed.

-Original Message-
From: Oleg Timofeyev [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 06, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: RE: sessions


Thank you for this helpful information. However, will the session be
established for the server that is accessing services or the client that
comes to that server and using services provided by me. If a bit confusing,
here is an example. Lets say I compiled a largest database of DVDs and
established web services to access this information. Now here comes, lets
say dvdnow.com and signs up with me to offer information access to his
clients. What will happened now? There will be one session for dvdnow.com or
each time a client comes to their site and uses services there will be a
session opened for him? Thank you for taking the time to answer my post.

Sincerely,
Oleg

-Original Message-
From: Naresh Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 06, 2001 5:28 AM
To: [EMAIL PROTECTED]
Subject: Re: sessions


Hi

Apache Soap supports session maintenace. It uses underlying HTTP mechanism
(cookie based) for session maintenace.

You can find more details on it at the following link.

http://xml.apache.org/soap/docs/guide/migration.html

Hope it will help u..

Regards,
Naresh Agarwal

- Original Message -
From: "Oleg Timofeyev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 06, 2001 1:23 PM
Subject: sessions


> Hi,
>
> I already asked similar question and got no response, I will try to
> re-phrase it. My situation is that I would like to have client login
before
> calling methods on my server. How can I implement it? Probably,
establishing
> a session first and than allowing to call all the other methods. How can
it
> be done with Tomcat and Apache SOAP. Thank you.
>
> Oleg


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



unsubscribe me

2001-10-08 Thread Sandeep Shrivastava

unsubscribe me





How to transmit a java.util.Date

2001-10-08 Thread dovle

Hi all , 
I am a newbe to Apache Soap and I have some problems transmiting some 
parameters to remote methods . On client side I work with kSoap that does not 
know explicitly to send a Date object so it should be more handcoded . I 
managed to send it like this 

http://xml.apache.org/xml-soap"; 
xmlns:xsi="http://www.w3.org/2001/XML$ http://schemas.xmlsoap.org/soap/encoding/";>
  
   java.util.Date@6d737ca3
  
 


But the soap server ( apache soap ) throws an SoapFault with the following :
No deserializer found to deserialize a "http://xml.apache.org/xml-soap:Date 
"... bla bla bla .
So please show me where is the mistake ( in fact the wrong part of the soap 
xml that I send ) .
And please someone send something like an example of xml with date that 
worked . 

Thanks alot ,
dovle .



RE: DeployedServices.xml

2001-10-08 Thread Bishr Tabbaa
Title: DeployedServices.xml



More 
setup details:
1) WEB-INF/web.xml specifies the RPC router 
servlet and a fully qualified path a file named 'soap.xml' in the same 
directory.
2) WEB-INF/soap.xml specifies 
org.apache.soap.server.XMLConfigManager and a fully qualified path to a file 
named 'DeployedServices.xml'.
3) 
WEB-INF/DeployedServices.xml specifies the endpoint(s).
 
When 
the mgr processes a corrupted #3 [well-formed, but invalid with missing tags], 
it doesn't report ANYthing.  No IllegalArgumentExceptions, 
NullPointerExceptions, etc.  I know that it has reached this point, because 
when #2 is missing, the server reports a 'fresh start'.
 
Any 
ideas before I write my own XMLConfigManager?
 
Thanks 
again.
/bishr

  -Original Message-From: Bishr Tabbaa 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 08, 2001 8:16 
  AMTo: '[EMAIL PROTECTED]'Subject: 
  DeployedServices.xml
  PROBLEM: I would like to avoid 
  deploying the admin tool in a production environment; hence I am interested in 
  handwriting my 'own' soap.xml and DeployedServices.xml.  However, I have 
  noticed that unless even when the latter file is well-formed & valid, 
  DeployedServices.xml corresponding to the 
  org.apache.soap.server.XMLConfigManager does not get processed 
  correctly.  For example, the "id" of a service is left unspecified and I 
  do not observe the exception that is supposed to be thrown [yes, I did look at 
  the source].  Similarly, I can leave the "class" implementing the service 
  unspecified and observe no errors.
  What gives? 
  Thanks, Bishr 
  P.S.  My configuration is tomcat 
  3.2 apache-soap 2.2 jdk 
  1.3.1 win2k sp1 


verbose debug settings for non-production environment

2001-10-08 Thread Bishr Tabbaa
Title: verbose debug settings for non-production environment





What I have done:
+ Server/Logger[@verbosityLevel] of "tc_log", "servlet_log", and "JASPER_LOG" equals "DEBUG" 
+ Server/ContextManager[@debug] = 10
+ Server/Context[@debug] = 10


What about the request & context interceptors?  Any other components that are in the critical path that may be setup for verbose debugging?

Many thanks,
Bishr





DeployedServices.xml

2001-10-08 Thread Bishr Tabbaa
Title: DeployedServices.xml





PROBLEM:
I would like to avoid deploying the admin tool in a production environment; hence I am interested in handwriting my 'own' soap.xml and DeployedServices.xml.  However, I have noticed that unless even when the latter file is well-formed & valid, DeployedServices.xml corresponding to the org.apache.soap.server.XMLConfigManager does not get processed correctly.  For example, the "id" of a service is left unspecified and I do not observe the exception that is supposed to be thrown [yes, I did look at the source].  Similarly, I can leave the "class" implementing the service unspecified and observe no errors.

What gives?


Thanks,
Bishr


P.S.  My configuration is 
tomcat 3.2
apache-soap 2.2
jdk 1.3.1
win2k sp1





RE: WSDL Problem

2001-10-08 Thread James Pasley


Keith,

This is an XML namespace issue. The targetNamespace attribute at the
start of the file defines the namespace that all the definitions you define
in your WSDL file will be in. Whenever you reference any of these
definitions
you must use the correct namespace prefix, in your case the "tns" prefix.

So to be fully correct, you should fix the references to the messages and
portTypes as well as the bindings.

You shouldn't add the prefix before the operation name as the WSDL spec
states that this is a non-qualified name.

I've attached a fixed version of your file with the namespace prefixes
added in all the right placed. 

If you would more details on the kinds of errors to avoid when writing WSDL
check out this link:
http://www.capescience.com/library/articles/common-wsdl-errors.html

Regards,

James



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: WSDL Problem




Hi

I have created a java class which has one method square taking a double and
returning a double.  I have deployed this class to SOAP.
I have genereated WSDL via IBM wstk tool. I am using WSIF to try and
dynamically
read the WSDL and invoke the method,  but I cant seem to call it without
making
some changes to the WSDL that was generated.

If I add "tns:" to port binding i.e. 


MathX.wsdl
Description: Binary data


Re: SOAP..I want more

2001-10-08 Thread Radovan Janecek

Hi all,

just to inform you, WASP (SOAP engine implementation from Idoox) offers
activation/passivation of web services, it supports object by reference
passing, lifecycle service for web services (sound base for distributed
garbage collection), and many other really 'distributed' features :-)

Best regards

Radovan


Radovan Janecek
VP, Engineering, Idoox, Inc.
http://www.idoox.com


- Original Message -
From: "Francis Ho" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 05, 2001 3:41 PM
Subject: RE: SOAP..I want more


> At this point, it is basically up to you:
> how you write and configure your services.
>
> sometime in the future, I can envision a more advanced SOAP service
> container that does things like activation and passivation.
>
>
> francis
>
>
> >> -Original Message-
> >> From: Gaurav [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, October 05, 2001 6:29 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: SOAP..I want more
> >>
> >>
> >> Hi SOAPers,
> >>
> >>  We know that SOAP does not have sophisticated facilities like
> >> distributed
> >> garbage collection, object by reference passing etc like other
> >> wire protocol
> >> (JRMP, ORPC etc). But then how do we take care of things like
distributed
> >> garbage collection in webservices?? Anybody has any idea!!
> >>
> >> Thanks.
> >>
> >>
>




Re: When TcpTunnelGUI doesn't work...

2001-10-08 Thread Paramdeep Singh

hi,

instead of using

resp = call.invoke(new URL("http://myhost:8080/soap/servlet/rpcrouter";),
"");

use :

resp = call.invoke(new URL("http://myhost:4040/soap/servlet/rpcrouter";),
"");

where 4040 is the port on which the TcpTunnel is listening..

Regards
Paramdeep

- Original Message -
From: "Simone Badoer" <[EMAIL PROTECTED]>
To: "Soap" <[EMAIL PROTECTED]>
Sent: Monday, October 08, 2001 2:51 PM
Subject: When TcpTunnelGUI doesn't work...


I've tried to run TcpTunnelGUI, but it never shows any data.

So I ask if somebody can write me the SOAP-HTTP Request and Response for
this simple example.


CLIENT:

String data="hello";
Call call = new Call();
call.setTargetObjectURI("urn:Boomerang");
call.setMethodName("getString");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
Vector params = new Vector();
params.addElement(new Parameter("data", String.class,data, null));
call.setParams(params);

Response resp;
 try
   {
 resp = call.invoke(new
URL("http://myhost:8080/soap/servlet/rpcrouter";), "");
   }
   catch (SOAPException e)..

SERVER:

public class Boomerang  {
  public String getString(String str)
  {
return str;
  }
}

Thank you,
Simone.




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




When TcpTunnelGUI doesn't work...

2001-10-08 Thread Simone Badoer



I've tried to run TcpTunnelGUI, but it never shows 
any data.
 
So I ask if somebody can write me the SOAP-HTTP 
Request and Response for this simple example.
 
 
CLIENT:
 
    String 
data="hello";
    Call call = new 
Call();    
call.setTargetObjectURI("urn:Boomerang");    
call.setMethodName("getString");    
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    Vector params = new 
Vector();    params.addElement(new Parameter("data", 
String.class,data, null));    
call.setParams(params);
 
    Response resp;
 
try   
{ resp = call.invoke(new 
URL("http://myhost:8080/soap/servlet/rpcrouter"), 
"");   
}   catch (SOAPException 
e)..
SERVER:
 
public class Boomerang  {
  public String getString(String 
str)  {    return 
str;  }}
 
Thank you, 
    
Simone.
 


unsubscribe me

2001-10-08 Thread toril . andersson

Please, unsubscribe me !