Dear Dr Jung,
        no i am not using JBoss.net/axis, or, well, i am not
doing a RPC-style webservice, since the nature of my  message exchange
is that a 'structure' needs to be exchanged between the two clients.
so, i have opted to use saaj api, and unfortunately only examples
that i found about jboss.net was a rpc-style webservice.
anyway, after testing and trying, i found out that ksoap interact perfectly
with axis1_1RC2, and the jboss version that i am currently using (3.2.1) seems
to use a different version of axis.
when i copied the 1_1RC2 jars into jboss.net folder everything worked fine.
i would be glad to startup with jboss.net using saaj, but i could not find
any docs (and i wanted to try out to use struts along with webservices..).

can you please point me to some jboss.net samples that uses saaj?

with best regars
        marco mistroni

> -----Original Message-----
> From: ext Jung , Dr. Christoph [mailto:[EMAIL PROTECTED]
> Sent: 25 August, 2003 14:15
> To: '[EMAIL PROTECTED]'
> Subject: AW: [JBoss-user] JBoss.net questions/ SAAJ
> 
> 
> Marco,
> 
> looks like you are not using server-side JBoss.net/Axis at all? 
> 
> The soap message (XML) is normally stored in the message 
> body. It depends on
> the client/service/server configuration, whether SOAPAction 
> headers are used
> to allow parseless routing/preprocessing. So you should 
> rather ask the ksoap
> guys how to enable SOAPAction (if possible anyway).
> 
> 
> CGJ
> 
> 
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Sonntag, 24. August 2003 12:32
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] JBoss.net questions/ SAAJ
> 
> hi all,
>       has anyone ever tried to use SAAJ (ex JAXM) API with JBoss and
> J2ME (ksoap)?
> 
> i am experiencing problems in retrieving the Envelope.
> 
> i have written a J2ME client that sends SOAP messages to a backend
> component implemented using struts (Action class).
> 
> the message sent by the J2ME client is the following:
> 
> <v:Envelope xmlns:i="http://www.w3.org/1999/XMLSchema-instance"; 
>             xmlns:d="http://www.w3.org/1999/XMLSchema"; 
>             xmlns:c="http://schemas.xmlsoap.org/soap/encoding/"; 
>             xmlns:v="http://schemas.xmlsoap.org/soap/envelope/";>
>   <v:Header />
>    <v:Body>
>      <n0:agency id="o0" c:root="1"
> xmlns:n0="http://www.tgmm.com/agenciesdemo";>
>         <name i:type="d:string">testagency</name>
>         <tel i:type="d:string">12234</tel>
>         <email i:type="d:string">[EMAIL PROTECTED]</email>
>         <contacted i:type="d:string">01012003</contacted>
>         <contactperson i:type="d:string">Myself</contactperson>
>     </n0:agency>
>   </v:Body>
> </v:Envelope>
> 
> 
> now, in the backend component i am writing the following code for 
> getting the SOAP messge
> 
> Enumeration enumeration = request.getHeaderNames();
> MimeHeaders mimeHeaders = new MimeHeaders();
> while (enumeration.hasMoreElements())         {
>       String string1 = (String)enumeration.nextElement();
>       String string2 = request.getHeader(string1);
>       mimeHeaders.addHeader(string1, string2);
> }
> System.err.println("Now instantianting message..");
> MessageFactory factory = MessageFactory.newInstance();
> SOAPMessage message = factory.createMessage(mimeHeaders, stream); 
> System.err.println("OK GOT THE MESSAGE..");
> SOAPPart soapPart = message.getSOAPPart();
> System.err.println("OK GOT THE PART..");
> SOAPEnvelope envelope = soapPart.getEnvelope();
> if(envelope== null)
>       System.err.println("Envelope is null!");
> else { 
>       DOMSource source = (DOMSource)soapPart.getContent();
> 
> 
> i keep on getting following printout from screen 
> 13:25:10,927 ERROR [STDERR] Now instantianting message..
> 13:25:10,977 ERROR [STDERR] OK GOT THE MESSAGE..
> 13:25:10,977 ERROR [STDERR] OK GOT THE PART..
> 13:25:11,007 ERROR [STDERR] Exception in reading stream:
> java.lang.NullPointerEx
> ception
> 
> So, it seems that the code is failing when retrieving the Envelope..
> 
> anyone has done same thing and succeeded? if so, can you tell 
> me what's
> wrong with the code?
> 
> with best regards
>       marco
> 
> 
> 
> 
> > -----Original Message-----
> > From: ext Jung , Dr. Christoph [mailto:[EMAIL PROTECTED]
> > Sent: 18 August, 2003 11:10
> > To: '[EMAIL PROTECTED]'
> > Subject: AW: [JBoss-user] JBoss.net questions
> > 
> > 
> > Hi Marco,
> > 
> > of course you are free to use any client library that 
> > supports the SOAP1.2
> > standard in order to contact our server-side AXIS. 
> > 
> > I�m currently trying to get ksoap2 connected, but there are 
> > of course a lot
> > of things to be sorted out manually (namespaces, 
> > deserialization, etc.) 
> > 
> > There is currently a JSR and a sort of reference 
> implementation of IBM
> > available which defines an appropriate JAXR subset to be 
> > useful on wireless
> > devices. (Look on alphaworks for Wireless Web Service Toolkit).
> > 
> > Best,
> > CGJ
> > 
> > 
> > -----Urspr�ngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > Gesendet: Sonntag, 17. August 2003 11:36
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] JBoss.net questions
> > 
> > hi all,
> >     i am trying to get acquainted with jboss.net samples.
> > i followed what has been described at this very useful
> > website
> > http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jbos
> > s/jboss-net-He
> > lloWorld.shtml
> > 
> > and i encountered following behaviour.
> > 
> > 1  - when i run the testClient WITHOUT running the tcpmon, i got the
> > exception java.net.ConnectException: Connection refused: connect
> > 
> > 2 - when instead i run the axis tcpmon, everything works fine.
> > 
> > so, does it mean that if i want to run services on jboss-net 
> > i have to have
> > tcpmon running?
> > 
> > and,a more general question. i am writing a J2ME client that  
> > uses the kxml
> > package in order to
> > connect to j2ee applications running on jboss.
> > i have read the docs that if i want to write a client for 
> my jboss.net
> > webservice, that client should
> > have axis classes in its classpath.
> > 
> > but i believe that axis package for J2ME does not exist (yet, 
> > i hope..).
> > 
> > anyone can suggest me some workaround (other than using my 
> > own xml format,
> > which i am already doing?)?
> > 
> > thanx in advance and regards
> >     marco
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET 
> sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> > _072303_01/01
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > ###########################################
> > 
> > This message has been scanned by F-Secure Anti-Virus for 
> > Microsoft Exchange.
> > For more information, connect to http://www.F-Secure.com/
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET 
> sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> > _072303_01/01
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a 
> single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> ###########################################
> 
> This message has been scanned by F-Secure Anti-Virus for 
> Microsoft Exchange.
> For more information, connect to http://www.F-Secure.com/
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a 
> single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to