RE: newbie to Java and SOAP

2002-01-28 Thread Hansen, Richard

> 1) What should my classpath be? 

Depends, mine has no changes for SOAP under Tomcat 4.1

> 2) Do I need to modify catalina.bat?

No.

> 3) What jars go in each directory?

Either put the .war in the webaps directory or copy the webapps\soap
direcotry to webapps. You may need to get soap.jar into the classpath. I put
it into soap\web-inf\lib.

> 4) The 3.2.x installation instructions require downloading xerces.jar,
> mail.jar, activation.jar, etc., but Tomcat 4 seems to come 
> with all of these
> in the tomcat\common\lib directory. So do we use the ones 
> that come with Tomcat or do we still need to download new ones?

Should be ok.

> 5) What is the difference between tomcat\common\lib and 
> tomcat\lib? Should both be in the classpath?

Please read the Tomcat docs, there is a good explaination of Tomcat class
loading.

Rick Hansen



RE: Serializing an array of beans

2002-01-09 Thread Hansen, Richard

On the client all I do is register the serializer for my object.

// prepare the mapping registry
registry = new SOAPMappingRegistry();
//QName qname = new QName("http://www.stringservice/xsd";, "StringBean");
QName qname = new
QName("http://www.themindelectric.com/package/service.common/";,
"StringBean");
 
BeanSerializer serializer = new BeanSerializer();
registry.mapTypes(Constants.NS_URI_SOAP_ENC, qname, StringBean.class,
serializer, serializer);

> -Original Message-
> From: Andrew Simpson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 09, 2002 4:30 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Serializing an array of beans
> 
> 
> 
> Hi Richard, thanks for your message.
> 
> I should have clarified that I'm currently only interested in 
> server->client
> communication, i.e. the java2XMLClassName attribute; your 
> examples seem to
> be for client->server.
> 
> What I'd like to be able to do is something like:
> 
>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>   xmlns:x="soapejb" qname="x:StockBean[]"
>   Java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> />
> 
> OR maybe a combination of
> 
>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>   xmlns:x="soapejb" qname="x:StockBean"
>   Java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> />
>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>   xmlns:x="soapejb" qname="x:StockBean[]"
>   Java2XMLClassName="org.apache.soap.encoding.soapenc.ArraySerializer"
> />
> 
> And have the invoked method look like:
> 
> StockBean[] listStocks { //... }
> 
> 
> However I've concluded that neither of these is possible, and 
> that I will
> need to write and serialize a wrapper class myself (i.e. a 
> simple bean that
> contains an array, rather than an array).
> 
> I can't make ANY type of serializer other than the apache 
> ones work, which
> worries me.
> 
> I assume that providing a class and a pointer to it is all 
> that I need to do
> at the server end?
> 
> Thanks,
> 
> Andrew
> 
> -Original Message-
> From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 09, 2002 5:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Serializing an array of beans
> 
> 
> I don't think you normally need to worry about array 
> serialization. I think
> it will just happen. You do need to worry about serializing 
> your bean. But
> if the bean class is properly registered with a serializer 
> arrays should
> just work. The only reason I needed to register the arrays 
> was so MS SOAP
> would work. In my Java client I just registered a serializer 
> for my bean.
> 
> http://schemas.xmlsoap.org/soap/encoding/";
>  xmlns:x="" qname="x:stringArray"
> 
> xml2JavaClassName="org.apache.soap.encoding.soapenc.ArraySerializer"/>
> 
> http://schemas.xmlsoap.org/soap/encoding/";
>  xmlns:x="" qname="x:stringBeanArray"
> 
> xml2JavaClassName="org.apache.soap.encoding.soapenc.ArraySerializer"/>
> 
> > -Original Message-
> > From: Andrew Simpson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 09, 2002 3:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: Serializing an array of beans
> >
> >
> > Hi, I'm going round in circles trying to serialize an array 
> of beans.
> >
> > First I tried using the Apache Bean Serializer, specifying it in the
> > deployment descriptor; this worked for one bean, but not 
> for an array.
> >
> > I then wrapped the array in another class, then tried to 
> write my own
> > serializer for the wrapper class, and refer to this 
> serializer in the
> > deployment descriptor.
> >
> > This produces an error on post whenever I change it to point
> > from anything
> > but the apache serializers.
> >
> > I am inspecting the XML returned from the soap servlet, the
> > output is shown
> > below.
> >
> > On the server end, is using the deployment descriptor (e.g.
> > xml2java...
> > attribute) sufficent to successfully invoke my serializer
> > when returning a
> > reply?
> >
> > From the client end I am using perl SOAP::Lite to invoke the
> > function.  On
> > the server end I am using the StatelessSessionBean provider
> > to invoke a
> 

RE: Serializing an array of beans

2002-01-09 Thread Hansen, Richard

I don't think you normally need to worry about array serialization. I think
it will just happen. You do need to worry about serializing your bean. But
if the bean class is properly registered with a serializer arrays should
just work. The only reason I needed to register the arrays was so MS SOAP
would work. In my Java client I just registered a serializer for my bean.

http://schemas.xmlsoap.org/soap/encoding/"; 
 xmlns:x="" qname="x:stringArray" 
 
xml2JavaClassName="org.apache.soap.encoding.soapenc.ArraySerializer"/>

http://schemas.xmlsoap.org/soap/encoding/"; 
 xmlns:x="" qname="x:stringBeanArray" 
 
xml2JavaClassName="org.apache.soap.encoding.soapenc.ArraySerializer"/>

> -Original Message-
> From: Andrew Simpson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 09, 2002 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: Serializing an array of beans
> 
> 
> Hi, I'm going round in circles trying to serialize an array of beans.
> 
> First I tried using the Apache Bean Serializer, specifying it in the
> deployment descriptor; this worked for one bean, but not for an array.
> 
> I then wrapped the array in another class, then tried to write my own
> serializer for the wrapper class, and refer to this serializer in the
> deployment descriptor.
> 
> This produces an error on post whenever I change it to point 
> from anything
> but the apache serializers.
> 
> I am inspecting the XML returned from the soap servlet, the 
> output is shown
> below.
> 
> On the server end, is using the deployment descriptor (e.g. 
> xml2java...
> attribute) sufficent to successfully invoke my serializer 
> when returning a
> reply?
> 
> From the client end I am using perl SOAP::Lite to invoke the 
> function.  On
> the server end I am using the StatelessSessionBean provider 
> to invoke a
> method whose return type is the object array.
> 
> Has anyone managed to write and make work an object array 
> serializer on
> Apache SOAP 2.2.  If so, do you have any 
> code/class/deployment descriptors I
> could look at?
> 
> Thanks,
> 
> Andrew
> 
> 12:00:18:362|15|S|010: 
> 12:00:18:362|15|S|011: 
> 12:00:18:362|15|S|012: 
> SOAP-ENV:Server.Exception:
> 12:00:18:362|15|S|013:
> org/apache/soap/util/xml/Serializer
> 12:00:18:362|15|S|014: 
> /soap/servlet/rpcrouter
> 12:00:18:362|15|S|015: 
> 12:00:18:362|15|S|016:
> 12:00:18:362|15|S|017: 
> 
> __
> __
> 
>  Andrew Simpson, SpeechWorks International, Inc.
>  695 Atlantic Avenue, Boston, MA 02111, U.S.A.
>  Voice: +1 617 428 ,  Fax: +1 617 757 2211
>  [EMAIL PROTECTED]  http://www.speechworks.com
> 
> 



RE: different FaultListener

2001-12-18 Thread Hansen, Richard

> could someone please tell me, why I should define 2 ore more diferetn
> Faultlistener(maybe my own)

Because you want to set the fault code being returned to the client.

> in the DD and how does the application or the Apache SOAP API 
> decide which
> Faultlistener to use.

Whatever you tell it in the deployment descriptor.

> 
> In my service, there could be come up many different errors, which are
> described by different codes.
> The SOAP spec don´t tolerate my own Codes for the "Fault Code" in the
> 
> I want to set my codes and a description in the details/details-entry
> section of the .
> 
> Does anybody has experiance with Faultlistener?
> And  how could I define it in a WSDL that a serviceuser knows my error
> codes and could handle this.

I am not aware of anything in WSDL for defining/declaring errors.

> An example :
> 
> After the session times out,  an error will sent back to the 
> user in the
> Fault section, so the client should
> login again, this it could be decided by using the errorcode.
> 
> Can anybody give me a hint.
> 
> regards daniel
> 
> 
> SinnerSchrader Deutschland GmbH
> Communication & Technology
> 
> mailto:[EMAIL PROTECTED]
> http://www.sinnerschrader.com
> fon +49.(0) 40.39 88 55-0
> fax +49.(0) 40.39 88 55-55
> gasstrasse 8-16 | 22761 hamburg | germany
> 
> 



RE: Help to run soap example.

2001-12-12 Thread Hansen, Richard

Please read the documentation, it says :

"The service does not support the invoked method. If your service
implementation class has the method, then it may be that your deployment
descriptor doesn't publish that method. Check your deployment descriptor.
The  element may contain more detailed information."

Make sure deployed name of the method is the same as the actual class method
name.

> -Original Message-
> From: Rino Srivastava [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 12, 2001 1:10 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Help to run soap example.
> 
> 
> Check that your client and server are in the proper directory.
> 
> Also, if you are using tomcat, then edit the server.xml file under
> tomcat/config to specify the right context.
> 
> Hope this helps.
> 
> Cheer!
> Rino
> -Original Message-
> From: Puthezhath, Rajeev (TWII Boston) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 12, 2001 12:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: Help to run soap example.
> 
> 
> Hi,
> 
> I am new to soap and is trying to run it with Orion server. 
> When I try to
> run the hello server example I get the following error
> 
>Fault Code   = SOAP-ENV:Server
>Fault String = Method 'sayHelloTo' is not supported.
> 
> my service is like this
> 
> package hello;
> public class HelloServer 
> {
>
>public String sayHelloTo()
>{
>   System.out.println("sayHelloTo(String name)");
>   return "Hello " + "rajeev" + ", How are you doing?";   
>}
> }
> 
> and the client is this
> 
>  Call call = new Call();
>  call.setSOAPMappingRegistry(new SOAPMappingRegistry());
>  call.setTargetObjectURI("urn:Hello");
>   
>  call.setMethodName("sayHelloTo");
>  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC); 
>  Vector params = new Vector(); 
>params.addElement(new Parameter("name", String.class, name,
> null));
>  call.setParams(params);
>   
>  // Invoke the call.
>  Response resp = null; 
>  try
>  {
> resp = call.invoke(url, "");
>   
>  }
>
> Any idea why this is happening
> Thanks
> Rajeev 
> 



RE: Is Apache SOAP a turnstile?

2001-12-11 Thread Hansen, Richard

Why would you expect it to block using application scope? If your methods
are not synchronized (which they probably should not be) I don't think they
block. The Apache SOAP scoping controls how many instances of a service
class are created and when they are created. Application equals one global
instance, request means one instance per request, session means one per http
session.

I suppose it is also possible that his rpcrouter servlet has been setup to
use the single threaded servlet model.

Rick Hansen

> -Original Message-
> From: Guy McArthur [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 11, 2001 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Is Apache SOAP a turnstile?
> 
> 
> 
> I think he's saying if you call the sleep method in client A 
> at time 0, 
> then by client B at time +1 seconds. With application scope, 
> you'd expect 
> A to block B, correct? But without app scope it should not block.
> 



RE: Check the FAQ and some links before asking here

2001-12-04 Thread Hansen, Richard

Too bad the list doesn't add a footer to every message listing the url for
the FAQ pages.
 
Rick Hansen



RE: SOAP Performance and when SOAP should be used

2001-11-09 Thread Hansen, Richard

Not over http anyway. Perhaps using smtp or some type of messaging
middleware as the transport.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 09, 2001 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: SOAP Performance and when SOAP should be used
> 
> 
> Hi Radovan,
> 
> I also had a question regarding callbacks.  I don't see how callbacks 
> can be used currently with SOAP.  If a client makes a SOAP request to 
> the server and the process takes one hour, I can't hold the 
> connection for that long and thus will send the request 
> asynchronously.  When the job finishes on the server, how then is my 
> client called back and notified?  I see this as a current drawback to 
> SOAP due to the fact it isn't designed to handle these kind of 
> requests.  Am I missing something?
> 
> Thanks again,
> 
> Chuck
> 
> -Original Message-
> From: Ken.Crismon 
> Sent: Friday, November 09, 2001 10:39 AM
> To: soap-user; janecek
> Cc: Ken.Crismon
> Subject: RE: SOAP Performance and when SOAP should be used
> 
> 
> Radovan,
> 
> I very interested in the notion of Transaction as you mentioned them
> below.
> 
> What exactly are you referring to???  
> 
> Is there a group working on transaction semantics for web services and
> workflow???
> 
> Thanks in advance for the information.
> 
> Ken Crismon
> RioLabs, Inc.
> 
> -Original Message-
> From: Radovan Janecek [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 09, 2001 3:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: SOAP Performance and when SOAP should be used
> 
> 
> It is difficult to say what the performance of SOAP exactly is since 
> all
> the
> soap stacks rely on HTTP (or other) transport. HTTP is not fast and
> actually
> it means remarkable overhead in processing SOAP messages. So, I can 
> tell
> you
> that WASP does 500 messages per second, but this applies only to 
> WASP's
> embedded HTTP server. Tomcat is much more slower, other may be 
> faster...
> You
> probably have your own web server you want to use as a hosting
> environment
> for a SOAP stack...
> 
> As for the session management, it is not a part of the SOAP spec, but
> reasonable SOAP stack should offer this feature and still keep 
> transport
> independency.
> 
> I see no problem with callbacks to clients.
> 
> I agree that XML message size is a real issue.
> 
> I think that the advantages are great enough to use SOAP. Moreover, 
> SOAP
> is
> not alone. There is WSDL, UDDI, SOAP digital signatures, XKMS, ebXML
> (adopting SOAP), there will be workflow for web services, 
> transactions,
> and
> many other stuff. So, I would choose SOAP because I see the future in
> it.
> The only exception (imho) is an application that really need brutal
> performance.
> 
> Radovan
> 
> 
> Radovan Janecek
> VP, Engineering, Systinet  (formerly Idoox)
> http://www.systinet.com
> 
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 08, 2001 4:47 PM
> Subject: SOAP Performance and when SOAP should be used
> 
> 
> > Hi all,
> >
> >
> > Can anyone point me to data comparing SOAP performance vs. RMI vs.
> > CORBA?  SOAP seems to be relatively speedy when dealing with short
> > synchronous requests w/very little to medium size data parameters.
> > I'm trying to determine given a certain architecture when SOAP would
> > be the proper mechanism.  What I believe SOAP has going for is that
> > it's an open standard (as opposed to CORBA implementations varying
> > depending on the vendor),self describing format (XML), low runtime
> > overhead (I don't have to do ORB/rmiregistry monitoring), language
> > independence (CORBA has, RMI does not), and allows for very thin
> > clients (SOAP XML parsing is all that is needed).  With all that in
> > mind there are disadvantages: At least on top of HTTP it follows a
> > request/reply protocol.  It might not be appropriate when doing
> > asynchronous requests that require callbacks to the client.  SOAP 
> has
> > no session management ability (although we could build that
> > ourselves), and the usual disadvantages of XML (overhead required 
> for
> > parsing, and increase in message size due to XML meta data).
> >
> > With all that in mind, I'm trying to compare the overhead 
> performance
> > cost of using SOAP. Given its advantages, are the great enough to
> > outweigh the potential performance issues?
> >
> > Thanks in advance,
> >
> > Chuck King
> >
> >
> >
> >
> > Visit our website at http://www.ubswarburg.com
> >
> > This message contains confidential information and is intended only
> > for the individual named.  If you are not the named addressee you
> > should not disseminate, distribute or copy this e-mail.  Please
> > notify the sender immediately by e-mail if you have received this
> > e-mail by mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free
> > as informati

RE: Java Exceptions Vs. SOAP fault

2001-10-22 Thread Hansen, Richard

To get this past the router you will need to define a new fault listener for
your service. This listener can then listen for you exceptions and build
custom faults. Check in the docs on how to do this.
 
Rick

-Original Message-
From: Rajasekhar [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 2:09 PM
To: SOAP List
Subject: Java Exceptions Vs. SOAP fault



Hi,

I am trying to understand how exception handling works  with SOAP.  My
service on the server side can throw an exception (either MyException1 or
MyException2) based on specific condition on the server side. When the
server throws an exception, all I am getting at the client side is a Falut
(with fault code SOAP-ENV:Server) and faultString.  I am missing the error
code with the exception thrown at the server. Here is the sample code, I am
trying:

public class MyException1 extends Exception {
   public static int REASON1 = 100;
   public static int REASON2 = 200;
  
   private int errCode;
   MyException1(int _errCode, String msg)
   {
  super(msg);
  errCode = _errCode;
   }
}

public class MyException2 extends Exception {
   public static int REASON1 = 555;
   public static int REASON2 = 666;
  
   private int errCode;
   MyException1(int _errCode, String msg)
   {
  super(msg);
  errCode = _errCode;
   }
}

public class MyServer {
   public void testIt(int testCondition) throws ServiceException1,
ServiceException2
   {
  if(testCondition == 1)
  {
 throw new MyException1(MyException1.REASON1, "this is exception1");
  }
  else if(testCondition == 2)
  {
 throw new MyException2(MyException2.REASON1, "this is exception2");
  }
   }
}

Client:


import java.net.URL;
import java.util.Vector;
import java.util.Iterator;
import org.apache.soap.SOAPException;
import org.apache.soap.Constants;
import org.apache.soap.Fault;
import org.apache.soap.rpc.Call;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;

public class MyClient {

 public testIt() throws MyException1, MyException2
 {
   URL url = new url("   http://blah..blah";);
 Call call = new Call();
   Vector param = new Vector();
 params.addElement(new Parameter("testValue",Integer.class, new
Integer(10), null));
 call.setParams(params);
 call.setTargetObjectURI("urn:MyServer");
 call.setMethodName("testIt");
 call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);

 // Invoke the call.
 Response resp = null;
 try
 {
resp = call.invoke(url, "");
 }
 catch( SOAPException e )
 {
System.err.println("Caught SOAPException (" + e.getFaultCode() +
"): " + e.getMessage());
System.exit(-1);
 }
  
 // Check the response.
 if( !resp.generatedFault() )
 {
Parameter ret = resp.getReturnValue();
 }
 else
 {
Fault fault = resp.getFault();   
System.err.println("Generated fault: ");
System.err.println(fault.toString());

Vector entries = fault.getDetailEntries(  );
for (Iterator i = entries.iterator(); i.hasNext(  ); ) {
org.w3c.dom.Element entry = (org.w3c.dom.Element)i.next(  );
System.out.println(entry.getFirstChild().getNodeValue(  ));
}
   
//Find out what is the exception thrown by the server and reason
for the exception
//recreate the exception object (MyException1 or MyException2)
and throw it to the
//above layers for more proessing.??? How do I do this

 }
  }
  catch(Exception e)
  {
 e.printStackTrace();
  }
   }  
}

Thanks in advance for any suggestions and I appreciate, if somebody helps me
with some useful example code.

- Raj.







RE: ms soap --> apache soap

2001-10-05 Thread Hansen, Richard

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.
> 
> 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: java.lang.NoSuchMethodError

2001-09-28 Thread Hansen, Richard

1) Do the samples work?
2) Have you looked in the FAQs? They cover this pretty well.
3) This us normally a class path issues. I might also be a xml parser
problem. Some version of Xerces dont work right.

Rick Hansen

> -Original Message-
> From: Alex Lindgren [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 28, 2001 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: java.lang.NoSuchMethodError
> 
> 
> I am getting kind of frustrated trying to get this to work so 
> I thought I'd
> turn to the list for help. The solution to my problem is 
> probably simple,
> but I don't see it.  Here's my problem:
> 
> Every time I make a soap request, it returns with the a fault 
> string of
> "java.lang.NoSuchMethodError".
> 
> I'm using Apache Soap running on Tomcat.  I used the admin 
> servlet to deploy
> a test method.  The deployment descriptor is set with these values:
> ID: "urn:Test"
> Scope: "Request"
> Provider Type: "java"
> Provider Class: "soapmail.MailAgent" (the class that has the 
> test method)
> Use Static Class: "false" (the test method was not static)
> Methods: "testMethod" (the name of my test method is testMethod())
> Type Mappings: [blank] (my test method returns a string)
> Default Mapping Registry Class: [blank]
> 
> I've tried using my test method with two SOAP clients: Microsoft's Web
> Services Behavior and a test Java program using Apache Soap. 
> The main part
> of the java code is:
> Call call = new Call();
> call.setTargetObjectURI("urn:Test");
> call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
> call.setMethodName("testMethod");
> Response response = call.invoke(new
> URL("http://localhost/soap/servlet/rpcrouter";), "");
> 
> This is the request that gets sent:
> 
> OK
> accept()POST /soap/servlet/rpcrouter HTTP/1.0
> Host: localhost
> Content-Type: text/xml; charset=utf-8
> Content-Length: 401
> SOAPAction: ""
> 
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> 
> 
> 
> 
> The response is this:
> 
> HTTP/1.0 500 Internal Server Error
> Content-Type: text/xml; charset=utf-8
> Content-Length: 472
> Set-Cookie2: JSESSIONID=6cuo3ftoa1;Version=1;Discard;Path="/soap"
> Set-Cookie: JSESSIONID=6cuo3ftoa1;Path=/soap
> Servlet-Engine: Tomcat Web Server/3.2.2 (JSP 1.1; Servlet 2.2; Java
> 1.3.0_02; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> 
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
> 
> SOAP-ENV:Server.Exception:
> java.lang.NoSuchMethodError
> /soap/servlet/rpcrouter
> 
> 
> 
> 
> Any suggestions/comments would be welcome!
> 
> Thanks,
> Alex
> 
> 



RE: Getting new WSDL option to work with axis-alpha2

2001-09-26 Thread Hansen, Richard

Is the Axis user list up? The Axis web site says :

The Axis User List
No Traffic (doesn't exist yet)

> -Original Message-
> From: Glen Daniels [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 1:57 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Getting new WSDL option to work with axis-alpha2
> 
> 
> 
> What Doug meant to say is:
> 
> There is an "[EMAIL PROTECTED]" mailing list for just 
> such threads as
> these, and an "[EMAIL PROTECTED]" list for development 
> issues.  As
> referenced in the docs included in the distribution, we would 
> appreciate if
> Axis-related correspondence would go there instead of the 
> "soap-" mailing
> lists, which are for SOAP 2.X.
> 
> Thanks,
> --Glen
> 
> -Original Message-
> From: Doug Davis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Getting new WSDL option to work with axis-alpha2
> 
> 
> ALL!! Please discuss Axis issues on the Axis mailing list.
> -Dug
> 
> 
> Bob Cotton <[EMAIL PROTECTED]>@synxis.com on 09/26/2001 02:30:39 PM
> 
> Please respond to [EMAIL PROTECTED]
> 
> Sent by:  [EMAIL PROTECTED]
> 
> 
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Re: Getting new WSDL option to work with axis-alpha2
> 
> 
> 
> > "Tim" == Tim Johnson <[EMAIL PROTECTED]> writes:
> 
> Tim> Thanks Bob, that did the trick!!
> Tim> Does the development group need to know about this?
> 
> I already submitted a patch. I believe its been checked into cvs. Must
> have just missed the alpha2 build.
> 
> - Bob
> 
> 
> 
> --
> SynXis Corporation  | [EMAIL PROTECTED]| Obstacles are 
> those frightful
> 1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see 
> when you take
> your
> Denver, CO  80202   | Fax:(303)534-4257 | eyes off your 
> goal.  -Henry
> Ford
> 
> 



RE: SOAP Messaging vs. POSTing xml

2001-09-26 Thread Hansen, Richard

I think a lot of it is ease of creation and maintenance. The soap server
takes care of all the XML processing, all you deal with is normal Java data
types. You get to write normal Java classes deploy them in the server. You
don't need to write a multitide of servlets, each with XML parsing, to
handle each service request type.

Rick Hansen

> -Original Message-
> From: Bob Cotton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: SOAP Messaging vs. POSTing xml
> 
> 
> 
> I've been trying to understand how to incorporate SOAP into our
> architecture. I can see many benefits to using SOAP RPC as a platform
> neutral RPC mechanism. 
> 
> But we have some use cases that are just an upload of xml data. Batch
> processing with an xml return of the status of the batch.
> 
> What are the advantages of using SOAP messaging instead of a simple
> POST of xml to a servlet?
> 
> Thanks
> - Bob
> 
> -- 
> SynXis Corporation  | [EMAIL PROTECTED]| Obstacles are 
> those frightful 
> 1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see 
> when you take your
> Denver, CO  80202   | Fax:(303)534-4257 | eyes off your 
> goal.  -Henry Ford
> 



FW: DateSerializer bug fix

2001-08-21 Thread Hansen, Richard

I hope someone in the Dev group will check this out an commit the changes. I
got little response on the Dev list, so in the mean time I will post to the
larger group here.

Rick Hansen

-Original Message-
From: Hansen, Richard 
Sent: Friday, August 17, 2001 10:15 AM
To: '[EMAIL PROTECTED]'
Subject: DateSerializer bug fix


It appears that the DateSerializer does need some synchronized blocks. I
verified that the Date output from unmarshall() is not always equivalent to
the string value input to unmarshall(). So, I placed synchronized blocks
around the SimpleDateFormat.format() calls. This seems to have fixed the
problem. I did not explore how serializers are created and used. I assume
they shared and that is why there are synchronization issues?

I looked at most of the serializers/deserializers in the
org.apache.soap.encoding.soapenc package and Date and Calendar seem to be
the only ones with member variables. I think Calendar has the same problem
as it also creates a SimpleDateFormat object.

I have marked my chages below, so I hope someone will commit them. If there
is a better way to fix this I would like to hear about it.

Thanks

Rick Hansen

  public void marshall(String inScopeEncStyle, Class javaType, Object src,
   Object context, Writer sink, NSStack nsStack,
   XMLJavaMappingRegistry xjmr, SOAPContext ctx)
throws IllegalArgumentException, IOException
  {
if(!javaType.equals(java.util.Date.class))
{
  throw new IllegalArgumentException("Can only serialize java.util.Date
instances");
}
nsStack.pushScope();
if(src!=null)
{
  SoapEncUtils.generateStructureHeader(inScopeEncStyle,
   javaType,
   context,
   sink,
   nsStack,xjmr);
//  START CHANGE
  String fdate; 
  
  synchronized(sdf) {
fdate=sdf.format((Date)src);
  }
//  END CHANGE
  sink.write(fdate);
  sink.write("');
}
else
{
  SoapEncUtils.generateNullStructure(inScopeEncStyle,
   javaType,
   context,
   sink,
   nsStack,xjmr);
}
nsStack.popScope();
  }

  public Bean unmarshall(String inScopeEncStyle, QName elementType, Node
src,
 XMLJavaMappingRegistry xjmr, SOAPContext ctx)
  throws IllegalArgumentException
  {
Date date=null;
Element root = (Element)src;
String value = DOMUtils.getChildCharacterData(root);
if(value!=null && !((value=value.trim()).equals("")))
{
  try
  {
//  START CHANGE
synchronized(sdf) {
  date=sdf.parse(value);
}
   //  END CHANGE 
  }
  catch (ParseException pe)
  {
try
{
  //  START CHANGE 
  synchronized(sdf_ms) {
date=sdf_ms.parse(value);
  }
  //  END CHANGE
}
catch (ParseException pe2)
{
  throw new IllegalArgumentException("String represents no valid " +
 "Date for this Deserializer; "
+
 "try " + sdf.toPattern() +
".");
}
  }
}

return new Bean(java.util.Date.class,date);
  }
}

> 
> Before I dive into any code changes, has anyone else had 
> problems with the
> DateSerialzier? I have a SOAP method that has a Date as one 
> of the params.
> When it gets two simultaneous calls the dates seem to be 
> wrong, not the same
> as what was passed to call.invoke(). As far as I can tell 
> good dates are
> going in and bad dates are getting passed into my Soap method 
> by the rpc
> router.
> 
> I peeked at DateSerializer and it uses two SimpleDateFormat 
> objects, which
> it creates in the constructor and stores in member variables. 
> No use of
> these SimpleDateFormat objects use any synchronization. If 
> the rpc router
> just creates a single DateSerializer and reuses it then it 
> seems to me this
> would be a problem. Can anyone verify?
> 
> Thanks
> 
> Rick
> 



RE: Having SOAP server return a Response object

2001-08-01 Thread Hansen, Richard

Unless I misunderstand, why don't you just return an object that contains
your strings as member fields? Give it public getters and setters, like a
Java bean, for each string. The XML will have the names in the element tag
for each string. You will need to register a serilaizer/deserializer for the
class in the type mapping registry. But you can use supplied BeanSerializer.

Rick Hansen

> 
> Steeve, my client gets the OrderEntry across SOAP to the 
> server without
> trouble.  I was just wondering if my client could get the 
> Response object
> for the reply, and be able to parse the vector of parameter 
> objects in the
> Response object to get the parameter name/value pairs using
> Response.getParams() instead of Response.getReturnValue() .  
> I guess this
> isn't possible and perhaps I do need to return a String[] and 
> have my client
> code parse the array, knowing that [1] is sa1, [2] is sa2, etc.  The
> String[] does get passed with positional integrity - ie., the 
> values should
> change positions in the array I hope.
> 
> thanks again-
> Paula Young



RE: Should rpcs be threadsave?

2001-07-27 Thread Hansen, Richard

Yes, your code must be thread safe.

> -Original Message-
> From: Oliver Rettig [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 26, 2001 6:29 PM
> To: soap
> Subject: Should rpcs be threadsave?
> 
> 
> Hi,
> 
> I´ve written a apache-soap-server with some methods I invoke by some
> clients. Cauld it happens that two of my methods are invoked 
> simultan by
> different clients? Should I write my methods thread-save? I´ve read in
> Servlet-specification that requests of a servlet not 
> simultanous invoked
> the servlet.
> 
> best regards
> 
> Oliver
> 



RE: help can't get services deployed

2001-07-26 Thread Hansen, Richard

> The implication appears to be that Xerces is just not being 
> found, unless it means that Xerces 1.4.2 has dropped the 
> framework.Version.fVersion system..so I just downloaded 
> Xerces 1.4.2 (source) and looked, and am not surprised because
> it's still there. My suspicion is that the classpath you 
> tried to set up is not the one you're getting, as happens 
> all too often to people on this list.

Just a thought. I have started putting shared things like xerces.jar,
mail.jar, etc. in the "extensions" directory. On Windows this is
"jre\lib\ext", in two locations the jdk home and "program files\javasoft".
This avoids some of the classpath annoyances and makes sure things like
xerces get loaded and get loaded first. I don't think I could put soap.jar
there because then it could not find the deployed services file. I highly
recommend this approach.

Could there be something in the "extensions" directory. It does not show up
in the classpath, but stuff there will get loaded first.

Rick Hansen



RE: wsdl output message parts

2001-07-26 Thread Hansen, Richard

Apache SOAP does not, at least with normal use, allow multiple output
parameters. I always return objects from my service methods. So my WSDL
response message has a single entry for a complex type of some sort.

Rick Hansen

> -Original Message-
> From: Richard Emberson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 26, 2001 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: wsdl output message parts
> 
> 
> 
> In wsdl:
> 
>  portType/operation/output/@message is the name of a message
> (message/@name). A message may have 0 or more part elements.
> 
> How does one represent  in the soap java code representing the
> client and server code a wsdl definition inwhich an output
> has multiple return values, i.e.:
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Richard Emberson
> 
> 



RE: Sending large string's (175 kb)

2001-07-25 Thread Hansen, Richard

Is the data coming back as a single string or an array of 1400 individual
XML items? I ran into a similar problem sending back an array of many small
strings. There was more XML tag data than actual application data. It seems
to take a long time to build all the XML elements also. I ended up sending
back a comma separated string instead of an array.
 
Rick Hansen

-Original Message-
From: Luis Pinho (EST) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 7:08 AM
To: Soap-User (E-mail)
Subject: Sending large string's (175 kb)


Hi,
 
 
I'm using SOAP to call a method, that returns a String, this String is the
result of a query made to a database, this query returns about 1400 records,
each record contains 6 fields, if i save this string as a .txt file this
will have about 175 Kb of size.
 
 
The big problem, is the time I have to wait for the answer (about 1 minute
). Is there any way of speeding up this process?
 
 
Thank You
 
Luís Pinho
 
 
P.S: To build the string from the record set's returned by the query it
takes about 3 seconds, the time between -> return string_with_results; (in
the method that belongs to a class that is deployed in SOAP and is called)
and the servlet( that makes the call to the SOAP) to get the results it's
about 1 minute.




RE: How do you retrieve complex Java objects from a non-Java client.

2001-07-23 Thread Hansen, Richard

Yes, clients parse the XML and put it into some data structure that is
appropriate for the language. Some client languages support object some
don't. The data comes in a standard data structure in XML. SOAP use XML
Schema so data typing is standardized. With MS you need to either write
deserializers or extract what you want from the raw XML. Check the MS
toolkit docs on this.

Rick Hansen

> -Original Message-
> From: Michael J. Hudson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 2:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you retrieve complex Java objects from a non-Java
> client.
> 
> 
> 
> I understand that everything is transported as an XML document.  
> 
> What I'm asking is this...
> The serializer (in this case the Java Bean Serializer) is
> choosing a format to describe the Java object in XML text.  Is this 
> format standard??  I'm assuming that there really is no standard 
> way of representing a generic language-neutral object over XML text.
> I think Apache SOAP's serializer does a simple 
> "value" type
> of thing.  But that's really just a simple generalization of a 
> layered data structure... not really an object object.  
> 
> In Apache SOAP... it seems that you can tell the SOAPMapRegistry how
> to map Class A to a certain URN.  On the server-side, that URN is then
> mapped to the REAL Java class.  I'm not quite sure how complicated
> that Java object can be... and I guess that's part of my question.
> 
> In terms of MS SOAP and Apache SOAP interoperability... if in terms
> of objects... that just means some kind of layered data structure 
> where the public attributes are spit out into XML elements... then
> fine.  But can we get any more complex than that?  
> 
> And can most SOAP implementations use the same XML text format to
> describe an object (be it a layered data structure or something
> with actual logic in it)... so that a VB SOAP server would understand
> the message being created and sent my an Apache SOAP client??  or
> that matter the Perl SOAP server and a C++ SOAP client???
> 
> "Hansen, Richard" wrote:
> > 
> > There are no Java "objects" involved. SOAP messages are 
> transported XML as
> > text. It is  totally up to the client to extract the 
> message into whatever
> > kind of data structure is appropriate. Check the MS Soap 
> Toolkit on how to
> > handle complex types.
> > 
> > Rick Hansen
> > 
> > > -Original Message-
> > > From: Michael J. Hudson [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 23, 2001 12:58 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How do you retrieve complex Java objects from a non-Java
> > > client.
> > >
> > >
> > >
> > > This question goes either way... that is... whether your 
> SOAP server
> > > is Java and your client is VB/C++/etc.  OR  you SOAP server is
> > > VB/C++/etc.
> > > and your client is Java.
> > >
> > > I understand how to map a Java object in Apache's SOAP using
> > > its default
> > > Bean Seralizer and the SOAP Mapping Registry... but if 
> I'm not using
> > > Java on the other side... how do I DESERIALIZE that object that is
> > > in the XML SOAP file into a VB object or whatever on the
> > > other side??
> > > I've already done it with strings and primitive types... but
> > > do objects
> > > work the same way?
> > >
> > > In the MS-SOAP kit... do they have tools to deserialize a 
> Java object
> > > into a COM or VB object??Are there any C++ kits??
> > >
> > > Thanks,
> > >
> > >
> > > -
> > > Michael J. Hudson
> > > Software/Framework Engineer
> > > [EMAIL PROTECTED]
> > >
> > > cell-phone: 703.362.8039
> > > voice-mail: 703.827.0638 ext. 4786
> > > fax: 703.734.0987
> > >
> > > Blueprint Technologies
> > > "Great software starts with great architecture"
> > > http://www.blueprinttech.com
> > >
> 



RE: How do you retrieve complex Java objects from a non-Java client.

2001-07-23 Thread Hansen, Richard

There are no Java "objects" involved. SOAP messages are transported XML as
text. It is  totally up to the client to extract the message into whatever
kind of data structure is appropriate. Check the MS Soap Toolkit on how to
handle complex types. 

Rick Hansen

> -Original Message-
> From: Michael J. Hudson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: How do you retrieve complex Java objects from a non-Java
> client.
> 
> 
> 
> This question goes either way... that is... whether your SOAP server
> is Java and your client is VB/C++/etc.  OR  you SOAP server is
> VB/C++/etc.
> and your client is Java.
> 
> I understand how to map a Java object in Apache's SOAP using 
> its default
> Bean Seralizer and the SOAP Mapping Registry... but if I'm not using
> Java on the other side... how do I DESERIALIZE that object that is
> in the XML SOAP file into a VB object or whatever on the 
> other side??   
> I've already done it with strings and primitive types... but 
> do objects
> work the same way?
> 
> In the MS-SOAP kit... do they have tools to deserialize a Java object
> into a COM or VB object??Are there any C++ kits??
> 
> Thanks,
> 
> 
> -
> Michael J. Hudson
> Software/Framework Engineer
> [EMAIL PROTECTED]
> 
> cell-phone: 703.362.8039
> voice-mail: 703.827.0638 ext. 4786
> fax: 703.734.0987
> 
> Blueprint Technologies
> "Great software starts with great architecture"
> http://www.blueprinttech.com
> 



RE: Deployment Descriptors

2001-07-19 Thread Hansen, Richard

Apache only uses deployment descriptors to deploy a service on the server. A
client that calls a service does not use them at all.

> -Original Message-
> From: Dylan J Browne [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 19, 2001 9:45 AM
> To: soap
> Subject: Deployment Descriptors
> 
> 
> Hi,
> 
> Is it possible to use Apache SOAP to communicate with other 
> SOAP services
> without DeploymentDecriptors? Ie communicating with UPnP 
> services that have
> been created using a UPnP SDK like that available from Intel. 
> They include
> an example which uses SOAP, (it is written in c and c++), but 
> it doesnt use
> Apache. Is it possible to modify a Java client (using Apache) 
> which can send
> SOAP requests to this service?
> My uncertainty lies in the fact that Apache SOAP seems to 
> rely on Deployment
> Descriptors to find urns, supported methods etc.
> 
> Thanks in advance for any advice.
> 
> Dylan.
> 



RE: String[]

2001-07-11 Thread Hansen, Richard

Here is how I declare String[] in WSDL. It seems to work.

 
   
  

   
   
 

> 
> I haven´t solve the string-array problem but I´ve found a 
> second form of
> wsdl-declaration of the complex type for String[].
> 
> I´ve used:
> 
> 
> 
>   
>  wsdl:arrayType='xsd:string[]'/>
>   
> 
>   
> 
> And the server send type-conversion-erros.
> 
> Now I´ve found:
> 
>  
>   
>   
> 
>name='String' type='xsd:string' />
> 
>   
>  
>   
> 
> What is the meaning of the second one. What is the better way?
> 



RE: Serializers issue

2001-07-06 Thread Hansen, Richard

Yes. But I don't think for the same type or QName.

> -Original Message-
> From: Ragu Sivaraman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 6:07 PM
> To: [EMAIL PROTECTED]
> Subject: Serializers issue
> 
> 
> To SOAP gurus!!
> 
> Is it possible to use multiple serializers in
> a soap application?
> 
> say for ex: collection serilaizer and bean serializer..?
> 
> Any thoughts?
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 



RE: Having problems getting started....

2001-06-29 Thread Hansen, Richard

>From the client or the server? If the client then xerces.jar must not be in
your classpath. From the server then I think it is not in your classpath or
it is not first in the tomcat classpath.

Rick Hansen

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 29, 2001 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: Having problems getting started
> 
> 
> Hi All.
> 
> I am using Tomcat/Apache SOAP.  Having a hard time getting 
> the addressbook sample to work.  I have followed the install 
> instructions explicitly.  When I enter the command "java 
> org.apache.soap.server.ServiceManagerClient 
> http://localhost:8080/soap/servlet/rpcrouter deploy 
> DeploymentDescriptor.xml"
> 
> I get a NoClassDefFoundError:  org/w3c/dom/Node.  I know that 
> class is part of the Xerces.jar but I have that in my system 
> classpath as well as the classpath of Tomcat.  Any ideas?
> 
> Thanks!
> 
> Blaine 
> [EMAIL PROTECTED]
> 



RE: ISP's that host SOAP applications?

2001-06-29 Thread Hansen, Richard

If an ISP hosts servelts isn't that enough for Apache SOAP?

Rick Hansen

 
> Does anyone know of any ISP's that will host SOAP applications?
> 
> I've found lists of ISP's that do servlets/jsp, but none that 
> mention SOAP:
> - http://www.servlets.com/isps/
> - http://www.adrenalinegroup.com/jwsisp.html
> 



RE: generation Client stub using WSDL - error

2001-06-28 Thread Hansen, Richard

Ouch, I don't think XMLParserLiaison exists in Apache 2.2. 

> -Original Message-
> From: Catalin Tomescu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: generation Client stub using WSDL - error
> 
> 
> This is easy. The path to soap.jar is not in CLASSPATH. Just 
> add the path to 
> your soap.jar file in the CLASSPATH.
> 
> Catalin
> 
> >From: [EMAIL PROTECTED]
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: generation Client stub using WSDL - error
> >Date: Thu, 28 Jun 2001 16:03:44 -0400
> >
> >
> >I am working through a worksheet from the Web service 
> revolution and is
> >getting an error using the WSDL to generate the 
> CurrencyExchangeService
> >Client Stub.  The error msg given is:
> >
> >Exception in thread "main" java.lang.NoClassDefFoundError:
> >org/apache/soap/util/xml/XMLParserLiaison at
> >com.ibm.wsdl.Main.main(Main.java:30)
> >
> >has anyone come across this or can offer some advise?
> >
> >cheers
> >
> >TC
> >
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 



RE: SOAP problem - not xerces

2001-06-27 Thread Hansen, Richard

Go to the IBM developer works web site and follow the link to Web Services
section. There is a good series of tutorial articles by Graham Glass on SOAP
using Apache SOAP with Tomcat. You might find them helpful, I know they got
me started.

Rick Hansen

> -Original Message-
> From: HariNam Singh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 11:46 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: SOAP problem - not xerces
> 
> 
> thanks. 
> I use tomcat. There is not a single message on the console.
> I also use TcpTunnel. The same message there, no additional info.
> 
> Any other ideas?
> 
> -Original Message-
> From: Saint-Martin Cecile [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 9:44 AM
> To: [EMAIL PROTECTED]
> Subject: RE: SOAP problem - not xerces
> 
> 
> Do you use Tomcat?
> If yes, is there any message in tomcat console?
> You should use TcpTunnel tool to obtain more details on exception.
> 
> SAINT-MARTIN Cecile
> [EMAIL PROTECTED]
> 
> > -Message d'origine-
> > De : HariNam Singh [mailto:[EMAIL PROTECTED]]
> > Envoyé : mercredi 27 juin 2001 18:39
> > À : '[EMAIL PROTECTED]'
> > Objet : SOAP problem - not xerces
> >
> >
> > Hi,
> >
> > it's day two, and I still can't get my 'hello world' soap 
> service to work.
> > IT IS NOT XERCES. I tried Xerces 1.2.1, 1.3.0, 1.4.1, Jaxp,
> > neither of them
> > made it work. Xerces is at the beginning of the class path. 
> I tried 3
> > different Java VMs (1.4.0 beta, 1.3.0 and 1.3.1).
> >
> > It just give me an undescript error message:
> > 
> >  SOAP-ENV:Server.Exception:
> >  org/apache/soap/rpc/RPCMessage
> >  /soap/servlet/rpcrouter
> > 
> >
> > Any ideas, what else it could be?
> >
> >
> > Thank you,
> > HariNam
> >
> > -Original Message-
> > From: Khan, Fahad [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 27, 2001 8:57 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Attachments
> >
> >
> > Hi,
> >
> > In the mime example Wouter Cloetens seems build the envelope as a
> > string. Is
> > there a simpler way of doing this?
> >
> > Fahad.
> 



RE: Error when selecting List option

2001-06-27 Thread Hansen, Richard

It would seem that your servlet engine classpath does not have soap.jar.

> -Original Message-
> From: Chiranjeevi Paruchur [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 11:32 AM
> To: SOAP Discussion group
> Subject: Error when selecting List option
> 
> 
> Hi! All,
> 
> In admin interface, If i select ' List ' Option i am getting 
> the Following Error.
> 
> javax.servlet.ServletException: org/apache/soap/server/ServiceManager.
> 
> This Error is B'coz of CLASSPATH Settings. Though my 
> CLASSPATH Contains soap.jar, i am getting this Error.
> 
> CLASSPATH=.;"D:\Soap-2_2\lib\soap.jar";"D:\jdk1.3.1\javamail-1
> .2\mail.jar";"D:\jdk1.3.1\jaf-1.0.1\activation.jar";;D:\Progra
> m Files\Exceed.95\hcljrcsv.jar;D:\Program 
> Files\Exceed.95\;"D:\jdk1.3.1\lib";"D:\jdk1.3.1\jaf-1.0.1";D:
> \jdk1.3.1\XML4J-3_1_1\xerces.jar;D:\jdk1.3.1\XML4J-3_1_1\xml4j.jar
> 
> 
> Can some one help me out with this.
> 
> Thanks in advance,
> 
> Chiran
> 



RE: SOAP Performance (against RMI)

2001-06-26 Thread Hansen, Richard

And SOAP will just be get faster over time. RMI probably won't. 

> -Original Message-
> From: SBC [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: SOAP Performance (against RMI)
> 
> 
> I did a simple test & found that RMI is 6 times
> faster. I used apache 2.2 with wls 6.0. I would not
> call it a real benchmark, but it gave me some idea.
> 
> --- Ralf Bierig <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > are there any performance measurement materials
> > about
> > SOAP against RMI in Web? Did somebody made a
> > benchmarktest with SOAP (and maybe RMI)?
> > 
> > I am looking for material to determine, if SOAP is
> > good enough to fullfil the requirements I need for a
> > project.
> > 
> > Greetings
> > Ralf
> > 
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 



RE: Design Help

2001-06-26 Thread Hansen, Richard

SOAP already serializes objects to XML. It is a matter of how the clients
get them out of the message. 

Rick Hansen

> -Original Message-
> From: David Rioux [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 5:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Design Help
> 
> 
> Hi:
> 
> We ended up serializing our java objects to XML (Tradia's 
> InstantXML is
> helping with this now; our production version used our own 
> serialization
> code) so that it could be parsed by a C++ object on the 
> client side.  I
> suspect this is safer than making a platform-specific (java) 
> SOAP service...
> 
> // David Rioux
> // [EMAIL PROTECTED]
> 
> -Original Message-
> From: Khamesra, SandeepX [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 10:44 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: Design Help
> 
> 
> I need to know what could be the best design for the 
> following scenerio...
> 
> 
> I am writing a java service .. It needs to returns a java 
> object ..How will
> client written other than in java will understand ?
> 
> 



RE: How to handle faults?

2001-06-26 Thread Hansen, Richard

I have implemented your first choice. In my reading of the spec it is
perfectly OK, even expected, to extend the fault code mechanism. I think you
want to make sure to follow the spec about using SERVER and CLIENT. You are
right that a fault listener is what you need to get this done.

Rick Hansen

> -Original Message-
> From: Abrahamsson Mattias
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 8:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: How to handle faults?
> 
> 
> Hi all,
> 
> I have a problem where I need some guidance before developing 
> a solution.
> 
> The problem:
> 
> 
> Our application needs to be able to return application errors 
> in a way that makes it possible for a client to 
> programmatically identify the error. The client should be 
> able to take proper action and inform a user on various error 
> events. Errors can include diverse things such as problems 
> with a database and erroneous arguments (e.g. validation 
> errors) and more. We would like to provide a mapping for each 
> unique error condition and return this error in an encoded 
> format possible for a client to interpret and translate to 
> specific exception handling routines for the client platform.
> 
> Possible solutions:
> ---
> 
> 1. Encode the application error using the faultcode. I am a 
> little uncertain if this is allowed according to the 
> specification. An example of encoded error information could 
> be "SOAP-ENV:Server.Application.DatabaseError", 
> "SOAP-ENV:Server.Application.ValidationError" or something 
> similar (am I allowed to "extend" the SOAP-ENV:Server with 
> point notation?!). More specific information needed to 
> describe an error could be embedded in the faultdetails 
> (faultdetails in this case are not used to identify the type 
> of error but to get more detailed information like stack 
> traces for bug reports and similar).
> 
> 2. Use the faultdetails for complete descriptions of errors 
> in the application. Specific information can be embedded in 
> the faultdetails thus describing the error condition. This is 
> similar to the first approach but is not as straightforward 
> for the client, at least I think so.
> 
> 3. Somehow parse the faultstring. I don't like this solution 
> since the faultstring according to the specification should 
> be in a "human readable" format thus not being a good 
> candidate for program logic.
> 
> 4. Any other alternative which I have not thought of.
> 
> I would prefer a solution based on the first alternative in 
> one form or another. Is this a good way to do it and is it 
> allowed according to the specifications? If I interpret 
> everything correctly I would have to build a fault listener 
> to fill in faultdetails for an application error and a custom 
> provider to intercept and change the fault code of a thrown 
> SOAPException as it will otherwise default to "SOAP-ENV:Server".
> 
> Thanks for you time and any input you might want to contribute.
> 
> /Mattias
> 



RE: TcpTunnelGui

2001-06-25 Thread Hansen, Richard

Did you send the message to the TCPTunnel? You need to call SOAP on port
7007.

> -Original Message-
> From: Eva Flora [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 6:45 PM
> To: [EMAIL PROTECTED]
> Subject: TcpTunnelGui
> 
> 
> My weblogic server is running on port 7005 and I invoke
> TcpTunnelGui via the command:
>   java org.apache.soap.util.net.TcpTunnelGui 7007 localhost 7005
> I then try the message/SendMessage.java and POProcessor.java
> example and I dont see the xml file (msg1.xml) pass through the
> TcpTunnelGui window.  Any clues?  SendMessage receives
> the response from POProcess fine.  I also tried TcpTunnel to no
> avail.  By the way, the javadoc for TcpTunnelGui says
> there is a "Start" button and I dont see such button.  All
> I see is the "Clear" button.  Any ideas?  I am have the SOAP-2_1
> distribution.
> 
> Thanks,
> Eva
> 
> 
> 



RE: Beginner question : Client throwing AbstractMethodError

2001-06-22 Thread Hansen, Richard

>From the Java API docs :

public class AbstractMethodError

extends IncompatibleClassChangeError

Thrown when an application tries to call an abstract method. Normally, this
error is caught by the compiler; this error can only occur at run time if
the definition of some class has incompatibly changed since the currently
executing method was last compiled. 


> -Original Message-
> From: Rosh R Nair [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 2:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Beginner question : Client throwing AbstractMethodError
> 
> 
> Hi,
>   The TCP Tunnel/Monitor is working properly now. Plese help 
> me in debugging
> this output.
> 
> The XML generated by the client is as follows:
> -
> POST /mysoap/servlet/rpcrouter HTTP/1.0
> Host: localhost
> Content-Type: text/xml; charset=utf-8
> Content-Length: 443
> SOAPAction: ""
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> Rosh
> 
> 
> 
> 
> The server's response is:
> -
> HTTP/1.0 500 Internal Server Error
> Content-Type: text/xml; charset=utf-8
> Content-Length: 476
> Set-Cookie2: JSESSIONID=dsqde992o1;Version=1;Discard;Path="/mysoap"
> Set-Cookie: JSESSIONID=dsqde992o1;Path=/mysoap
> Servlet-Engine: Tomcat Web Server/3.2.2 (JSP 1.1; Servlet 
> 2.2; Java 1.3.0;
> Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
> 
> SOAP-ENV:Server.Exception:
> java.lang.AbstractMethodError
> /mysoap/servlet/rpcrouter
> 
> 
> 
> 
> Is their anything missing in the client request?
> 
> Thanks
> Rosh Nair
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Javier A. Soltero
> Sent: Friday, June 22, 2001 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Beginner question : Client throwing AbstractMethodError
> 
> 
> Rosh,
> 
> It looks like you're not setting up the tunneling correctly. 
> You should
> start
> the tunnel on a unused port, say 9090 and map it (as you are 
> doing) to the
> tomcat port 8080. You must now make sure that your soap 
> application client
> is
> trying to connect to 9090. Once this is set up, you will be 
> able to run the
> tunnel correctly.
> 
> Hope this helps,
> 
> javier
> 
> Rosh R Nair wrote:
> 
> > Hi,
> >  I tried to use the TcpTunnelGui tool. My Soap Service is 
> running within
> > Apache on port 8080. But I am not getting any dump inside the tool.
> >
> > I ran the GUI Tool as follows:
> > java org.apache.soap.util.net.TcpTunnelGui 80 24.176.212.99 8080
> >
> > I am still confused, whether it has any relation to the 
> deployment of my
> > soap service. I have the service class files in my server 
> classpath. When
> we
> > install a service using the admin tool where are these informations
> written
> > to? Or do we need to explicitly copy the server class files to the
> > /webapps/web-inf/classes directory of Apache or any 
> webserver context that
> > we have created.
> >
> > Please clarify my doubts.
> >
> > Thanks
> > Rosh Nair
> >
> > -Original Message-
> > From: Matthew J. Duftler [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 22, 2001 11:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Beginner question : Client throwing AbstractMethodError
> >
> > Hi Rosh,
> >
> > Try running the TcpTunnelGui tool, as described in the 
> documentation, to
> see
> > what the details of the Fault are.
> >
> > Thanks,
> > -Matt
> >
> > > -Original Message-
> > > From: Rosh R Nair [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, June 22, 2001 1:34 PM
> > > To: [EMAIL PROTECTED]
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Beginner question : Client throwing AbstractMethodError
> > >
> > >
> > > Hi all,
> > >   I was trying out the Java World tutorial on soap. I am 
> trying out with
> > > Tomcat 3.2 and Soap 2.2. But when I try to run a sample 
> program which
> just
> > > returns a string I am getting an error:
> > > Fault Code   = SOAP-ENV:Server.Exception:
> > > Fault String = java.lang.AbstractMethodError
> > >
> > > The client is not able to knock the server. Can anyone help me
> > > out to solve
> > > this problem.
> > >
> > > Thanks in advance
> > > Rosh Nair
> > >
> > > Rosh R Nair,
> > > 1901, Halford Avenue, Apt#183,
> > > Santa Clara, California, USA - 95051.
> > >
> > > Ph (H) : 408-985-5512
> > > [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]
> > >
> 



RE: Soap Error

2001-06-21 Thread Hansen, Richard

No, I can see it fine.

> -Original Message-
> From: Jonathan Chawke [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Soap Error
> 
> 
> Hi Janesh,
> 
> I've just looked and the page 
> [http://xml.apache.org/soap/faq/faq_chawke.html] seems to be 
> there so I can 
> only assume you have a network problem at your end. Is anyone 
> else having 
> problems seeing it?
> 
> Here's the information anyway:
> 
> 1.1  Help! I'm getting this error: "Element must contain 
> a:'faultcode' 
> element"
> This is probably due to a bug in some newer releases of 
> Xerces (e.g. 1.3.1). 
> Try using Xerces 1.2.3 or 1.3.0 instead (on both the client 
> AND the server) 
> - have a look on http://xml.apache.org/dist/xerces-j/. You 
> should also make 
> sure that xerces.jar is the FIRST entry in your classpath.
> 
> 1.2  Help! I'm getting this error: "Unable to resolve 
> namespace URI for 
> 'xsd'".
> Ensure that:
> (a) You are using Xerces 1.2.3 or 1.3.0 (but NOT 1.3.1) - on 
> both the client 
> and the server (if both are using Apache-SOAP).
> (b) xerces.jar is the FIRST entry in your CLASSPATH, as 
> described in the 
> Apache-SOAP installation instructions.
> (c) There is ONLY ONE version of xerces.jar in your CLASSPATH.
> (d) There are no other XML parsers in your classpath. Some 
> people have 
> experienced this problem due to an early version of the JAXP 
> package hiding 
> in JAVA_HOME/jre/lib/ext.
> 
> 
> Hope this helps,
> Jonathan.
> 
> >From: "Janesh Vasudeva" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> >Subject: Re: Soap Error
> >Date: Thu, 21 Jun 2001 18:18:17 +0530
> >
> >Hi
> >
> >i tried to open that page but nothing is visible , pls , if 
> u don't mind
> >write me solution for problem
> >
> >Thanks in advance
> >Janesh
> >- Original Message -
> >From: Jonathan Chawke <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, June 21, 2001 6:09 PM
> >Subject: Re: Soap Error
> >
> >
> > > See http://xml.apache.org/soap/faq/faq_chawke.html#Q1_1
> > > Jonathan.
> > >
> > > >From: "Janesh Vasudeva" <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > > >Subject: Soap Error
> > > >Date: Thu, 21 Jun 2001 17:21:49 +0530
> > > >
> > > >When running Calculator eg. , this error comes
> > > >
> > > >invoke service
> > > >   URL= http://localhost:7001/soap/servlet/rpcrouter
> > > >   URN =soap1
> > > >SOAPException= SOAP-ENV:Client, A
> > > >'http://schemas.xmlsoap.org/soap/envelope/:Fau
> > > >lt' element must contain a: 'faultcode' element.
> > > >
> > > >  what to do?
> > >
> > > 
> >_
> 
> > > Get Your Private, Free E-mail from MSN Hotmail at 
> >http://www.hotmail.com.
> > >
> >
> 
> __
> ___
> Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.



RE: Java Client Deserializer

2001-06-20 Thread Hansen, Richard

Do you really want he ouput as XML? I haven't done anything with literal
XML, but can you desrialize that to a String or should it be some kind of
XML dom element? The message looks to me like you should just be able to
register it as a soap encoding to a java string using the
StringDeserializer.
 
Rick Hansen

-Original Message-
From: Stéphane Trottier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 1:53 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: Java Client Deserializer


Hi,
I'm trying to use a java client to talk to a Microsoft.NET Web Service.
It seams like the client is getting the proper data back from the web
service but it fails to Deserialize the returned xml. How do I create a
Deserializer for this xml?
 
sample return
---

http://schemas.xmlsoap.org/soap/envelope/
 " xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
 " xmlns:xsd="
http://www.w3.org/2001/XMLSchema  ">
  
http://tempuri.org/  ">
  Hello World

  

---
 
I've tried adding a deserializer like the following code and it still didn't
work
---
SOAPMappingRegistry smr = call.getSOAPMappingRegistry();
StringDeserializer sd = new StringDeserializer();
smr.mapTypes (Constants.NS_URI_LITERAL_XML, new QName ("",
"HelloWorldResult"), null, null, sd);
---
 
Thanks in advance for your help,
Mr. Stéphane Trottier

Senior Software Development Engineer

Onyx Software



 

www.onyx.com  

 



B   u   s   i   n   e   s   s  .   C   u   s   t   o   m   e   r   s  .
V   a   l   u   e  .   N   o   w .


 




RE: Classpath Wrong?

2001-06-20 Thread Hansen, Richard

> I wish that classpaths didn't have to come up in a soap-user 
> list at all,
> but this seems to be the most common source of introductory 
> problems and
> there is sometimes something more subtle & nasty going on somewhere. \

At http://www.javageeks.com/Papers/ there are severa good articles on
classloader and such.

Rick Hansen



RE: What jar files do I need to provide for Apache SOAP clients ?

2001-06-20 Thread Hansen, Richard

I seem to recall that some client side peices in 2.1 (not 2.2) needed
servlet.jar. I think it was the deployment code, but I don't remember for
sure.

Rick Hansen

> -Original Message-
> From: Rahul Kirthivasan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 20, 2001 8:09 AM
> To: [EMAIL PROTECTED]
> Subject: What jar files do I need to provide for Apache SOAP clients ?
> 
> 
> Hi all,
> 
> I am using Apache SOAP in my java client to
> send requests to the Tomcat SOAP Servlet.
> All this while, both Tomcat, Apache SOAP 2.1
> and my client were on the same machine, so
> I had no issues. Now, I have to hand over the
> client side installation alone over to the client
> machines. What are the jar files that I need
> to provide along with my client .
> This is what I figured :
> 
> Xerces.jar
> soap.jar
> mail.jar
> activation.jar
> 
> Are these the only Apache SOAP dependencies ?
> 
> Thanks,
> Rahul
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 



RE: How do I set encoding style using VB Script

2001-06-19 Thread Hansen, Richard

If you have not already, you should look at the interop docs in Apache Soap
2.2. I don't know if adding a type mapping to mapping registry on the Soap
server will help, but that is the normal solution to "no serializer found"
errors. You will probably have better luck asking VB specific questions in
the MS Soap news groups.

Rick Hansen

> -Original Message-
> From: Khamesra, SandeepX [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 1:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: How do I set encoding style using VB Script 
> 
> 
> 
> When I try to invoke a java service from a vb client I get 
> this error "No
> Serializer found ..."
> How do I set encoding style using VB Script 
> 
> --
> --
> --
> 
> 
> Received:  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";> OAP-ENV:Fault>
> SOAP-ENV:Serverjava.lang.I
> llegalArgument
> Exception: No Serializer found to serialize a 
> 'org.w3c.dom.Element' using
> encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'. ltactor>/soap/
> servlet/rpcrouter[SOAPException:
> faultCode=SOAP-ENV:Server; msg=java.lang.IllegalArgumentException: No
> Serializer found to serialize a 'org.w3c.dom.Element' using 
> encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.] at
> java.lang.Throwable.(Throwable.java:96)   at
> java.lang.Exception.(Exception.java:44)   at
> org.apache.soap.SOAPException.(SOAPException.j
> ava:71)   at
> org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvid
> er.java:138)
> at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterS
> ervlet.java:28
> 7)at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)  at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)   at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.j
> ava:372)  at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:79
> 7)at
> org.apache.tomcat.core.ContextManager.service(ContextManager.j
> ava:743)  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:210)at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> at
> java.lang.Thread.run(Thread.java:498) OAP-ENV:Fault>
> 
> 
> --
> --
> --
> 



RE: SOAP Method without returnValue - possible?

2001-06-15 Thread Hansen, Richard

Yes, but I beleive that call.invoke always expects a response from the
server. In your case the response just does not have anything in it. At
least with the RPC transport I don't think you can just send off a message
and continue on immediately not bothering to wait for a response from the
HTTP server.

Rick Hansen

> -Original Message-
> From: Ralf Bierig [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 15, 2001 9:11 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: SOAP Method without returnValue - possible?
> 
> 
> Hi,
> 
> is it possible to use a SOAP Service Method (over
> HTTP), which does not offer a result, for example:
> 
> void myService(int value1, double value2);
> 
> 
> 
> I ask, because HTTP always return a HTTPResponse...
> 
> So can I implement such a SOAP method and can Apache
> SOAP handle this?
> 
> Greetings
> Ralf Bierig
> 
> 
> __
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Apache SOAP webservice & .NET client

2001-06-14 Thread Hansen, Richard

Problems with the .NET parts would probably be best posted to some MS
newsgroup.

> -Original Message-
> From: Joseph George [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 11:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Apache SOAP webservice & .NET client
> 
> 
> ok...so i've solved the xsi:type problem...i added an 
> isd:mapping like it
> says at 
> http://marc.theaimsgroup.com/?l=soap-dev&m=97901982213396&w=2 and i
> get the correct response from apache - no fault!
> But my .NET client gives me the following error even though 
> no fault has
> occured: What the hell is going on now???
> 
> -
>  Application Error
> --
> --
> 
> 
> The request failed with HTTP status code 200 and the error 
> message: --  version='1.0' encoding='UTF-8'?>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodi
> ng/">  xsi:type="xsd:string">Hello Slayer! 
> 
>   --.
> Description: An unhandled exception occurred at runtime 
> during the execution
> of the current web request. Please review the stack trace 
> below to get a
> better understanding of what the error is and where it 
> originated from in
> the code.
> 
> Exception Details: System.Exception: The request failed with 
> HTTP status
> code 200 and the error message: --  encoding='UTF-8'?>
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodi
> ng/">  xsi:type="xsd:string">Hello Slayer! 
> 
>   --.
> 
> Source Error:
> 
> Line 69:
> Line 70: string dFahrenheit = TextBox1.Text;
> Line 71: string dCelsius = cService.MultiplyBy2(dFahrenheit);
> Line 72: Label1.Text = dCelsius;
> Line 73: }
> 
> 
> Source File: c:\documents and
> settings\su6645\vswebcache\saburon\vsnet\exampletryclient\webform1.cs
> Line: 71
> 
> Stack Trace:
> 
> [Exception: The request failed with HTTP status code 200 and the error
> message:
> --
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> Hello Slayer!
> 
> 
> 
> 
> 
> --.]
> 
> System.Web.Services.Protocols.SoapClientProtocol.ReadResponse(
> SoapClientMess
> age message, HttpClientResponse response) +299
>System.Web.Services.Protocols.SoapClientProtocol.Invoke(String
> methodName, Object[] parameters) +119
>exampleTryClients.ExampleTry.MultiplyBy2(String i) +49
>exampleTryClient.WebForm1.Button1_Click(Object sender, 
> EventArgs e) in
> c:\documents and
> settings\su6645\vswebcache\saburon\vsnet\exampletryclient\webf
> orm1.cs:71
>System.Web.UI.WebControls.Button.OnClick(EventArgs e) +110
>System.Web.UI.WebControls.Button.RaisePostBackEvent(String 
> eventArgument)
> +38
>System.Web.UI.Page.RaisePostBackEvent(NameValueCollection 
> postData) +186
>System.Web.UI.Page.ProcessRequestMain() +752
> 
> 
> 
> -
> - Original Message -
> From: "Hansen, Richard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 14, 2001 5:34 PM
> Subject: RE: Apache SOAP webservice & .NET client
> 
> 
> > I would guess that the xsi:type problems you are having may be no
> different
> > than when getting an MS client to talk to a Apache Java 
> service. Apache
> > requires the type info and MS does not include it. You 
> should look at the
> > interop docs.
> >
> > I would think you could just define QNames for the params 
> on the client
> side
> > and add them to the mapping registry. This is the same 
> thing you would do
> > for an MS client and Java server.
> >
> > Rick Hansen
> >
> > > -Original Message-
> > > From: Joseph George [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 14, 2001 10:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Apache SOAP webservice & .

RE: Apache SOAP webservice & .NET client

2001-06-14 Thread Hansen, Richard

I would guess that the xsi:type problems you are having may be no different
than when getting an MS client to talk to a Apache Java service. Apache
requires the type info and MS does not include it. You should look at the
interop docs. 

I would think you could just define QNames for the params on the client side
and add them to the mapping registry. This is the same thing you would do
for an MS client and Java server.

Rick Hansen

> -Original Message-
> From: Joseph George [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Apache SOAP webservice & .NET client
> 
> 
> ok...almost thereusing the TcpTunnelGui and alot of
> copying-pasting...i've finally determined that the fault is 
> because of this
> line in the soap msg of the .NET client:
> 
> 123
> 
> and instead it should be:
> 
> 123
> 
> So, how do i specify in my SDL doc to include this type info???
> 
> - Original Message -
> From: "Joseph George" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 14, 2001 4:24 PM
> Subject: Re: Apache SOAP webservice & .NET client
> 
> 
> > Ok...here what i've done so far...i've made a class in 
> VS.NET which is
> > exactly the same as my java webservice and got the 
> generated SDL file.
> and,
> > i've changed the href to 
> http://solida:8070.soap/servlet/rpcrouter and the
> > xmlns:s0 :-
> > ---
> > 
> >  > targetNamespace="urn:try:exampleTry"
> > xmlns="urn:schemas-xmlsoap-org:sdl.2000-01-25">
> >   
> > 
> >   
> > http://solida:8070/soap/servlet/rpcrouter"/>
> >   
> >   
> > 
> > 
> >   
> > 
> >   
> >   
> > 
> >> href="http://solida:8070/soap/servlet/rpcrouter";>
> > 
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >> href="http://solida:8070/soap/servlet/rpcrouter";>
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >   
> >> attributeFormDefault="qualified" elementFormDefault="qualified"
> > xmlns="http://www.w3.org/1999/XMLSchema";>
> > 
> >   
> > 
> >xmlns:q1="http://www.w3.org/1999/XMLSchema";
> > type="q1:int"/>
> > 
> >   
> > 
> > 
> >   
> > 
> >xmlns:q2="http://www.w3.org/1999/XMLSchema";
> > type="q2:int"/>
> > 
> >   
> > 
> > http://www.w3.org/1999/XMLSchema";
> > type="q3:int"/>
> >   
> > 
> >
> > ---
> > but i get a fault:...
> >
> > this is the .NET soap message:
> > 
> > Content-Length: 382
> > Connection: Keep-Alive
> > Host: solida
> > 
> >  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> > 
> > 
> > 12
> > 
> > 
> > 
> > 
> >
> > and this is what apache soap returns...
> > -
> > ?xml version='1.0' encoding='UTF-8'?>
> >  > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> > 
> > 
> > SOAP-ENV:Client
> > No Deserializer found to deserialize a 
> 'urn:try:exampleTry:i'
> > using encoding style
> > 'http://schemas.xmlsoap.org/soap/encoding/'.
> > /soap/servlet/rpcrouter
> > 
> > 
> > 
> > -
> >
> > What seems to be the problem? Could someone please tell me 
> what my SDL
> file
> > should be?
> > -joseph.
> >
> >
> > - Original Message -
> > From: "Joseph George" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 14, 2001 11:30 AM
> > Subject: Re: Apache SOAP webservice & .NET client
> >
> >
> > > But, I !have! to use .NET...its the main part of my 
> project work. I've
> > been
> > > searching and searching...but still i have no idea how to get a C#
> > > application to get talking with an Apache soap 
> webservice. It seems to
> be
> > > possible because xmethods.com have done it:
> http://www.xmethods.com/dotnet
> > > ...
> > >
> > > "Many of the XMethods services now have "adapter" 
> interfaces that allow
> > > seamless binding with MS .NET clients.   The services 
> themselves are
> built
> > > on a variety of different implementations (Apache, 
> SOAP::Lite, etc) but
> > the
> > > interfaces hide the interoperability issues that 
> currently exist between
> > > DotNet and other SOAP implementations."
> > >
> > > Any ideas on how xmethods did this?
> > > Or, is there a simpler way to use a Apache SOAP 
> webservice in an .NET
> > > client?
> > >
> > > Thanks.
> > >
>

RE: Problems with Examples

2001-06-12 Thread Hansen, Richard

The likely reasons are in the FAQ! This often indicates some type of
classpath problem. The rpcrouter cannot find the service classes. I think of
it as classdef not found error.

Rick Hansen

> -Original Message-
> From: Erol Akarsu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 12, 2001 10:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with Examples
> 
> 
> Adrian,
> 
> I have got same error.
> I am looking for somebody to help us
> 
> Erol Akarsu
> 
> Adrian Almenar wrote:
> 
> > When i try to access the stockquote example, i get this 
> error i checked faq
> > and troubleshooting but i dindt get any answer.
> > Can someone helpme ?
> >
> > java samples.stockquote.GetQuote
> > http://localhost/apache-soap/servlet/rpcrouter IBM
> > Ouch, the call failed:
> >   Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
> >   Fault String = Unable to resolve target object:
> >
> > Thanks Ina Advance,
> >
> > Adrian Almenar
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: VB/Apache problem-- void Java method always cause VB Client t o fa il.

2001-06-08 Thread Hansen, Richard

Yes I have done it that way.

> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: RE: VB/Apache problem-- void Java method always 
> cause VB Client
> t o fa il.
> 
> 
> What about passing no parameters to a method?  Should I do the same
> thing but include that message into ?
> 
> -----Original Message-
> From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 11:19 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: VB/Apache problem-- void Java method always 
> cause VB Client
> t o fa il.
> 
> 
> 
> 
> Just create a "message" entry with no "part". Then in the port section
> of
> your WSDL define the "output message" as being that message type. Make
> sure
> you have an "output" in the proper "operation" section of the binding
> also.
> 
> Rick
> 
> > -Original Message-
> > From: Ding, Chengmin [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 08, 2001 10:06 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: VB/Apache problem-- void Java method always 
> > cause VB Client
> > t o fa il.
> > 
> > 
> > Richard,
> > Thanks for your anwser. But how to specify the Empty 
> Response type? I
> > couldn't find any sample code about it. 
> > BTW, did you encounter any error like the following when you 
> > run your VB
> > client(high level) against your StringService? The Java 
> > Client and VB Low
> > Level client never cause this error.
> > ==
> > ==
> > ===
> > 2001-06-08 10:58:02 - Ctx(/soap) : IOException in R( /soap +
> > /SendVISService.wsd
> > l + null) - java.net.SocketException: Connection aborted by 
> > peer: socket
> > write e
> > rror
> > ==
> > ==
> > ===
> > 
> > -Chengmin
> > 
> > -Original Message-
> > From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 08, 2001 9:21 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: VB/Apache problem-- void Java method always 
> > cause VB Client
> > t o fa il.
> > 
> > 
> > You should define an empty response type in the WSDL file.
> > 
> > > -Original Message-
> > > From: Ding, Chengmin [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 07, 2001 5:41 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: VB/Apache problem-- void Java method always cause VB 
> > > Client to
> > > fa il.
> > > 
> > > 
> > > Hi, All,
> > > I am using a VB client to invoke an Apache Web service.
> > > The service I am using doesn't return any thing, so inside 
> > > the service it is
> > > a void function.
> > > The VB client tried to invoke this service via the following call 
> > >   soapclient.updateVIS(BatchID)
> > > But it always caused the following error in VB:
> > >   automation error
> > >   unspecified error
> > > I checked the return envelop and it looks fine(please see 
> > > below). And on the
> > > server side the service has performed the correct update 
> > > operation. Then I
> > > changed the updateVIS service to return a string and 
> > > everything works fine.
> > > So I want to know whether any of you
> > > have encountered a similar problem? Does MS SOAP always requires a
> > > Request/Response message model? It looks like the Request 
> > > only way doesn't
> > > work. 
> > > Any of your input is highly appreciated.
> > > 
> > > Thanks.
> > > 
> > > -Chengmin
> > > 
> > >  
> > > ==
> > > ==
> > > HTTP/1.0 200 OK
> > > Content-Type: text/xml; charset=utf-8
> > > Content-Length: 424
> > > Set-Cookie: JSESSIONID=bgfuf4h5b1;Path=/soap
> > > 
> > > 
> > >  > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> > > xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> > > 
> > >  > > 
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > > 

RE: VB/Apache problem-- void Java method always cause VB Client t o fa il.

2001-06-08 Thread Hansen, Richard



Just create a "message" entry with no "part". Then in the port section of
your WSDL define the "output message" as being that message type. Make sure
you have an "output" in the proper "operation" section of the binding also.

Rick

> -Original Message-
> From: Ding, Chengmin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 10:06 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: VB/Apache problem-- void Java method always 
> cause VB Client
> t o fa il.
> 
> 
> Richard,
> Thanks for your anwser. But how to specify the Empty Response type? I
> couldn't find any sample code about it. 
> BTW, did you encounter any error like the following when you 
> run your VB
> client(high level) against your StringService? The Java 
> Client and VB Low
> Level client never cause this error.
> ==
> ==
> ===
> 2001-06-08 10:58:02 - Ctx(/soap) : IOException in R( /soap +
> /SendVISService.wsd
> l + null) - java.net.SocketException: Connection aborted by 
> peer: socket
> write e
> rror
> ======
> ==
> ===
> 
> -Chengmin
> 
> -Original Message-
> From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 9:21 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: VB/Apache problem-- void Java method always 
> cause VB Client
> t o fa il.
> 
> 
> You should define an empty response type in the WSDL file.
> 
> > -Original Message-
> > From: Ding, Chengmin [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 07, 2001 5:41 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: VB/Apache problem-- void Java method always cause VB 
> > Client to
> > fa il.
> > 
> > 
> > Hi, All,
> > I am using a VB client to invoke an Apache Web service.
> > The service I am using doesn't return any thing, so inside 
> > the service it is
> > a void function.
> > The VB client tried to invoke this service via the following call 
> > soapclient.updateVIS(BatchID)
> > But it always caused the following error in VB:
> > automation error
> > unspecified error
> > I checked the return envelop and it looks fine(please see 
> > below). And on the
> > server side the service has performed the correct update 
> > operation. Then I
> > changed the updateVIS service to return a string and 
> > everything works fine.
> > So I want to know whether any of you
> > have encountered a similar problem? Does MS SOAP always requires a
> > Request/Response message model? It looks like the Request 
> > only way doesn't
> > work. 
> > Any of your input is highly appreciated.
> > 
> > Thanks.
> > 
> > -Chengmin
> > 
> >  
> > ==
> > ==
> > HTTP/1.0 200 OK
> > Content-Type: text/xml; charset=utf-8
> > Content-Length: 424
> > Set-Cookie: JSESSIONID=bgfuf4h5b1;Path=/soap
> > 
> > 
> >  > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> > 
> >  > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > 
> > 
> > 
> > ==
> > ==
> > =
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: VB/Apache problem-- void Java method always cause VB Client to fa il.

2001-06-08 Thread Hansen, Richard

You should define an empty response type in the WSDL file.

> -Original Message-
> From: Ding, Chengmin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 07, 2001 5:41 PM
> To: '[EMAIL PROTECTED]'
> Subject: VB/Apache problem-- void Java method always cause VB 
> Client to
> fa il.
> 
> 
> Hi, All,
> I am using a VB client to invoke an Apache Web service.
> The service I am using doesn't return any thing, so inside 
> the service it is
> a void function.
> The VB client tried to invoke this service via the following call 
>   soapclient.updateVIS(BatchID)
> But it always caused the following error in VB:
>   automation error
>   unspecified error
> I checked the return envelop and it looks fine(please see 
> below). And on the
> server side the service has performed the correct update 
> operation. Then I
> changed the updateVIS service to return a string and 
> everything works fine.
> So I want to know whether any of you
> have encountered a similar problem? Does MS SOAP always requires a
> Request/Response message model? It looks like the Request 
> only way doesn't
> work. 
> Any of your input is highly appreciated.
> 
> Thanks.
> 
> -Chengmin
> 
>  
> ==
> ==
> HTTP/1.0 200 OK
> Content-Type: text/xml; charset=utf-8
> Content-Length: 424
> Set-Cookie: JSESSIONID=bgfuf4h5b1;Path=/soap
> 
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> 
> 
> 
> ==
> ==
> =
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: MS SOAP Client / Apache SOAP server

2001-06-07 Thread Hansen, Richard

t seems like you need to do some noraml debugging kinds of tasks. Maybe you
should try running it under the TCPTunnel to see better what is happening.
It really sounds like a VB code problem. Is your code finishing the init? Is
it making the getS call? You can check the MS soa help for gettting the
fault from a response.

> 
> I see rpcouter:init showing up on the Tomcat's console, so 
> the RPC call
> is reaching the RPCRouter servlet, but I think it dies there, 
> because my
> server class never gets instantiated (I have a print in 
> constructor, so
> I know for sure).
> 
> How do I check fo faults in VB?
> 
> Here is my code for VB SOAP Client:
> 
> set soapclient = CreateObject("MSSOAP.SoapClient")
> Call soapclient.mssoapinit("http://manserv2/SOAPTester.wsdl";,
> "SOAPTester", "SOAPTestePort")
> Call soapclient.getS()
> 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: MS SOAP Client / Apache SOAP server

2001-06-07 Thread Hansen, Richard

Sounds like the MS side is having a problem. Is a SOAP message actually
getting sent? Are you checking for SOAP faults on the client? If the message
is sent and reaches the correct end point, then you will either get a
response (which MS may still not be able to parse) or a SOAP fault from the
rpcrouter servlet.
 
Rick Hansen
 
 -Original Message-
From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:38 PM
To: [EMAIL PROTECTED]
Subject: MS SOAP Client / Apache SOAP server



 Do I need to do something special when calling methods like:
 int getIntegerValue() in Apache SOAP server
 from MS SOAP client?
 What about getStringValue()?

 MS SOAP client reads WSDL correctly, but when it invokes the method,
 RPCRouter doesn't instantiate the SOAP server object.


 MS SOAP then displays "Application-defined or object-defined error"

 What am I missing?


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: How to set output parameters in my server code

2001-06-07 Thread Hansen, Richard

Apache SOAP does not support out params.


Hi, 
I am trying to invoke a java method of a java service on server (via
.../servlet/rpcrouter to deploy this service, actually just a java class
containing that method). My problem is, this method will not only return a
value, it will also have some output parameters. I guess on client side I
can use getParams() method of Response class to get these parameters, but
how do I set these output parameters in the method on server side (to send
them to client)? I could not find any example usage from the samples coming
together with Apache soap server.

thanks 
Yong Chen 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: NoSuchMethod Exception

2001-06-06 Thread Hansen, Richard

>From the FAQ in the docs for soap 2.2:

1.5 Help! The Samples won't work. Every time I run a sample client I get
this response: "Fault String = java.lang.NoSuchMethodError"
Ensure that:
(a) You have deployed the sample service you want to use. 
(b) Xerces.jar is the very first entry in your classpath (set this in
tomcat.bat or tomcat.sh as per the SOAP installation instructions).
(c) There are no other XML parsers in your classpath. Some people have
experienced this problem due to an early version of the JAXP package hiding
in JAVA_HOME/jre/lib/ext.
(d) The sample classes are in the server's CLASSPATH.

-Original Message-
I just installed Apache Soap version 2.1 on Tomcat 3.2 on a Windows 2000
machine. I have Xerces version 1.23. When I try to run a client connecting
to a deployed service, I get the following exception 
 
Generated Fault:
Fault Code = SOAP-ENV:Server.Exception:
Fault String = java.lang.NoSuchMethodError
 
 
Can anyone please help?
 
Collin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: WSDL

2001-06-06 Thread Hansen, Richard

Here is what worked for me:


  http://www.w3.org/1999/XMLSchema";
targetNamespace="http://www.registrationservice/xsd";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
  
 
   
   
   
   
   
 
  


> 
> I am defining string array in WSDL using the following:
> 
>xmlns="http://www.w3.org/2000/10/XMLSchema";>
>   
>   
>base="SOAP-ENC:Array">
>ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />
>   
>   
>   
>   
> 
> 
> WSDL Reader complains that it doesn't recognize wsdl:, how do 
> I declare
> wsdl namespace in my WSDL?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: WSDL

2001-06-05 Thread Hansen, Richard

Not really. Over at http://www.pocketsoap.com/wsdl/ there is a validator,
but the last time I used it it did not . The best thing I came up
with was to create a VB app that tries to create a high level client from
WSDl. Then I try to figure out the WSDL problem from any errors that occur.

Rick Hansen

> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 3:40 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> Ae there any tools fo validating WSDL?
> 
> -Original Message-
> From: Peter Tandara-Kuhns [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 4:28 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> It is used to specify the value of the SOAPAction HTTP header.
> It allows services to be filtered at the servlet level, 
> before the SOAP envelope is parsed.
> See section 6.1.1 of the SOAP spec for details.
> I think the value is currently ignored by the Apache server code
> (true?).
> 
> 
> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> What is the purpose of  ?
> 
> What should be specified in the quotes?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: WSDL

2001-06-05 Thread Hansen, Richard

Here are a couple examples of arrays. Don't know if you can directly specify
vectors or hashtables as I don't believe they are SOAP defined types. 

 
   
   
   
   
   
 

 
   
   
   
   
   
 

> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> How do I specify arrays, vectors and hashtables in WSDL ?
> 
> -Original Message-
> From: Nirmal Mukhi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 1:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> 
> Hi,
> 
> Yes, that is the URI for a SOAP server with a SOAP service 
> that supports
> the port type that this port refers to. The location of the 
> SOAP server
> is
> thus hardcoded in the port definition. But you could separate the
> service
> definition (which includes such port definitions) and keep it 
> in a WSDL
> separate from the one that provides the rest of the information, then
> import the latter into the former. (I think tool support for import is
> quite weak though).
> 
> Nirmal.
> 
> 
>  
> 
> "Daniel
> 
> Kruler"  To:
> <[EMAIL PROTECTED]>
>  
> bear.com>Subject: RE: WSDL
> 
>  
> 
> 06/05/2001
> 
> 12:52 PM
> 
> Please respond
> 
> to soap-user
> 
>  
> 
>  
> 
> 
> 
> 
> What location should be specified in   location="http://localhost:4040/soap/servlet/rpcrouter"/> in the
> ?
> 
> Is the URL of the SOAP server hardcoded in WSDL?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: WSDL

2001-06-05 Thread Hansen, Richard

That's the way I understand it. But that is better than changing each client
I guess.

> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 12:05 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> So everytime I deploy a service on a different webserver, I have to
> change WSDL?
> 
> -----Original Message-
> From: Hansen, Richard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 1:02 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: WSDL
> 
> 
> The address location holds the URL that a client reading the WSDL will
> use
> to connect to the service. What you have looks right to me. 
> 
> Rick Hansen
> 
> > -Original Message-
> > From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 05, 2001 11:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: WSDL
> > 
> > 
> > What location should be specified in   > location="http://localhost:4040/soap/servlet/rpcrouter"/> in the
> > ?
> > 
> > Is the URL of the SOAP server hardcoded in WSDL?
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: WSDL

2001-06-05 Thread Hansen, Richard

The address location holds the URL that a client reading the WSDL will use
to connect to the service. What you have looks right to me. 

Rick Hansen

> -Original Message-
> From: Daniel Kruler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 11:52 AM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL
> 
> 
> What location should be specified in   location="http://localhost:4040/soap/servlet/rpcrouter"/> in the
> ?
> 
> Is the URL of the SOAP server hardcoded in WSDL?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]