RE: wsdl

2002-04-08 Thread Dahnke, Eric


Hello Shameem,

Could you provide some additional information about using xrpcc to generate
wsdl files. I don't see how it is possible.


-Original Message-
From: Gafoor, Shameem [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 7:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: wsdl


Stefan,

You might want to try the xrpcc tool distributed as part of the Java Web
Services Development Pack from Sun.

Thanx
Shameem

 -Original Message-
 From: Lenhart Stefan [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, April 08, 2002 5:04 PM
 To:   [EMAIL PROTECTED]
 Subject:  wsdl
 
 Hi everyone!
 
 Maybe this list is not really the correct place for this question. But as
 probably most of you have faced this problem sometime, I hope someone can
 help me anyway...
 
 Is there a tool to automatically generate a WSDL file from my WebService
 Java source code? What I'd like to have is some kind of program that reads
 the .java file of my WebService's service class and creates the matching
 WSDL file from that. Does anybody know a tool to do this?
 
 Thx in advance!



WSDL for JAXM

2002-04-08 Thread Dahnke, Eric


We have Create, Update, and Delete web services (implemented using JAXM)
that pass XML documents around internally between servers. We want to make
these web services publically available, and I'm trying to craft the WSDL by
hand using the W3C spec. It appears that I can use XSD to create an XML
document definition type or define my XML document as a string within the
WSDL. I'm not finding much info about WSDL and messaging eventhough the WSDL
standard specifically mentions either document-oriented or
procedure-oriented information. I looked at xrpcc.sh from the JWSDP, but
could get nowhere with it.


If you're recommending one of your own products, please provide explicit
details about how your WSDL generators work with servlets that extend
JAXMServlet.


Many Thanks.



JAXM synchro (failing a msg)

2002-03-08 Thread Dahnke, Eric


With the following code (I'm a using JAXM-Simple example), how might I fail
this nicely if the message doesn't go through within say 15 seconds. I mean,
I can figure out how to throw the exception after 15 seconds, but assuming I
do this is the message still queued (and would it be delivered if at the
20th second it was finally able to get through.) I know about using a Remote
Provider to asynchronously send messages, but was wonder what I could do to
solve this immediate problem. TIA



String to=http://209.11.9.208:8080/jaxm-simple/receiver;;

URLEndpoint urlEndpoint = new URLEndpoint(to);

// Send the message to the provider using the connection.
SOAPMessage reply = con.call(msg, urlEndpoint);

if (reply != null) {
retval += MSG SENT REPLY RECEIVED/H4/html;
} else {
retval += MSG SENT REPLY NOT RECEIVED/H4 /html;
}

} catch(Throwable e) {
e.printStackTrace();
retval += MSG NOT SENT OR NOT RECEIVED/H4 /html;
}




RE: RPC Vs Messaging

2002-01-30 Thread Dahnke, Eric


We're using the JAXM package to generate SOAP Messages with code out of the
JAXM package. And I've been told one can (will be able to) use JAXM with
Axis.

Something like the following.

MessageFactory mf = MessageFactory.newInstance();
SOAPMessage msg = mf.createMessage();
SOAPPart sp = msg.getSOAPPart();
SOAPEnvelope envelope = sp.getEnvelope(true);
SOAPHeader hdr = envelope.getHeader();
SOAPBody bdy = envelope.getBody();
...
SOAPMessage reply = con.call(msg, urlEndpoint);

For our needs we haven't needed RPC over soap yet, and have just needed to
pass around SOAP messages w/ attachments. I'm sure the RPC side is equally
distinct, and SOAP seems very flexible. I'm always hearing people talking
about passing entire messages as Strings or doing this or that via messaging
and or rpc.

- HTH

-Original Message-
From: Krishnamurthy, Ramanathan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 5:43 PM
To: '[EMAIL PROTECTED]'
Subject: RPC Vs Messaging


Is this distinction necessary ? Isn't messaging a special case of RPC.

I recently moved from SOAP_2_2 to Axis. And axis doesn't seem to
differentiate the two.

Thanks for any insight.

ram



Ramanathan Krishnamurthy
AP Engines, Inc.
Five Clock Tower Place, Suite 250
Maynard, MA  01754



RE: Weblogic6.1 and SOAP

2001-10-05 Thread Dahnke, Eric


I went through similar setups yesterday, and everything worked great once I
have all the appropriate jars and classes in my classpath. It appears that
if you change your classpath environment variable, you should stop and start
tomcat too.



-Original Message-
From: Amila Norbert [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 6:34 AM
To: [EMAIL PROTECTED]
Subject: Weblogic6.1 and SOAP



Hi,

I have successfully deployed my User stuff in weblogic6.1 as can be seen
from the http://localhost:7001/soap/admin/index.html .However when I to test
running my test program I get the below given error.

Generated fault:
  Fault Code   = SOAP-ENV:Client
  Fault String = Deployment error in SOAP service 'urn:User': class name
'com.accelrys.UserData' could not be
resolved: com.accelrys.UserData

I have attached the deployment descriptor as well.  I was able to run the
same program on tomcat.

Any suggestions please.

Amila.



mailto:[EMAIL PROTECTED]




Parsing the S:Body XML within a SOAP request.

2001-10-05 Thread Dahnke, Eric


Hello when going through ../soap-2_2/samples/messaging/POProcessor

package samples.messaging;
import java.io.*;
import org.apache.soap.*;
import org.apache.soap.rpc.SOAPContext;
import javax.mail.MessagingException;

public class POProcessor {
  public void purchaseOrder (Envelope env, SOAPContext reqCtx,
   SOAPContext resCtx)
throws MessagingException, IOException {
resCtx.setRootPart(OK. Original XML received.,text/xml);
  }

  public void bustedRequest (Envelope env, SOAPContext reqCtx,
   SOAPContext resCtx)
throws Exception {
throw new IllegalArgumentException (Broken SOAP v1.1 Request.);
  }
}


In the org.apache.soap.messaging.Message class what method would I use to
read/receive the XML contained in S:Body. I've got a SAXParseHandler class
that can read in (parse) an XML input stream from a URL or a local file.

You see what I what to do here. Can anyone point me in the right direction?


Regards, Eric