[ Byte arrays inside complex types doesnt translate well to SOAP]

2005-06-07 Thread Yuval Goldstein



Hi All,

Im working with the axis inside jboss.net for jboss 3.2.5 and jdk 1.4 . I
noticed that when i expose an object method that receives a byte array,
the wsdl that is generated uses the xsd:Base64 type, which is great.
However, when i use a byte array inside an array of complex types (my
own), the wsdl teat my byte array as a sequence of bytes.

My method looks like: myMethod(MyComplexType[] objects)
where MyComplexType has a byte[] member.

This has a serious effect on the size of SOAP messages and performance
(especially when working with non-literal services) because each byte  is
wrapped by its out xml element (describing the element name).

I know how to work around this sproblem by using strings instead of byte
arrays and doing the bytes->string->bytes conversions by myself, but i
would like to inquire if there is a more elegant/standard way to represent
my byte array as the xsd:Base64 type.
Perhaps someone tried a similar scenario with Axis 1.2 ?

Thanks!

Best Regards,

Yuval Goldstein.



Best Regards,

Yuval Goldstein, CTO
2Train4 Ltd.
Cell #: 972-54-2050917



RE: how to call a document style web service?

2005-06-07 Thread Ephemeris Lappis



I'm 
not absolutly sure, but i think you can also use the call object to pass a 
complex type parameter, ensuring the type mapping exist for its java class, and 
a serializer/deserializer too. My example is using a standard document style, 
with a single parameter that is a string. I suppose you could use the same way 
to pass a user defined type. But i have never done it...
I 
think using the envelope is a low level task that you may avoid... Why can't you 
use generated stubs ?

  -Original Message-From: Kiran Kumar 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 07, 2005 11:34 
  PMTo: axis-user@ws.apache.orgSubject: RE: how to call a 
  document style web service?
  
  Thank You Ephemeris Lappis for your response.
   
  I am not using 'wrapped' style web 
  service. If it was the case I would pass the input parameters in the way you 
  described in your example.
   
  My service end point method signature is 
  something like 
   
  public Geocode individual(Gcindividualinputs gcindividualinputs) 
  throws java.rmi.RemoteException ;
   
  Here the input is being received as an object (Gcindividualinputs 
  is being generated by WSDL2Java file) so I will have to send the input in 
  'xml' format which maps to Gcindividualinputs value object at run time by 
  Axis.
   
  The issue is, I was able to form SOAPEnvelope with the 'xml' 
  format but I am unable to find an API to invoke the service using the 
  SOAPEnvelope that I created.  please scroll down , you will see my 
  sample client that I was trying to write.
   
   
  
  Thanks
  Kiran
  -
  Ph: 312 742 9630
  Email: [EMAIL PROTECTED]
  
  
  From: Ephemeris Lappis 
  [mailto:[EMAIL PROTECTED]Sent: Tue 6/7/2005 12:37 
  PMTo: axis-user@ws.apache.orgSubject: RE: how to call a 
  document style web service?
  
  Hello.
  I 
  suppose that if you have the wsdl for your web service, you can generate the 
  client stubs, and use them to call it. If you want, you can also build a call 
  by yourself using dynamic invocation, setting appropriate style, 
  etc.
   
  Here 
  are few lines from an old test program that builds a literal call to a service 
  operation named "evaluate" that takes a string as argument and also returns a 
  string. You must adapt the namespaces, names, parameters and endoint URL 
  according to your real service. I'm not sure this code work as is with recent 
  versions, but this is a base idea... You must also take care about the classes 
  you use. In my example, it seems that i were using axis specific classes 
  (Call, Service), but i think it should be better to only use the jaxrpc API to 
  ensure future compliance...
   
  I 
  hope this can help you...
  
  --Ephemeris Lappis 
   
    String endpoint = "http://alhambra:/j2ee14-three-services-ejb/First-Class-WS/FirstClassWS";
   
    QName operationQName = new QName("http://ws.moon.net/three", 
  "evaluate");  QName resultQName = new QName("http://ws.moon.net/three", 
  "evaluateReturn");
   
    Service service = new Service();  Call call = 
  (Call) service.createCall();
   
    call.setProperty(javax.xml.rpc.Call.SOAPACTION_USE_PROPERTY, 
  new 
  Boolean(true));  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, 
  "literal");  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, 
  "document");
   
    call.setTargetEndpointAddress(new 
  java.net.URL(endpoint));  call.setOperationName(operationQName);  call.addParameter("evaluate", 
  operationQName, String.class, 
  ParameterMode.IN);  call.setReturnType(resultQName, 
  String.class);
   
    Object[] input = { "Philippe" };
   
    Object result = call.invoke(input);
  
-Original Message-From: Kiran Kumar 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 07, 2005 6:39 
PMTo: axis-user@ws.apache.orgSubject: RE: how to call 
a document style web service?

Hello all.. I am really 
stuck.. please point me to some example on how to call webservice using soap 
envelope..  I searched through google, but could not find any 
example...
 

Thank You, 
Kiran

From: Kiran Kumar 
[mailto:[EMAIL PROTECTED]Sent: Tue 6/7/2005 8:15 
AMTo: axis-user@ws.apache.orgSubject: how to call a 
document style web service?


Helo 
all,
 
I am using axis 
1.2 (java).. I built a document stylewebservice, which has following 
method..
public Geocode onfromto(OnfromtoInputs inputs);I 
started writing a client to call this web servicemethod.. but I could 
not find any API to call a webservice method with soap envelope.. can 
you please throwsome light on this ... ?Thanks for your time, 
GK. I started writing a client something like 
this..// create envelopeSOAPEnvelope env = new 
SOAPEnvelope();// create bodySOAPBody body = 
env.addBody();// Create bodyName bodyName 
=env.createName("onfromto","m","http://mydomain.dom

RE: how to call a document style web service?

2005-06-07 Thread Kiran Kumar
Thank You Ephemeris Lappis for your response.
 
I am not using 'wrapped' style web service. If it was the case I would pass the 
input parameters in the way you described in your example.
 
My service end point method signature is something like 
 
public Geocode individual(Gcindividualinputs gcindividualinputs) throws 
java.rmi.RemoteException ;
 
Here the input is being received as an object (Gcindividualinputs is being 
generated by WSDL2Java file) so I will have to send the input in 'xml' format 
which maps to Gcindividualinputs value object at run time by Axis.
 
The issue is, I was able to form SOAPEnvelope with the 'xml' format but I am 
unable to find an API to invoke the service using the SOAPEnvelope that I 
created.  please scroll down , you will see my sample client that I was trying 
to write.
 
 
Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]  



From: Ephemeris Lappis [mailto:[EMAIL PROTECTED]
Sent: Tue 6/7/2005 12:37 PM
To: axis-user@ws.apache.org
Subject: RE: how to call a document style web service?


Hello.
I suppose that if you have the wsdl for your web service, you can generate the 
client stubs, and use them to call it. If you want, you can also build a call 
by yourself using dynamic invocation, setting appropriate style, etc.
 
Here are few lines from an old test program that builds a literal call to a 
service operation named "evaluate" that takes a string as argument and also 
returns a string. You must adapt the namespaces, names, parameters and endoint 
URL according to your real service. I'm not sure this code work as is with 
recent versions, but this is a base idea... You must also take care about the 
classes you use. In my example, it seems that i were using axis specific 
classes (Call, Service), but i think it should be better to only use the jaxrpc 
API to ensure future compliance...
 
I hope this can help you...



--
Ephemeris Lappis 

 
  String endpoint = 
"http://alhambra:/j2ee14-three-services-ejb/First-Class-WS/FirstClassWS";;
 
  QName operationQName = new QName("http://ws.moon.net/three";, "evaluate");
  QName resultQName = new QName("http://ws.moon.net/three";, "evaluateReturn");
 
  Service service = new Service();
  Call call = (Call) service.createCall();
 
  call.setProperty(javax.xml.rpc.Call.SOAPACTION_USE_PROPERTY, new 
Boolean(true));
  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, "literal");
  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, "document");
 
  call.setTargetEndpointAddress(new java.net.URL(endpoint));
  call.setOperationName(operationQName);
  call.addParameter("evaluate", operationQName, String.class, ParameterMode.IN);
  call.setReturnType(resultQName, String.class);
 
  Object[] input = { "Philippe" };
 
  Object result = call.invoke(input);


-Original Message-
From: Kiran Kumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 6:39 PM
To: axis-user@ws.apache.org
Subject: RE: how to call a document style web service?


Hello all.. I am really stuck.. please point me to some example on how 
to call webservice using soap envelope..  I searched through google, but could 
not find any example...
 
Thank You, Kiran



From: Kiran Kumar [mailto:[EMAIL PROTECTED]
Sent: Tue 6/7/2005 8:15 AM
To: axis-user@ws.apache.org
Subject: how to call a document style web service?


Helo all,
 
I am using axis 1.2 (java).. I built a document style
webservice, which has following method..


public Geocode onfromto(OnfromtoInputs inputs);

I started writing a client to call this web service
method.. but I could not find any API to call a web
service method with soap envelope.. can you please throw
some light on this ... ?

Thanks for your time, GK.

 I started writing a client something like this..


// create envelope
SOAPEnvelope env = new SOAPEnvelope();

// create body
SOAPBody body = env.addBody();

// Create body
Name bodyName =
env.createName("onfromto","m","http://mydomain.domain/onfromto 
 ");
SOAPBodyElement bodyElement =
body.addBodyElement(bodyName);

Name nameAddress = env.createName("address");
SOAPElement eleAddress =
bodyElement.addChildElement(nameAddress);
eleAddress.addTextNode("2425 springdale"); 

Name nameGeoCodingTarget = env.createName("codingtarget");
SOAPElement eleGeo =
bodyElement.addChildElement(nameGeoCodingTarget);
eleGeo.addTextNode("0"); 

Service

RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Feng Xie \(fxie\)
Try following cmd to dig out the jar file:
Find . -name *.jar |xargs grep "javax.xml.parsers.SAXParserFactory"

Hope it helps,
Feng

-Original Message-
From: Henry Lu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 07, 2005 1:53 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: happyaxis JAXP implementation found at an unknown location

I copied rt.jar file to both tomcat common/lib and axis/WEB-INF/lib, but I 
still got:

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown 
location

Why?

-Henry

>>> [EMAIL PROTECTED] 6/7/2005 1:24:36 PM >>>
thanks!

you're right, there is a SAXParser class in the rt.jar that came with JDK 5.0!


--- "Ruiz González, Jose de Jesus" <[EMAIL PROTECTED]> wrote:

> Axis is finding that package from Java
> 
> 
> José de Jesús Ruiz Gonzalez
> Departamento de Sistemas
> México Asistencia S.A. de C.V.
> Sistema Internacional de Asistencia Mapfre
> 
> * mailto:[EMAIL PROTECTED]
> *(52) 55 + 54801298
> 
> *Fax(52) 55 + 56112011
> 
> 
> 
> 
> -Mensaje original-
> De: Woodchuck [mailto:[EMAIL PROTECTED] Enviado el: Martes, 07 de 
> Junio de 2005 11:08 a.m.
> Para: axis-user@ws.apache.org
> Asunto: happyaxis JAXP implementation found at an unknown location
> 
> hihi all,
> 
> i'm currently using axis 1.2 in tomcat 5.5.9
> 
> everything is fine but i'm curious to know where axis is finding the 
> JAXP implementation ( javax.xml.parsers.SAXParserFactory ).
> 
> i do not have the jaxp-api.jar anywhere at all.
> 
> has anyone else noticed this as well (who are using Tomcat 5.5 also)?
> 
> i even did a file search for the string "javax.xml" but it is not 
> anywhere within tomcat.
> 
> anyone have any ideas or know the answer to this mystery?
> 
> thanks in advance,
> woodchuck
> 
> 
>   
> __
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail
> 




__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 




**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Henry Lu
I copied rt.jar file to both tomcat common/lib and axis/WEB-INF/lib, but I 
still got:

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown 
location

Why?

-Henry

>>> [EMAIL PROTECTED] 6/7/2005 1:24:36 PM >>>
thanks!

you're right, there is a SAXParser class in the rt.jar that came with
JDK 5.0!


--- "Ruiz González, Jose de Jesus" <[EMAIL PROTECTED]> wrote:

> Axis is finding that package from Java 
> 
> 
> José de Jesús Ruiz Gonzalez
> Departamento de Sistemas
> México Asistencia S.A. de C.V.
> Sistema Internacional de Asistencia Mapfre
> 
> * mailto:[EMAIL PROTECTED] 
> *(52) 55 + 54801298
> 
> *Fax(52) 55 + 56112011
> 
>  
> 
> 
> -Mensaje original-
> De: Woodchuck [mailto:[EMAIL PROTECTED] 
> Enviado el: Martes, 07 de Junio de 2005 11:08 a.m.
> Para: axis-user@ws.apache.org 
> Asunto: happyaxis JAXP implementation found at an unknown location
> 
> hihi all,
> 
> i'm currently using axis 1.2 in tomcat 5.5.9
> 
> everything is fine but i'm curious to know where axis is finding the
> JAXP
> implementation ( javax.xml.parsers.SAXParserFactory ).
> 
> i do not have the jaxp-api.jar anywhere at all.
> 
> has anyone else noticed this as well (who are using Tomcat 5.5 also)?
> 
> i even did a file search for the string "javax.xml" but it is not
> anywhere
> within tomcat.
> 
> anyone have any ideas or know the answer to this mystery?
> 
> thanks in advance,
> woodchuck
> 
> 
>   
> __
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail 
> 




__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 




**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: SSL and wsdl2java???

2005-06-07 Thread Nathaniel A. Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy Kriger wrote:
> If you do that, do you still need to set the SSL properties (either as
> parameters to the JVM or using System.setProperty)?

i use this in the listener of my web app...

System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");

nate

> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCpgMlgj8ksIjnb2wRAnQ5AJ9d7VfnOrl4zjCRqXDbGkDXSxliowCeIR3L
72sSMqK8cGARURRS4qCXLKo=
=ZD2C
-END PGP SIGNATURE-


Re: SSL and wsdl2java???

2005-06-07 Thread Andy Kriger
If you do that, do you still need to set the SSL properties (either as
parameters to the JVM or using System.setProperty)?

On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Andy Kriger wrote:
> >
> > If there's an easier way to get the wsdl2java Ant task to work (like
> > some way to pass the SSL info to the jvm so that the java task isn't
> > needed) that'd be cool - otherwise it all works now and I hope this
> > info will help the next person to come along.
> 
> for testing, i just import the server cert into the jdk cacert file.
> then it trusts your server and can make ssl connections.
> 
> nate
> 
> >
> > thx
> >
> >
> >
> > On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> >
> > Andy Kriger wrote:
> >
> >>Thanks - I manage to get it working once I stopped using Ant to run
> >>wsdl2java - is there a way to pass in those Java properties to the Ant
> >>wsdl2java task? Or do I have to use a java task that calls wsdl2java?
> >
> > are you asking for help using the command line wsdl2java?
> >
> > http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL
> >
> > or do you want help on the ant task?
> >
> > http://ws.apache.org/axis/java/ant/axis-wsdl2java.html
> >
> > nate
> >
> >
> >>On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> >
> >
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.0 (MingW32)
> 
> iD8DBQFCpgBpgj8ksIjnb2wRAs4RAJ90NmZjNbSqdCMbnrci/df1eJIy6wCgholf
> Yw7IDcHnTU8JQ01z6sM4NvE=
> =MNm4
> -END PGP SIGNATURE-
>


Re: SSL and wsdl2java???

2005-06-07 Thread Nathaniel A. Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy Kriger wrote:
> 
> If there's an easier way to get the wsdl2java Ant task to work (like
> some way to pass the SSL info to the jvm so that the java task isn't
> needed) that'd be cool - otherwise it all works now and I hope this
> info will help the next person to come along.

for testing, i just import the server cert into the jdk cacert file.
then it trusts your server and can make ssl connections.

nate

> 
> thx
> 
> 
> 
> On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> 
> Andy Kriger wrote:
> 
>>Thanks - I manage to get it working once I stopped using Ant to run
>>wsdl2java - is there a way to pass in those Java properties to the Ant
>>wsdl2java task? Or do I have to use a java task that calls wsdl2java?
> 
> are you asking for help using the command line wsdl2java?
> 
> http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL
> 
> or do you want help on the ant task?
> 
> http://ws.apache.org/axis/java/ant/axis-wsdl2java.html
> 
> nate
> 
> 
>>On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCpgBpgj8ksIjnb2wRAs4RAJ90NmZjNbSqdCMbnrci/df1eJIy6wCgholf
Yw7IDcHnTU8JQ01z6sM4NvE=
=MNm4
-END PGP SIGNATURE-


Re: SSL and wsdl2java???

2005-06-07 Thread Andy Kriger
Originally I was using the ant task to call wsdl2java. After flailing
around trying to get SSL to work with that, I backed up and started
from the command line. I got that working and implemented it in Ant
using the java task. Everything works now.

To summarize...
1) Setup SSL in the app server (see app server docs for info - the
certficate common name must be the host name your SOAP client will use
to access the service)
2) Export the server-side certificate (see jdk keytool docs for info)
3) Import the certificate into a separate keystore that the wsdl2java
will use (see jdk keytool docs for info)
4) Call wsdl2java with (see axis docs for info)
-Djavax.net.ssl.trustStore=
-Djavax.net.ssl.trustStorePassword=
-Djavax.net.ssl.keyStore=
-Djavax.net.ssl.keyStorePassword=
any options for wsdl2java
the URL of the wsdl (https://:/...?wsdl)
5) In Ant, use a forked java task calling wsdl2java with jvmarg (for
the SSL properties) and arg (for wsdl2java options) subelements
6) In the code that calls the wsdl2java generated client
System.setProperty("javax.net.ssl.trustStore", );
System.setProperty("javax.net.ssl.trustStorePassword", );
System.setProperty("javax.net.ssl.keyStore", );
System.setProperty("javax.net.ssl.keyStorePassword", );
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

If you are doing client authentication, I think there's steps missing
between 3 & 4 where you have to create/export a client-side
certificate and import that into the server keystore (but I didn't
need to do that here so I haven't documented it).

If there's an easier way to get the wsdl2java Ant task to work (like
some way to pass the SSL info to the jvm so that the java task isn't
needed) that'd be cool - otherwise it all works now and I hope this
info will help the next person to come along.

thx



On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Andy Kriger wrote:
> > Thanks - I manage to get it working once I stopped using Ant to run
> > wsdl2java - is there a way to pass in those Java properties to the Ant
> > wsdl2java task? Or do I have to use a java task that calls wsdl2java?
> 
> are you asking for help using the command line wsdl2java?
> 
> http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL
> 
> or do you want help on the ant task?
> 
> http://ws.apache.org/axis/java/ant/axis-wsdl2java.html
> 
> nate
> 
> >
> > On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> >
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.0 (MingW32)
> 
> iD8DBQFCpe30gj8ksIjnb2wRAvibAKCjIaoz+p4F32nq7/544bcO4hC9wgCcCNXH
> X410ALx0Lp+bDOB+0Y/X+1Y=
> =Ne2C
> -END PGP SIGNATURE-
>


[ANN]AXIS2-M2 released

2005-06-07 Thread Srinath Perera
The Apache Axis2 Team is pleased to announce the second milestone
release of Apache Axis2.

You can download the releases from:
   http://cvs.apache.org/dist/axis/v2.0-M2/axis2-M2-src.zip
   http://cvs.apache.org/dist/axis/v2.0-M2/axis2-M2-bin.zip

This milestone release has the following features:
   * AXIOM, a SOAP specific streaming XML infoset model for 
 SOAP 1.1 & 1.2 Messages
   * Modules, the mechanism for extending the SOAP processing model
   * Support for WS-Addressing (as a module)
   * Support for one-way messaging
   * Support for request response messaging
   * Hot deployment of Web services and Module deployment based on
archived modules
   * WSDL code generation tool for stubs and skeletons (without
 data binding for M2)
   * HTTP transport support
   * SMTP transport support
   * TCP transport support

Axis2 is taking shape and this M2 release is only a glimpse of what is
to be expected in the future. If you have a vision of how the next
generation of Web services middleware should be, and like to contribute
to Axis2, please join us  at [EMAIL PROTECTED] Any contribution in
the form of coding, testing, submitting improvements to the
documentation, and reporting bugs is always welcome.

More information about Axis2 is available from the Axis2 home:
   http://ws.apache.org/axis2

-- The Axis2 Development Team


Axis 1.2 's support to Soap/1.1 and Soap/1.2

2005-06-07 Thread Feng Xie \(fxie\)




Hi,
I have a question on Axis1.2 's behavior regarding 
interaction between
SOAP/1.1 and SOAP/1.2.
According to SOAP1.2 spec regarding the interaction 
between SOAP1.1 and SOAP1.2, it says :
1. A SOAP/1.1 only node receiving a SOAP/1.2 message 
will according to
SOAP/1.1 generate a version mismatch SOAP fault based 
on a SOAP/1.1 message construct.
2. A SOAP/1.2 node receiving a SOAP/1.1 message 
either :
2.1. May process the message as a SOAP/1.1 message ( 
if supported )
or
2.2. Must generate a version mismatch SOAP fault 
based on a SOAP/1.1 message construct following SOAP/1.1 semantics using a 
SOAP/1.1 binding to the underlying protocol. The SOAP fault SHOULD include an 
Upgrade SOAP header block as defined in SOAP/1.2 spec indicating support for 
SOAP/1.2. This allows a receiving SOAP/1.1 node to correctly interpret the SOAP 
fault generated by SOAP/1.2 node.
Axis 1.2 releas notes say it support Soap1.1 and 
Soap/1.2. So what is the behavior when Axis1.2 soap node receives a Soap/1.1 
message ? Will it process this message as a Soap/1.1 message or reject it 
?
Thanks in advance,
Feng


Re: SSL and wsdl2java???

2005-06-07 Thread Nathaniel A. Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy Kriger wrote:
> Thanks - I manage to get it working once I stopped using Ant to run
> wsdl2java - is there a way to pass in those Java properties to the Ant
> wsdl2java task? Or do I have to use a java task that calls wsdl2java?

are you asking for help using the command line wsdl2java?

http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL

or do you want help on the ant task?

http://ws.apache.org/axis/java/ant/axis-wsdl2java.html

nate

> 
> On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCpe30gj8ksIjnb2wRAvibAKCjIaoz+p4F32nq7/544bcO4hC9wgCcCNXH
X410ALx0Lp+bDOB+0Y/X+1Y=
=Ne2C
-END PGP SIGNATURE-


Re: SSL and wsdl2java???

2005-06-07 Thread Andy Kriger
Thanks - I manage to get it working once I stopped using Ant to run
wsdl2java - is there a way to pass in those Java properties to the Ant
wsdl2java task? Or do I have to use a java task that calls wsdl2java?

On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Andy Kriger wrote:
> > I have web service running under Tomcat with SSL. In a browser I have
> > verified that the wsdl file is only accessible through HTTPS. I use
> > wsdl2java to generate my client-side classes. This worked find without
> > SSL, now I get
> >
> > javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException: PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> > find valid certification path to requested target
> >
> > How do you run wsdl2java so that it can connect to a secure web service?
> > I am giving it the correct url (https with the secure port) but
> > somehow I need to tell wsdl2java where to find the certificate.
> >
> > Are there any clear docs on how to do this? (I've done a lot of
> > searching of mailing lists and forums without much luck at finding
> > something specific to wsdl2java).
> 
> you probably just need to import your ssl certificate into the jdk
> running the client.  the jdk usually uses the kestore at
> /jre/lib/security/cacerts ... then import your ssl cert in
> with the java keytool program that comes with java.
> 
> nate
> 
> 
> >
> > thx
> > andy
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.0 (MingW32)
> 
> iD8DBQFCpdYygj8ksIjnb2wRAjSUAJ4n7EGwxIfpu0qsf3lJwApNmbZNegCaA9v+
> ZJnXnKvCDVY+B7monN7T64A=
> =IIvk
> -END PGP SIGNATURE-
>


WSDL2Java broken in AXIS 1.2 FINAL

2005-06-07 Thread David Keyes
 
Having problems with Axis 1.2 FINAL.  This used to work fine with
1.2RC3...

I am trying to use the WSDL2Java tool to generate Java sources from the
UDDI v3 WSDLs:
http://www.oasis-open.org/committees/uddi-spec/doc/tcspecs.htm#uddiv3.

I get the following error during generation:

java.io.IOException: Type
{http://www.w3.org/2000/09/xmldsig#}SignatureProperty is referenced but
not defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTab
le.java:663)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5
16)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
93)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
at java.lang.Thread.run(Thread.java:534)

I'm using JDK 1.4.2_06.

I've verified that the obvious is not wrong: the type SignatureProperty
is DEFINITELY defined in the xmldsig schema.  I've tried hosting the
xdsig schema remotely and locally, to no avail.

Any ideas?

dk


RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread David Keyes
Having problems with Axis 1.2 FINAL.  This used to work fine with
1.2RC3...

I am trying to use the WSDL2Java tool to generate Java sources from the
UDDI v3 WSDLs:
http://www.oasis-open.org/committees/uddi-spec/doc/tcspecs.htm#uddiv3.

I get the following error during generation:

java.io.IOException: Type 
{http://www.w3.org/2000/09/xmldsig#}SignatureProperty is referenced but 
not defined.
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTab
le.java:663)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5
16)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
93)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
at java.lang.Thread.run(Thread.java:534)

I'm using JDK 1.4.2_06.

I've verified that the obvious is not wrong: the type SignatureProperty
is DEFINITELY defined in the xmldsig schema.  I've tried hosting the
xdsig schema remotely and locally, to no avail.

Any ideas?

dk


RE: how to call a document style web service?

2005-06-07 Thread Ephemeris Lappis



Hello.
I 
suppose that if you have the wsdl for your web service, you can generate the 
client stubs, and use them to call it. If you want, you can also build a call by 
yourself using dynamic invocation, setting appropriate style, 
etc.
 
Here 
are few lines from an old test program that builds a literal call to a service 
operation named "evaluate" that takes a string as argument and also returns a 
string. You must adapt the namespaces, names, parameters and endoint URL 
according to your real service. I'm not sure this code work as is with recent 
versions, but this is a base idea... You must also take care about the classes 
you use. In my example, it seems that i were using axis specific classes (Call, 
Service), but i think it should be better to only use the jaxrpc API to ensure 
future compliance...
 
I hope 
this can help you...

--Ephemeris Lappis 
 
  String endpoint = "http://alhambra:/j2ee14-three-services-ejb/First-Class-WS/FirstClassWS";
 
  QName operationQName = new QName("http://ws.moon.net/three", 
"evaluate");  QName resultQName = new QName("http://ws.moon.net/three", 
"evaluateReturn");
 
  Service service = new Service();  Call call = 
(Call) service.createCall();
 
  call.setProperty(javax.xml.rpc.Call.SOAPACTION_USE_PROPERTY, 
new 
Boolean(true));  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, 
"literal");  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, 
"document");
 
  call.setTargetEndpointAddress(new 
java.net.URL(endpoint));  call.setOperationName(operationQName);  call.addParameter("evaluate", 
operationQName, String.class, 
ParameterMode.IN);  call.setReturnType(resultQName, 
String.class);
 
  Object[] input = { "Philippe" };
 
  Object result = call.invoke(input);

  -Original Message-From: Kiran Kumar 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 07, 2005 6:39 
  PMTo: axis-user@ws.apache.orgSubject: RE: how to call a 
  document style web service?
  
  Hello all.. I am really 
  stuck.. please point me to some example on how to call webservice using soap 
  envelope..  I searched through google, but could not find any 
  example...
   
  
  Thank You, 
  Kiran
  
  From: Kiran Kumar 
  [mailto:[EMAIL PROTECTED]Sent: Tue 6/7/2005 8:15 
  AMTo: axis-user@ws.apache.orgSubject: how to call a 
  document style web service?
  
  
  Helo 
  all,
   
  I am using axis 
  1.2 (java).. I built a document stylewebservice, which has following 
  method..
  public Geocode onfromto(OnfromtoInputs inputs);I 
  started writing a client to call this web servicemethod.. but I could not 
  find any API to call a webservice method with soap envelope.. can you 
  please throwsome light on this ... ?Thanks for your time, 
  GK. I started writing a client something like this..// 
  create envelopeSOAPEnvelope env = new SOAPEnvelope();// create 
  bodySOAPBody body = env.addBody();// Create bodyName bodyName 
  =env.createName("onfromto","m","http://mydomain.domain/onfromto");SOAPBodyElement bodyElement 
  =body.addBodyElement(bodyName);Name nameAddress = 
  env.createName("address");SOAPElement eleAddress 
  =bodyElement.addChildElement(nameAddress);eleAddress.addTextNode("2425 
  springdale"); 
  Name nameGeoCodingTarget = 
  env.createName("codingtarget");SOAPElement eleGeo 
  =bodyElement.addChildElement(nameGeoCodingTarget);eleGeo.addTextNode("0"); 
  Service service = new Service();Call call = (Call) 
  service.createCall();call.setTargetEndpointAddress(strEndpoint);
  How to invoke with soap envelop 
  ?
  =
   
  
  Thanks for your time
  Kiran
   
  
  This e-mail, and any attachments 
  thereto, is confidential and is intended only for the individual(s) 
  named.  If you are not the intended recipient, please let us know by 
  e-mail reply and delete it from your system; do not copy/save this e-mail or 
  disclose its contents to anyone.  E-mail transmissions cannot be 
  guaranteed to be secure or error-free as the transmission could be 
  interrupted, corrupted, lost, destroyed, altered, arrive late or contain 
  viruses.  ObjectWave does not accept liability for any errors or 
  omissions in the contents of this e-mail which arise as a result of e-mail 
  transmission.  The views expressed in this e-mail do not necessarily 
  reflect those of ObjectWave or its affiliates.
  
  
  This e-mail, and any attachments 
  thereto, is confidential and is intended only for the individual(s) 
  named.  If you are not the intended recipient, please let us know by 
  e-mail reply and delete it from your system; do not copy/save this e-mail or 
  disclose its contents to anyone.  E-mail transmissions cannot be 
  guaranteed to be secure or error-free as the transmission could be 
  interrupted, corrupted, lost, destroyed, altered, arrive late or contain 
  viruses.  ObjectWave does not accept l

RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Woodchuck
i believe because the core Java classes will only be loaded from your
JAVA_HOME location

there are very specific rules to how Tomcat classloading works. 
specific packages will only be loaded from specific locations only.

more info here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

hth,
woodchuck


--- Henry Lu <[EMAIL PROTECTED]> wrote:

> I copied rt.jar file to both tomcat common/lib and axis/WEB-INF/lib,
> but I still got:
> 
> Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at
> an unknown location
> 
> Why?
> 
> -Henry
> 
> >>> [EMAIL PROTECTED] 6/7/2005 1:24:36 PM >>>
> thanks!
> 
> you're right, there is a SAXParser class in the rt.jar that came with
> JDK 5.0!
> 
> 
> --- "Ruiz González, Jose de Jesus" <[EMAIL PROTECTED]> wrote:
> 
> > Axis is finding that package from Java 
> > 
> > 
> > José de Jesús Ruiz Gonzalez
> > Departamento de Sistemas
> > México Asistencia S.A. de C.V.
> > Sistema Internacional de Asistencia Mapfre
> > 
> > * mailto:[EMAIL PROTECTED] 
> > *(52) 55 + 54801298
> > 
> > *Fax(52) 55 + 56112011
> > 
> >  
> > 
> > 
> > -Mensaje original-
> > De: Woodchuck [mailto:[EMAIL PROTECTED] 
> > Enviado el: Martes, 07 de Junio de 2005 11:08 a.m.
> > Para: axis-user@ws.apache.org 
> > Asunto: happyaxis JAXP implementation found at an unknown location
> > 
> > hihi all,
> > 
> > i'm currently using axis 1.2 in tomcat 5.5.9
> > 
> > everything is fine but i'm curious to know where axis is finding
> the
> > JAXP
> > implementation ( javax.xml.parsers.SAXParserFactory ).
> > 
> > i do not have the jaxp-api.jar anywhere at all.
> > 
> > has anyone else noticed this as well (who are using Tomcat 5.5
> also)?
> > 
> > i even did a file search for the string "javax.xml" but it is not
> > anywhere
> > within tomcat.
> > 
> > anyone have any ideas or know the answer to this mystery?
> > 
> > thanks in advance,
> > woodchuck
> > 
> > 
> > 
> > __
> > Yahoo! Mail Mobile
> > Take Yahoo! Mail with you! Check email on your mobile phone. 
> > http://mobile.yahoo.com/learn/mail 
> > 
> 
> 
> 
>   
> __ 
> Discover Yahoo! 
> Find restaurants, movies, travel and more fun for the weekend. Check
> it out! 
> http://discover.yahoo.com/weekend.html 
> 
> 
> 
> 
> **
> Electronic Mail is not secure, may not be read every day, and should
> not be used for urgent or sensitive issues.
> 




__ 
Discover Yahoo! 
Have fun online with music videos, cool games, IM and more. Check it out! 
http://discover.yahoo.com/online.html


RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Woodchuck
thanks!

you're right, there is a SAXParser class in the rt.jar that came with
JDK 5.0!


--- "Ruiz González, Jose de Jesus" <[EMAIL PROTECTED]> wrote:

> Axis is finding that package from Java 
> 
> 
> José de Jesús Ruiz Gonzalez
> Departamento de Sistemas
> México Asistencia S.A. de C.V.
> Sistema Internacional de Asistencia Mapfre
> 
> * mailto:[EMAIL PROTECTED] 
> *(52) 55 + 54801298
> 
> *Fax(52) 55 + 56112011
> 
>  
> 
> 
> -Mensaje original-
> De: Woodchuck [mailto:[EMAIL PROTECTED] 
> Enviado el: Martes, 07 de Junio de 2005 11:08 a.m.
> Para: axis-user@ws.apache.org
> Asunto: happyaxis JAXP implementation found at an unknown location
> 
> hihi all,
> 
> i'm currently using axis 1.2 in tomcat 5.5.9
> 
> everything is fine but i'm curious to know where axis is finding the
> JAXP
> implementation ( javax.xml.parsers.SAXParserFactory ).
> 
> i do not have the jaxp-api.jar anywhere at all.
> 
> has anyone else noticed this as well (who are using Tomcat 5.5 also)?
> 
> i even did a file search for the string "javax.xml" but it is not
> anywhere
> within tomcat.
> 
> anyone have any ideas or know the answer to this mystery?
> 
> thanks in advance,
> woodchuck
> 
> 
>   
> __
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail 
> 




__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 



Re: AW: activation.jar ... what does axis need it for?

2005-06-07 Thread Woodchuck
thank you!

i guess the happyaxis validation page is a bit misleading... they
should put activation.jar as an 'optional' component instead of a
'needed' component.

woodchuck

--- Ferruh Zamangoer <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> the activation.jar are used for sending attachments. You can use a
> DataHandler Object to send files. But I don't know if it's optional.
> 
> Attachments can be send optionally with SAAJ-API, but in this case
> you have
> to build your attachment manually.
> 
> Regards
> Ferruh
> 
> 
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Woodchuck [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 7. Juni 2005 16:15
> An: axis-user@ws.apache.org
> Betreff: activation.jar ... what does axis need it for?
> 
> hihi all,
> 
> i've setup axis and have my web services running happily.  but i
> noticed that if i remove activation.jar the happyaxis page will say
> that it cannot find activation.jar and that axis will not work.
> 
> however, my web services still work fine without activation.jar!
> 
> so my question is, what does axis need activation.jar for?
> 
> thanks in advance,
> woodchuck
> 
> 
>   
> __ 
> Yahoo! Mail 
> Stay connected, organized, and protected. Take the tour: 
> http://tour.mail.yahoo.com/mailtour.html 
> 
> 




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 


Re: SSL and wsdl2java???

2005-06-07 Thread Nathaniel A. Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy Kriger wrote:
> I have web service running under Tomcat with SSL. In a browser I have
> verified that the wsdl file is only accessible through HTTPS. I use
> wsdl2java to generate my client-side classes. This worked find without
> SSL, now I get
> 
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> 
> How do you run wsdl2java so that it can connect to a secure web service?
> I am giving it the correct url (https with the secure port) but
> somehow I need to tell wsdl2java where to find the certificate.
> 
> Are there any clear docs on how to do this? (I've done a lot of
> searching of mailing lists and forums without much luck at finding
> something specific to wsdl2java).

you probably just need to import your ssl certificate into the jdk
running the client.  the jdk usually uses the kestore at
/jre/lib/security/cacerts ... then import your ssl cert in
with the java keytool program that comes with java.

nate


> 
> thx
> andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCpdYygj8ksIjnb2wRAjSUAJ4n7EGwxIfpu0qsf3lJwApNmbZNegCaA9v+
ZJnXnKvCDVY+B7monN7T64A=
=IIvk
-END PGP SIGNATURE-


SSL and wsdl2java???

2005-06-07 Thread Andy Kriger
I have web service running under Tomcat with SSL. In a browser I have
verified that the wsdl file is only accessible through HTTPS. I use
wsdl2java to generate my client-side classes. This worked find without
SSL, now I get

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target

How do you run wsdl2java so that it can connect to a secure web service?
I am giving it the correct url (https with the secure port) but
somehow I need to tell wsdl2java where to find the certificate.

Are there any clear docs on how to do this? (I've done a lot of
searching of mailing lists and forums without much luck at finding
something specific to wsdl2java).

thx
andy


One-Way SOAP message is conceptually unidirectional

2005-06-07 Thread Alberto De Stasi

Hi all,
I found about a OneWay method at link 
http://www.informit.com/articles/article.asp?p=169106&seqNum=7&rl=1.


I want that One-Way SOAP messages do not return SOAP faults or results of 
any kind, but the HTTP 202 Accepted response code to indicate only that the 
message made it to the receiver - it doesn't indicate whether the message 
was successfully processed.


Can you help me to create a web service (with AXIS) and client java?

Thanks Pasquy

_
Personalizza MSN Messenger con sfondi e fotografie! 
http://www.ilovemessenger.msn.it/




No Operation

2005-06-07 Thread Niall McLoughlin




Greetings,

New to axis (and web services in general) here and looking for a little
guideance. I'm contacting a WS where based on what service/action I'm
calling I need to pass various types of xml documents (or data) in the
soap body and the service will return an xml document. There are no
specific operations to call, I just need to pass some xml data. How do
I do this? When I don't set an operation name, axis returns an error.
Any help would be greatly appreciated.

Basically, my request should look something like this:

POST /ServiceRequestHandler HTTP/1.1
Host: epass.elliemaeservices.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://HOST/ServiceRequest"



  
	
		...
	
  soap:Body>
soap:Envelope>





how to suppress namespaces in the response XML

2005-06-07 Thread Kiran Kumar


Hi, I am using Axis 1.2 and 
using BeanSerializerFactory to return the response in XML form. It was 
generating the output something like this.. I want to suprress the namespaces.. 
Is there any way to do this in Axis?
 
 
http://domain.mydomain/versions/1.0/idindividual"> http://domain.mydomain/versions/1.0/idcommontypes">  151 1.12711579644057E8 87634.71237811  
 
 

Thanks
Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


Asynchronous communication

2005-06-07 Thread Kador, Daniel
I'm interested in doing some asynchronous communication using Axis.  I
need a way to echo the request's text in the response's.  Is there a
simple way to do this in Axis, or even a complicated way?  I've been
looking for some information on this, and I can't seem to find anything.
If anybody could point me in the right direction, I'd appreciate it.

Thanks,
Dan Kador


RE: how to call a document style web service?

2005-06-07 Thread Kiran Kumar



Hello all.. I am really 
stuck.. please point me to some example on how to call webservice using soap 
envelope..  I searched through google, but could not find any 
example...
 

Thank You, 
Kiran

From: Kiran Kumar 
[mailto:[EMAIL PROTECTED]Sent: Tue 6/7/2005 8:15 
AMTo: axis-user@ws.apache.orgSubject: how to call a 
document style web service?


Helo 
all,
 
I am using axis 1.2 
(java).. I built a document stylewebservice, which has following 
method..
public Geocode onfromto(OnfromtoInputs inputs);I 
started writing a client to call this web servicemethod.. but I could not 
find any API to call a webservice method with soap envelope.. can you please 
throwsome light on this ... ?Thanks for your time, GK. I 
started writing a client something like this..// create 
envelopeSOAPEnvelope env = new SOAPEnvelope();// create 
bodySOAPBody body = env.addBody();// Create bodyName bodyName 
=env.createName("onfromto","m","http://mydomain.domain/onfromto");SOAPBodyElement bodyElement 
=body.addBodyElement(bodyName);Name nameAddress = 
env.createName("address");SOAPElement eleAddress 
=bodyElement.addChildElement(nameAddress);eleAddress.addTextNode("2425 
springdale"); 
Name nameGeoCodingTarget = 
env.createName("codingtarget");SOAPElement eleGeo 
=bodyElement.addChildElement(nameGeoCodingTarget);eleGeo.addTextNode("0"); 
Service service = new Service();Call call = (Call) 
service.createCall();call.setTargetEndpointAddress(strEndpoint);
How to invoke with soap envelop ?
=
 

Thanks for your time
Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


Re: Axis Alternative

2005-06-07 Thread Davanum Srinivas
Mike,

What i am asking is - what are ur requirements?

-- dims

On 6/7/05, Mike Haller <[EMAIL PROTECTED]> wrote:
> Nothing's really wrong with Axis itself, it's just me.
> 
> Axis just doesn't fit my requirements (or vice versa). I'm searching for
> an alternative, which is _similar_ but not the same as Axis. But that's
> off-topic, sorry for bothering.
> 
> Davanum Srinivas schrieb:
> > Did you look at existing bug reports? did you open bug reports? with
> > sample test case(s)? If we don't know what's wrong, how can we fix it?
> > (see http://marc.theaimsgroup.com/?l=axis-user&m=111788771523596&w=2
> > for more information)
> > thanks,
> > dims
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


RE: happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Ruiz González, Jose de Jesus
Axis is finding that package from Java 


José de Jesús Ruiz Gonzalez
Departamento de Sistemas
México Asistencia S.A. de C.V.
Sistema Internacional de Asistencia Mapfre

* mailto:[EMAIL PROTECTED] 
*(52) 55 + 54801298

*Fax(52) 55 + 56112011

 


-Mensaje original-
De: Woodchuck [mailto:[EMAIL PROTECTED] 
Enviado el: Martes, 07 de Junio de 2005 11:08 a.m.
Para: axis-user@ws.apache.org
Asunto: happyaxis JAXP implementation found at an unknown location

hihi all,

i'm currently using axis 1.2 in tomcat 5.5.9

everything is fine but i'm curious to know where axis is finding the JAXP
implementation ( javax.xml.parsers.SAXParserFactory ).

i do not have the jaxp-api.jar anywhere at all.

has anyone else noticed this as well (who are using Tomcat 5.5 also)?

i even did a file search for the string "javax.xml" but it is not anywhere
within tomcat.

anyone have any ideas or know the answer to this mystery?

thanks in advance,
woodchuck



__
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


RE: Axis Exception

2005-06-07 Thread Panayiotis Periorellis
Hi thanks for the respnose,

happyaxis seems ok ...  I will do as you say and debug.
This is the exception I get in detail
Regards
p

java.lang.NoClassDefFoundError: org/apache/axis/handlers/BasicHandler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDD
eployableItem.java:353)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WS
DDDeployableItem.java:295)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
DDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
ployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeploym
ent.java:423)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
DDeployableItem.java:276)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
ployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.j
ava:125)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
DDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
ployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDServi
ce.java:417)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
DDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
ployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeploym
ent.java:460)
at
org.apache.axis.configuration.FileProvider.getService(FileProvider.ja
va:226)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:290)
at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:7
55)
at
org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:50)
at
org.apache.axis.handlers.http.URLMapper.generateWSDL(URLMapper.java:5
8)
at
org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java
:33)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at
org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
at
org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:431)
at
org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.jav
a:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.j
ava:1132)
at
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:233
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at
org.apache.catalina.core.S

happyaxis JAXP implementation found at an unknown location

2005-06-07 Thread Woodchuck
hihi all,

i'm currently using axis 1.2 in tomcat 5.5.9

everything is fine but i'm curious to know where axis is finding the
JAXP implementation ( javax.xml.parsers.SAXParserFactory ).

i do not have the jaxp-api.jar anywhere at all.

has anyone else noticed this as well (who are using Tomcat 5.5 also)?

i even did a file search for the string "javax.xml" but it is not
anywhere within tomcat.

anyone have any ideas or know the answer to this mystery?

thanks in advance,
woodchuck



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


Re: Axis Alternative

2005-06-07 Thread Mike Haller

Nothing's really wrong with Axis itself, it's just me.

Axis just doesn't fit my requirements (or vice versa). I'm searching for 
an alternative, which is _similar_ but not the same as Axis. But that's 
off-topic, sorry for bothering.


Davanum Srinivas schrieb:

Did you look at existing bug reports? did you open bug reports? with
sample test case(s)? If we don't know what's wrong, how can we fix it?
(see http://marc.theaimsgroup.com/?l=axis-user&m=111788771523596&w=2
for more information)
thanks,
dims


RE: Axis Alternative

2005-06-07 Thread Ephemeris Lappis
Do you often come into a restaurant, and ask the "chef" for another
restaurant with a better menu ?...
I was just a joke !

>>> -Original Message-
>>> From: Mike Haller [mailto:[EMAIL PROTECTED]
>>> Sent: Tuesday, June 07, 2005 5:12 PM
>>> To: 'axis-user@ws.apache.org'
>>> Subject: Axis Alternative
>>>
>>>
>>> Hi there,
>>>
>>> i'm sorry to ask, but there are so much problems for me with Axis,
>>> perhaps it's not the right framework for my project.
>>> Are there any alternatives to Axis?
>>>
>>> kind regards
>>> Mike



RE: how to call a document style web service?

2005-06-07 Thread gvl








Hello all,

 

Does someone have experience with mule and
web services?

 

I can access a web service using the
classes generated by wsdl2java

 

When I try to define the webservice as a
mule endpoint I receave a wsdlreader error from the .not webservice.

 

 

Any help is welcome,

 



Best regards /
Vriendelijke groeten / Cordialement, 

 

Geert Van
Landeghem

Java & iSeries400
consultant

 

foundation.be 

Mobile: 0477/75.95.33

Tel: 052/42.73.70

www.foundation.be

 









This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.




Re: Axis Exception

2005-06-07 Thread Mike Haller

- Check your Axis Happiness page (http://localhost:8080/axis/happyaxis.jsp)
- Restart your application server in debug mode and check the classpaths.
- Don't put axis.jar in tomcat/shared/lib, leave it in axis/WEB-INF/lib
- At one URL your server was named "glororan", are you trying to access 
two different servers?



Panayiotis Periorellis schrieb:

Hi Guenter,

Thanks for the response but it doesn't seem to be the solution to the
problem.

I had axis.jar inside axis\web-inf\lib 
And also I put it in tomcat\shared\lib 
as you suggeted 


The problem persistsany other ideas?

p


-Original Message-
From: Grossberger, Guenter [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 16:22

To: axis-user@ws.apache.org
Subject: RE: Axis Exception

Hi!

I had a similar problem a few days ago. Somehow the 
classloader of Java VM of the J2EE container where Axis and 
your application are deployed cannot find the class 
org/apache/axis/handlers/BasicHandler which should be in 
axis.jar of course.


So make sure that axis.jar is in the classpath of the application
(WEB-INF/lib) or the J2EE container (e.g. Tomcat/shared/lib).

Bye,
Guenter




-Original Message-
From: Panayiotis Periorellis
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 4:56 PM
To: axis-user@ws.apache.org
Subject: Axis Exception

Hi All,


I have installed and have been using axis for over a year now and 
never had serious problems. Recently I tried to install the 


WSS4J.jar 

package to experiment with ws security. The same package has 


been used 


by other colleagues and it works.

When I try to deploy however my service using a ws security handler 
that is inside the wss4j.jar package I get no errors. That is when I 
execute the command


java org.apache.axis.client.AdminClient deploy.wsdd

Now when I try to view the list of Services at 
http://glororan:8080/axis/servlet/AxisServlet


they all dissapear and in addition when I go to the following url I 
get the error listed below..


http://localhost:8080/axis/services/XACMLRequest?wsdl

AXIS error
Sorry, something seems to have gone wrong... here are the details:

Exception - java.lang.NoClassDefFoundError:
org/apache/axis/handlers/BasicHandler

I suspect it is something internal to axis.
Has anybody else had the same problem? Any help would be appreciate 
it.


Regards
p







RE: Axis Exception

2005-06-07 Thread Panayiotis Periorellis
Hi Guenter,

Thanks for the response but it doesn't seem to be the solution to the
problem.

I had axis.jar inside axis\web-inf\lib 
And also I put it in tomcat\shared\lib 
as you suggeted 

The problem persistsany other ideas?

p
>-Original Message-
>From: Grossberger, Guenter [mailto:[EMAIL PROTECTED] 
>Sent: 07 June 2005 16:22
>To: axis-user@ws.apache.org
>Subject: RE: Axis Exception
>
>Hi!
>
>I had a similar problem a few days ago. Somehow the 
>classloader of Java VM of the J2EE container where Axis and 
>your application are deployed cannot find the class 
>org/apache/axis/handlers/BasicHandler which should be in 
>axis.jar of course.
>
>So make sure that axis.jar is in the classpath of the application
>(WEB-INF/lib) or the J2EE container (e.g. Tomcat/shared/lib).
>
>Bye,
>Guenter
>
>
>> -Original Message-
>> From: Panayiotis Periorellis
>> [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, June 07, 2005 4:56 PM
>> To: axis-user@ws.apache.org
>> Subject: Axis Exception
>> 
>> Hi All,
>> 
>> 
>> I have installed and have been using axis for over a year now and 
>> never had serious problems. Recently I tried to install the 
>WSS4J.jar 
>> package to experiment with ws security. The same package has 
>been used 
>> by other colleagues and it works.
>> 
>> When I try to deploy however my service using a ws security handler 
>> that is inside the wss4j.jar package I get no errors. That is when I 
>> execute the command
>> 
>> java org.apache.axis.client.AdminClient deploy.wsdd
>>  
>> Now when I try to view the list of Services at 
>> http://glororan:8080/axis/servlet/AxisServlet
>> 
>> they all dissapear and in addition when I go to the following url I 
>> get the error listed below..
>> 
>> http://localhost:8080/axis/services/XACMLRequest?wsdl
>> 
>> AXIS error
>> Sorry, something seems to have gone wrong... here are the details:
>> 
>> Exception - java.lang.NoClassDefFoundError:
>> org/apache/axis/handlers/BasicHandler
>> 
>> I suspect it is something internal to axis.
>> Has anybody else had the same problem? Any help would be appreciate 
>> it.
>> 
>> Regards
>> p
>> 
>


Re: Axis Alternative

2005-06-07 Thread Davanum Srinivas
Did you look at existing bug reports? did you open bug reports? with
sample test case(s)? If we don't know what's wrong, how can we fix it?
(see http://marc.theaimsgroup.com/?l=axis-user&m=111788771523596&w=2
for more information)

thanks,
dims

On 6/7/05, Mike Haller <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> i'm sorry to ask, but there are so much problems for me with Axis,
> perhaps it's not the right framework for my project.
> Are there any alternatives to Axis?
> 
> kind regards
> Mike
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


RE: Axis Exception

2005-06-07 Thread Grossberger, Guenter
Hi!

I had a similar problem a few days ago. Somehow the classloader of Java
VM of the J2EE container where Axis and your application are deployed
cannot find the class org/apache/axis/handlers/BasicHandler which should
be in axis.jar of course.

So make sure that axis.jar is in the classpath of the application
(WEB-INF/lib) or the J2EE container (e.g. Tomcat/shared/lib).

Bye,
Guenter


> -Original Message-
> From: Panayiotis Periorellis 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 07, 2005 4:56 PM
> To: axis-user@ws.apache.org
> Subject: Axis Exception
> 
> Hi All,
> 
> 
> I have installed and have been using axis for over a year now 
> and never
> had serious problems. Recently I tried to install the 
> WSS4J.jar package
> to experiment with ws security. The same package has been 
> used by other
> colleagues and it works.
> 
> When I try to deploy however my service using a ws security 
> handler that
> is inside the wss4j.jar package I get no errors. That is when 
> I execute
> the command
> 
> java org.apache.axis.client.AdminClient deploy.wsdd 
>  
> Now when I try to view the list of Services at
> http://glororan:8080/axis/servlet/AxisServlet 
> 
> they all dissapear and in addition when I go to the following 
> url I get
> the error listed below..
> 
> http://localhost:8080/axis/services/XACMLRequest?wsdl
> 
> AXIS error
> Sorry, something seems to have gone wrong... here are the details:
> 
> Exception - java.lang.NoClassDefFoundError:
> org/apache/axis/handlers/BasicHandler
> 
> I suspect it is something internal to axis.
> Has anybody else had the same problem? Any help would be 
> appreciate it.
> 
> Regards
> p
> 


Axis Alternative

2005-06-07 Thread Mike Haller

Hi there,

i'm sorry to ask, but there are so much problems for me with Axis, 
perhaps it's not the right framework for my project.

Are there any alternatives to Axis?

kind regards
Mike


Axis Exception

2005-06-07 Thread Panayiotis Periorellis
Hi All,


I have installed and have been using axis for over a year now and never
had serious problems. Recently I tried to install the WSS4J.jar package
to experiment with ws security. The same package has been used by other
colleagues and it works.

When I try to deploy however my service using a ws security handler that
is inside the wss4j.jar package I get no errors. That is when I execute
the command

java org.apache.axis.client.AdminClient deploy.wsdd 
 
Now when I try to view the list of Services at
http://glororan:8080/axis/servlet/AxisServlet 

they all dissapear and in addition when I go to the following url I get
the error listed below..

http://localhost:8080/axis/services/XACMLRequest?wsdl

AXIS error
Sorry, something seems to have gone wrong... here are the details:

Exception - java.lang.NoClassDefFoundError:
org/apache/axis/handlers/BasicHandler

I suspect it is something internal to axis.
Has anybody else had the same problem? Any help would be appreciate it.

Regards
p


AW: activation.jar ... what does axis need it for?

2005-06-07 Thread Ferruh Zamangoer
Hi,

the activation.jar are used for sending attachments. You can use a
DataHandler Object to send files. But I don't know if it's optional.

Attachments can be send optionally with SAAJ-API, but in this case you have
to build your attachment manually.

Regards
Ferruh





-Ursprüngliche Nachricht-
Von: Woodchuck [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 7. Juni 2005 16:15
An: axis-user@ws.apache.org
Betreff: activation.jar ... what does axis need it for?

hihi all,

i've setup axis and have my web services running happily.  but i
noticed that if i remove activation.jar the happyaxis page will say
that it cannot find activation.jar and that axis will not work.

however, my web services still work fine without activation.jar!

so my question is, what does axis need activation.jar for?

thanks in advance,
woodchuck



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



activation.jar ... what does axis need it for?

2005-06-07 Thread Woodchuck
hihi all,

i've setup axis and have my web services running happily.  but i
noticed that if i remove activation.jar the happyaxis page will say
that it cannot find activation.jar and that axis will not work.

however, my web services still work fine without activation.jar!

so my question is, what does axis need activation.jar for?

thanks in advance,
woodchuck



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



how to call a document style web service?

2005-06-07 Thread Kiran Kumar


Helo all,
 
I am using axis 1.2 
(java).. I built a document stylewebservice, which has following 
method..
public Geocode onfromto(OnfromtoInputs inputs);I 
started writing a client to call this web servicemethod.. but I could not 
find any API to call a webservice method with soap envelope.. can you please 
throwsome light on this ... ?Thanks for your time, GK. I 
started writing a client something like this..// create 
envelopeSOAPEnvelope env = new SOAPEnvelope();// create 
bodySOAPBody body = env.addBody();// Create bodyName bodyName 
=env.createName("onfromto","m","http://mydomain.domain/onfromto");SOAPBodyElement bodyElement 
=body.addBodyElement(bodyName);Name nameAddress = 
env.createName("address");SOAPElement eleAddress 
=bodyElement.addChildElement(nameAddress);eleAddress.addTextNode("2425 
springdale"); 
 	Name nameGeoCodingTarget = 
env.createName("codingtarget");SOAPElement eleGeo 
=bodyElement.addChildElement(nameGeoCodingTarget);eleGeo.addTextNode("0");			Service 
service = new Service();Call call = (Call) 
service.createCall();call.setTargetEndpointAddress(strEndpoint);
How to invoke with soap envelop ?
=
 

Thanks for your time
Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


Specifying Custom wsdl for EJB services

2005-06-07 Thread Deepesh Garg
Hi,
Is there any way to control the structure of soap response for ejb services?
I have tried with exposing an EJB as web service using axis. It works
fine, but the structure of request and response message is very
verbose filled with lots of information. I tried with specifying a
custom wsdl file in the wsdd of the service. When I check the wsdl for
the service using serviceUrl?wsdl, it gives back the specified wsdl
nicely, but it seems that the wsdl is not used to generate the
response message (and its not mentioned anywhere that it would be). I
am not sure if this is the right way of controling the message
structure.
Any pointers on this is very appreciated.
Please tell me if my query is not clear or further information could help.
Thanks,
Deepesh

PS: I fed the soap request generated from apache soap client to apache
axis service and surprisingly it consumed it and processed it
properly. Although the structure of request message differs
significantly for the two.


Web Service Axis without response to client

2005-06-07 Thread Alberto De Stasi

Hi all,

but I always have this problem too with axis web service.

I want a service that into TCP Monitor it's show only request (client to 
service) without response (service to client). I want to use an One Way 
method with Axis.


This example (request and response) works with .Net (client VB .Net and web 
server .Net).

My request is:

POST /PortaApplicativaDemo/Porta01.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573) Content-Type: text/xml;

charset=utf-8
SOAPAction: "WebMethod"
Content-Length: 987
Expect: 100-continue
Connection: Keep-Alive
Host: 192.168.11.195:8081


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

 
… my header
 
 
… my body
 
  

and my response is:

HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Tue, 07 Jun 2005 09:11:21 GMT
X-Powered-By: ASP.NET

HTTP/1.1 202 Accepted
Server: Microsoft-IIS/5.0
Date: Tue, 07 Jun 2005 09:11:23 GMT
X-Powered-By: ASP.NET X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Length: 0

Notice that the response of .Net Service use a HTTP 202 status code and it 
does not answer to client. I want this.


Now, I don't know how do you do?

I can to think that the problem is:
 1. my web service method
 2. or create a status code HTTP 202 accepted by service

How can I resolve this problem?

Thanks Pasquy

_
Comunica in tempo reale http://messenger.msn.com/beta



Setting HTTP 202 response with AXIS

2005-06-07 Thread Alberto De Stasi

Hi all,

I have a problem; I want that my web service create a response HTTP status 
202 (accepted)?

I use axis + tomcat 5.

Can you help me?

Thanks Pasquy.

_
Scopri il nuovo MSN Htomail - 10MB di allegati 
http://www.msn.it/hotmail/minisite_10




AW: AW: deploy trouble

2005-06-07 Thread Ferruh Zamangoer
Also you can include log4j and see which debug output is produced by using
the AdminClient to localize the failure. I'am using the adminClient and it
works fine? Your wsdd file seems to be ok. What I have see is that your
encodingStyle="" is empty. I don't know if it's needed?

 

-Ursprüngliche Nachricht-
Von: James Taylor [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 7. Juni 2005 10:14
An: axis-user@ws.apache.org
Betreff: Re: AW: deploy trouble

yep I have done and there's no sign of it.

quoting Ferruh Zamangoer <[EMAIL PROTECTED]>:

> Have you checked your server-config.wsdd if your service is there. When
you
> deploy your service you can see a new service part with.:
>
> 
> 
>
>
> But I'am not sure if this is the problem.
>
> Regards
> Ferruh
>
>
>
> -Ursprüngliche Nachricht-
> Von: James Taylor [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 6. Juni 2005 20:51
> An: axis-user@ws.apache.org
> Betreff: Fwd: deploy trouble
>
>
> Hi there,
>  I'm trying to deploy a service to axis using the admin client and
> is
> not listed in axis/server-config.wsdd. It seems to deploy and undeploy ok:
> axisDeploy:
>  [echo] doing deploy task...
>  [java] Processing file
> E:\taylorjwDocs\JavaProjects\Development\WorkingJAX-
> RPCmodel\src\flightCompany\bookFlights\rpcservice\deploy.wsdd
>  [java] Done processing
>  [echo] Done...
>
> axisDeploy:
>  [echo] doing deploy task...
>  [java] Processing file
> E:\taylorjwDocs\JavaProjects\Development\WorkingJAX-
> RPCmodel\src\flightCompany\bookFlights\rpcservice\undeploy.wsdd
>  [java] Done processing
>  [echo] Done...
>
> ...But it does not show up as deployed on axis "View the list of deployed
> Web
> services" link and this link does not complain about anything. Why is
this?
> thought it would throw an error if not deployed and one tried to undeploy
> it.
>
> Here's deploy.wsdd
>
> 
> 
> 
> 
> 
> 
> 
>
>  xmlns="http://xml.apache.org/axis/wsdd/";
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>
>   
>
>use="literal">
>value="http://ie/tcd/taylorjw/flightbooking/wsdl"/>
>   
>   
>value="flightCompany.bookFlights.rpcservice.BookFlightsSOAPBindingImpl"/>
>   
>returnQName="retNS:bookFlightsResponse"
> xmlns:retNS="http://ie.tcd/taylorjw/flightbooking";
returnType="rtns:anyType"
> xmlns:rtns="http://www.w3.org/2001/XMLSchema"; soapAction="bookFlights" >
>  xmlns:pns="http://ie.tcd/taylorjw/flightbooking"; type="tns:anyType"
> xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>   
>   
>   
>
>xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
> qname="ns:Flight"
> type="java: flightCompany.bookFlights.rpcservice.Flight"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
>   />
>xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
> qname="ns:Passenger"
> type="java: flightCompany.bookFlights.rpcservice.Passenger"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
>   />
>xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
> qname="ns:Booking"
> type="java: flightCompany.bookFlights.rpcservice.Booking"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
>   />
>
>   
> 
>
>


--
Between the question and the answer lies free will



doc/lit support

2005-06-07 Thread Falk Sippach
 Hello,

I want to call an Axis Java webservice from a Axis C++ client. In
axis-c-user mailing list they suggest me, to use doc/lit. But I have
some problems generating the server skeletons.
I've written a Java interface with a String[] getStrings and a int[]
getInts method amongst others.

When I generate the wsdl-file with java2wsdl the return type of both
methods has changed:
java org.apache.axis.wsdl.Java2WSDL -l
http://flak:8080/axis/services/Beantest_lit -o ..\wsdl\Beantest_lit.wsdl
-n "urn:Beantest" -p"com.iez.spserver.ws.beantest" "urn:Beantest" -A
operation -y document -u literal com.iez.spserver.ws.beantest.BeantestWS




Generating the skeletons with wsdl2java follows in wrong method
declarations.
java org.apache.axis.wsdl.WSDL2Java -o . -s -S true -N"urn:Beantest"
"com.iez.spserver.ws.beantest_lit" Beantest_lit.wsdl

public int getInts() throws java.rmi.RemoteException;
public java.lang.String getStrings() throws
java.rmi.RemoteException;

Is it a bug or I'm doing something wrong? Is doc/lit support fully
developed?

Falk.


Re: AW: deploy trouble

2005-06-07 Thread James Taylor
yep I have done and there's no sign of it.

quoting Ferruh Zamangoer <[EMAIL PROTECTED]>:

> Have you checked your server-config.wsdd if your service is there. When you
> deploy your service you can see a new service part with.:
>
> 
> 
>
>
> But I'am not sure if this is the problem.
>
> Regards
> Ferruh
>
>
>
> -Ursprüngliche Nachricht-
> Von: James Taylor [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 6. Juni 2005 20:51
> An: axis-user@ws.apache.org
> Betreff: Fwd: deploy trouble
>
>
> Hi there,
>  I'm trying to deploy a service to axis using the admin client and
> is
> not listed in axis/server-config.wsdd. It seems to deploy and undeploy ok:
> axisDeploy:
>  [echo] doing deploy task...
>  [java] Processing file
> E:\taylorjwDocs\JavaProjects\Development\WorkingJAX-
> RPCmodel\src\flightCompany\bookFlights\rpcservice\deploy.wsdd
>  [java] Done processing
>  [echo] Done...
>
> axisDeploy:
>  [echo] doing deploy task...
>  [java] Processing file
> E:\taylorjwDocs\JavaProjects\Development\WorkingJAX-
> RPCmodel\src\flightCompany\bookFlights\rpcservice\undeploy.wsdd
>  [java] Done processing
>  [echo] Done...
>
> ...But it does not show up as deployed on axis "View the list of deployed
> Web
> services" link and this link does not complain about anything. Why is this?
> thought it would throw an error if not deployed and one tried to undeploy
> it.
>
> Here's deploy.wsdd
>
> 
> 
> 
> 
> 
> 
> 
>
>  xmlns="http://xml.apache.org/axis/wsdd/";
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>
>   
>
>use="literal">
>value="http://ie/tcd/taylorjw/flightbooking/wsdl"/>
>   
>   
>value="flightCompany.bookFlights.rpcservice.BookFlightsSOAPBindingImpl"/>
>   
>returnQName="retNS:bookFlightsResponse"
> xmlns:retNS="http://ie.tcd/taylorjw/flightbooking"; returnType="rtns:anyType"
> xmlns:rtns="http://www.w3.org/2001/XMLSchema"; soapAction="bookFlights" >
>  xmlns:pns="http://ie.tcd/taylorjw/flightbooking"; type="tns:anyType"
> xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>   
>   
>   
>
>xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
> qname="ns:Flight"
> type="java: flightCompany.bookFlights.rpcservice.Flight"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
>   />
>xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
> qname="ns:Passenger"
> type="java: flightCompany.bookFlights.rpcservice.Passenger"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
>   />
>xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
> qname="ns:Booking"
> type="java: flightCompany.bookFlights.rpcservice.Booking"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
>   />
>
>   
> 
>
>


--
Between the question and the answer lies free will


How publishing one way method with axis?

2005-06-07 Thread Alberto De Stasi

Hi all,

I want to use a one way method for web service with axis. My service is:

public void echoDocumentOneWay(Document doc) throws RemoteException {
  System.out.println("EchoDocument OneWay");
}

and I have an Exception server side (I use Tomcat 5):
- Exception:
java.lang.Exception: Method 'echoDocumentOneWay' does not match any of the 
valid

signatures for message-style service methods

Can you tell me how write this one way service?

Thanks Pasquy.

_
Personalizza MSN Messenger con sfondi e fotografie! 
http://www.ilovemessenger.msn.it/




Best practice devployment of Handlers and WebServices

2005-06-07 Thread Wayne Richards
Hi all,
I am looking for what are the best practices in
deploying handlers and webservices.
In several article I have recently read the authors
are convinced that the most secure way of devloping
handlers and webservices with axis is to create a jar
file containing all handlers, then place this jar file
in the axis lib directory and to do the same with the
webservices, thne placing the applicaion property
files in the lib directory as well.
Is this considered BEST PRACTICE for the deployment of
axis handlers and class based (no UI) web services.
Advice on this will be helpful
Regards
Wayne

Send instant messages to your online friends http://au.messenger.yahoo.com