axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacky Rymasz-Maillot" <jrymaszmail...@webraska.com>
Subject RE: Send direct XML rather than using Java classes
Date Mon, 23 Jun 2008 09:28:02 GMT
Re hello.. ;)
Ok just to say i found out my problem.
Following this example http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm, I added
those 2 lines and now it works with jre1.5 and 1.6.

			MimeHeaders hd = msg.getMimeHeaders();
			hd.addHeader("SOAPAction", urlOfMyAction);

Thx to all

Jack

-----Message d'origine-----
De : Jacky Rymasz-Maillot [mailto:jrymaszmaillot@webraska.com] 
Envoyé : lundi 23 juin 2008 10:06
À : Martin; axis-user@ws.apache.org
Objet : RE: Send direct XML rather than using Java classes

Hello,

I'm not using AS8.2.
My Client application is an applet (It can also be  delivered to customer as a standalone
application) sending request to a server application deployed on Tomcat 5.5.12. Both are using
Axis 1.4 to communicate and both have been deployed and compiled with jdk1.5.06.

It would be very too restrictive to tell users to use jre1.5 or to manipulate jars (since
most of them don't even know what is JRE or Java or JDK)

I keep searching info about that on Internet but still haven't found a solution.

Jack




-----Message d'origine-----
De : Martin [mailto:mgainty@hotmail.com] 
Envoyé : dimanche 22 juin 2008 02:21
À : axis-user@ws.apache.org; Jacky Rymasz-Maillot
Objet : Re: Send direct XML rather than using Java classes

I assume you're using AS 8.2 ?
There is an open bug with SAAJ 1.3 in JDK 8 which suggests

1. saaj jar files must be placed in the AS 8.2 EE's classpath via the Admin 
Console. (details to follow)
2. saaj system properties must be set in AS via the Admin Console. (details 
to follow)
3. saaj jar files must be in the java runtime env for SR clients (details to 
follow)

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6463868

Martin
----- Original Message ----- 

From: "Anne Thomas Manes" <atmanes@gmail.com>
To: <axis-user@ws.apache.org>
Sent: Saturday, June 21, 2008 7:29 AM
Subject: Re: Send direct XML rather than using Java classes


I believe that JDK6 includes Sun's implementation of SAAJ, which might
be slightly different from Axis. I recommend you search for Sun's
documentation.

Anne

On Fri, Jun 20, 2008 at 5:36 AM, Jacky Rymasz-Maillot
<jrymaszmaillot@webraska.com> wrote:
> Hello again.
> I created a client sending Axis request XML using SAAJ as explained into 
> the link.
> I developed my client with Eclipse with JDK1.5 and everything works fine.
>
> My problem now is that when my client runs with JRE1.6, I have this 
> response:
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
>  <soapenv:Fault>
>   <faultcode 
> xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
>   <faultstring>no SOAPAction header!</faultstring>
>   <detail>
>    <ns2:hostname 
> xmlns:ns2="http://xml.apache.org/axis/">qa4201.fr.webraska.com</ns2:hostname>
>   </detail>
>  </soapenv:Fault>
>  </soapenv:Body>
> </soapenv:Envelope>
>
> I have to force my client to use JDK1.5 to make it work fine.
> Is there a way so that my client can be run with JDK1.5 or above (jre1.6 
> for ex)?
>
> Thx,
>
> Jack
>
>
>
>
> -----Message d'origine-----
> De : Jacky Rymasz-Maillot
> Envoyé : mardi 17 juin 2008 09:45
> À : axis-user@ws.apache.org
> Objet : RE: Send direct XML rather than using Java classes
>
> Thanks alot.
> It works fine ;)
>
> Jack
>
> -----Message d'origine-----
> De : Anne Thomas Manes [mailto:atmanes@gmail.com]
> Envoyé : lundi 16 juin 2008 19:31
> À : axis-user@ws.apache.org
> Objet : Re: Send direct XML rather than using Java classes
>
> Use the SAAJ API. See
> http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm for
> samples.
>
> Anne
>
> On Mon, Jun 16, 2008 at 11:04 AM, Jacky Rymasz-Maillot
> <jrymaszmaillot@webraska.com> wrote:
>> I am using actually Axis 1.4.
>> Is it still possible? If so, where can I find an example?
>> Thank you for all your answer ;)
>>
>> Jack
>>
>> -----Message d'origine-----
>> De : Paul Fremantle [mailto:pzfreo@gmail.com]
>> Envoyé : lundi 16 juin 2008 16:36
>> À : axis-user@ws.apache.org
>> Objet : Re: Send direct XML rather than using Java classes
>>
>> Jacky
>>
>> Sure. If you use Axis2 it was designed this way. The Java classes
>> model is actually just a separate layer on top of the core XML
>> messaging layer.
>>
>> You just need to look at the ServiceClient API. The XML is represented
>> in Axis2 as an OMElement.
>>
>> Paul
>>
>> 2008/6/16 Jacky Rymasz-Maillot <jrymaszmaillot@webraska.com>:
>>> Hello,
>>>
>>>
>>>
>>> I would like to know if it is possible to send a WSDL request directly
>>> without using Java classes to create the request.
>>>
>>> Let's say I want to create a WSDL request (XML format) into a text 
>>> editor
>>> and send the resulting String to my server without using the generated 
>>> Java
>>> classes from Axis.
>>>
>>>
>>>
>>> What I want looks like that but for SOAP:
>>>
>>> http://users.skynet.be/pascalbotte/rcx-ws-doc/xmlpost.htm
>>>
>>>
>>>
>>> Is it possible?
>>>
>>>
>>>
>>> Thx
>>>
>>>
>>>
>>> Jack
>>>
>>>
>>>
>>>
>>>
>>> No virus found in this outgoing message.
>>> Checked by AVG.
>>> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 
>>> 15/06/2008
>>> 17:52
>>>
>>
>>
>>
>> --
>> Paul Fremantle
>> Co-Founder and CTO, WSO2
>> Apache Synapse PMC Chair
>> OASIS WS-RX TC Co-chair
>>
>> blog: http://pzf.fremantle.org
>> paul@wso2.com
>>
>> "Oxygenating the Web Service Platform", www.wso2.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG.
>> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 
>> 15/06/2008 17:52
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG.
>> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 
>> 15/06/2008 17:52
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 15/06/2008 
> 17:52
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 15/06/2008 
> 17:52
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.4.1/1510 - Release Date: 19/06/2008 
> 15:21
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008 07:52
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008 07:52
 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008 07:52
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008 07:52
 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message