RE: Can you have more then one client handler

2005-12-07 Thread Guy Rixon
You could try combining them into a handler chain. You could then assign the
chain to handle the request.

On Wed, 7 Dec 2005, Parikh,Pratik wrote:

> Can anyone reply to this??
>
>
> Thanks,
> Parikh, Pratik
>
> 
>
> From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 07, 2005 10:02 AM
> To: axis-user@ws.apache.org
> Subject: Can you have more then one client handler
>
>
>
> Hi Everyone,
>
> I have two handler in my client stub, one for logging out messages
> to MQ and second is for CommonsHTTPSender. Now the problem I am running
> into is that it only allow me to have one handler. Is there anyway I can
> run both, please let me know?
>
> Thanks,
> Pratik
>
> CONFIDENTIALITY NOTICE
>
> This message and any included attachments
> are from Cerner Corporation and are intended
> only for the addressee. The information
> contained in this message is confidential and
> may constitute inside or non-public information
> under international, federal, or state
> securities laws. Unauthorized forwarding,
> printing, copying, distribution, or use of such
> information is strictly prohibited and may be
> unlawful. If you are not the addressee, please
> promptly delete this message and notify the
> sender of the delivery error by e-mail or you
> may call Cerner's corporate offices in Kansas
> City, Missouri, U.S.A at (+1) (816)221-1024.
>  --
>
>

Guy Rixon   [EMAIL PROTECTED]
Institute of Astronomy  Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA  Fax: +44-1223-337523


AW: Newbie Question

2005-12-07 Thread Martin, Imme
Hallo Indra, 

I think you need to tell axis about the object you receive from the service in 
order to map it correctly. Therefore, try to do something like this: 



qn = new QName( "", "" );

// create a new serielizer and deserializer for the Java Bean into
// which you want Axis to map the received Object
BeanSerializerFactory bsf = new BeanSerializerFactory(.class, qn);
BeanDeserializerFactory bdsf = new 
BeanDeserializerFactory(.class, qn);

// register the serializer/deserializer with your call object
call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);

// tell the call about the  return type thing
call.setReturnType( qn ); 

// call the service 
 yjb = ()call.invoke(new Object[] {});




I hope this helps. Unfortunately, I don't have a book recommendation since I am 
still looking for a good reference myself :)
But what really helped me were the guides at ws.apache.org/axis but I guess you 
read those already ;)

Good luck, 
Martin


-Ursprüngliche Nachricht-
Von: Indra Syafruddin [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Dezember 2005 05:43
An: axis-user@ws.apache.org
Betreff: Newbie Question

Hello, I am new in using Axis
I have one newbie question, can Axis return Object?

I tried to make web services that returns Vector (with String value),
it runs ok.
But when I put Object in the Vector and return it, there's always error :

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Premature end of file.
...

do anyone know how to solve the problem?

plus, do anyone know any axis book or tutorial I can download?

thanks


Re: [Axis2] - upgrading from [Axis1.3]

2005-12-07 Thread Chathura Herath
Forwarding to the list. It was my fault to hit reply and send only to
Simon. I am not sure of the Java2WSDL satus right now. May be ajith
would know better.
Chathura

On 12/8/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> Thanks for your time to look into it. I thought my change to the wsdl
> was too dumb to work but if I keep hacking my wsdl file without
> understanding what I am doing I am most likely going to wreck it. In the
> schema section I changed the "soapens:string" to "xsd:string" but I dont
> know how to convert the "array" types. Is there more documentation that
> I should be looking into or some other way? The only wsdl sample is
> Axis2SampleDocLit.wsdl.
>
> As I understand there is no Java2WSDL for Axis2 (yet).
>
> Sorry to keep with new questions but I'm a bit lost with what to try
> next...
>
> Surely people dont create wsdl by hand so where do Axis2 compliant
> wsdls come from?
> How do I start from just a class (.java) and build the wsdl, server &
> client for Axis2 like I did with Axis 1.3 (1.2 when I started)?
> If Web Services are to be interoperable - i.e. a Axis2 client using an
> Axis 1.3 server - how come the WSDL doesn't work as is?
> Is this just a question of time to finish Axis2 ?
>
> Regards,
>
> Simon.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> Chathura Herath <[EMAIL PROTECTED]> 12/08/05 02:39pm >>>
> I am sorry that wouldnt work. You need to get rid of all the soapenc:
> types in the schema section. We use xml beans for databingding it
> cannot handle soap encoding. Though you have simply change the use
> from thm encoded to literal the semantic description of your data in
> schema is still SOAP encoded.
> Chathura
>
> On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > Original WSDL and edited are attached. The original was generated by
> > Axis 1.3. All I did was substitute "encoded" for "literal" and
> changed
> > nothing else.
> >
> > My understanding of all this is pretty limited although I got my
> Axis
> > 1.3 service and client to work OK.
> >
> > Your help is most appreciated.
> >
> > Cheers,
> >
> > Simon.
> >
> >
> > Simon McMahon
> >
> > Work: (07) 31311420
> > Mobile: (043) 2294180
> >
> >
> > >>> [EMAIL PROTECTED] 12/08/05 01:56pm >>>
> > Doesn't seem right. Pls attach the edited WSDL.
> > Literal means the type is fully described by schema: Encoded mean
> the
> > semantics of encoding applies. If its SOAP encoding then the
> semantics
> > of SOAP encoding is used other than xsd type.
> > Chathura
> >
> > On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > > Hi again,
> > >
> > > I hacked up my Axis 1.3 generated wsdl and changed all
> > >  > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > > namespace="urn:qh" use="encoded"/>
> > > to
> > >  > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > > namespace="urn:qh" use="literal"/>
> > > based on the WSDL2Java error
> > > : java.lang.RuntimeException: The use 'encoded' is not
> > > supported!
> > >
> > > I have no idea what that means but now WSDL2Java runs to
> completion
> > and
> > > generates a whole bunch of files.
> > >
> > > What is the difference between "encoded" and "literal"?
> > > Why is all the standard 'databinding' source plugged into my
> package
> > ?
> > > Surely this will bloat the size of every web service.
> > >
> > > Also, my original Service method:
> > > public Provider[] getProvider(String name, String
> > providerId,
> > > String orgName, String locationId, int maxResults) throws
> Exception
> > > became:
> > > /**
> > >  * Auto generated method signatures
> > >  * @param param68
> > >  */
> > >  public org.apache.axis2.om.OMElement getProvider(
> > > org.apache.axis2.om.OMElement param68) throws
> > java.rmi.RemoteException;
> > >
> > > The only bit that stayed the same is the method name. How can the
> > > stub/skeleton for the same web service be so different?
> > > Is there more I need to do to the WSDL to make it generate a
> proper
> > > interface and skeleton service?
> > >
> > > Regards,
> > >
> > > Simon.
> > >
> > >
> > > Simon McMahon
> > >
> > > Work: (07) 31311420
> > > Mobile: (043) 2294180
> > >
> > >
> > > >>> [EMAIL PROTECTED] 12/07/05 04:29pm >>>
> > > That would be it - all the samples use "services.xml". The
> > > documentation
> > > is correct on this too. Must just have been M2 that got it wrong
> (or
> > > just me :).
> > >
> > > > Blind guess. Check whether the dir of the aar name is META-INF.
> > > > "meta-inf" might not work
> > > > Chathura
> > >
> > > This was also correct - "meta-inf" did not work either. It was
> tough
> > > to
> > > get right because WinZip shows all UPPERCASE names in lowercase by
> > > default.
> > >
> > > The Axis2 Exception does not include the "META-INF" part of the
> name
> > > that is obviously significant. The documentation looks OK though.
> > >
> > > -
> > > Now 

RE: Newbie Question

2005-12-07 Thread Sanjay Gupta
This is from the user guide.  You need to add beanMapping tag in your
deployment descriptor for this object.

This is from the user guide
Encoding Your Beans - the BeanSerializer
Axis includes the ability to serialize/deserialize, without writing any
code, arbitrary Java classes which follow the standard JavaBean pattern
of get/set accessors. All you need to do is tell Axis which Java classes
map to which XML Schema types. Configuring a bean mapping looks like
this:

The  tag
maps a Java class (presumably a bean) to an XML QName. You'll note that
it has two important attributes, qname and languageSpecificType. So in
this case, we'd be mapping the "my.java.thingy" class to the XML QName
[someNamespace]:[local].

Let's take a look at how this works in practice. Go look at
samples/userguide/example5/BeanService.java. The key thing to notice is
that the argument to the service method is an Order object. Since Order
is not a basic type which Axis understands by default, trying to run
this service without a type mapping will result in a fault. (If you want
to try this for yourself, you can use the bad-deploy.wsdd file in the
example5 directory.) But if we put a beanMapping into our deployment,
all will be well. Here's how to run this example (from the example5
directory):

% java org.apache.axis.client.AdminClient -llocal:///AdminService
deploy.wsdd
Done processing

% java samples.userguide.example5.Client -llocal://
Hi, Glen Daniels!

You seem to have ordered the following:

1 of item : mp3jukebox
4 of item : 1600mahBattery

If this had been a real order processing system, we'd probably have
charged
you about now.
%


-Original Message-
From: Indra Syafruddin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 8:43 PM
To: axis-user@ws.apache.org
Subject: Newbie Question

Hello, I am new in using Axis
I have one newbie question, can Axis return Object?

I tried to make web services that returns Vector (with String value),
it runs ok.
But when I put Object in the Vector and return it, there's always error
:

AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Premature end of file.
...

do anyone know how to solve the problem?

plus, do anyone know any axis book or tutorial I can download?

thanks


Newbie Question

2005-12-07 Thread Indra Syafruddin
Hello, I am new in using Axis
I have one newbie question, can Axis return Object?

I tried to make web services that returns Vector (with String value),
it runs ok.
But when I put Object in the Vector and return it, there's always error :

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Premature end of file.
...

do anyone know how to solve the problem?

plus, do anyone know any axis book or tutorial I can download?

thanks


Re: [Axis2] - upgrading from [Axis1.3]

2005-12-07 Thread Simon McMahon
Original WSDL and edited are attached. The original was generated by
Axis 1.3. All I did was substitute "encoded" for "literal" and changed
nothing else.

My understanding of all this is pretty limited although I got my Axis
1.3 service and client to work OK.

Your help is most appreciated.

Cheers,

Simon.


Simon McMahon

Work: (07) 31311420
Mobile: (043) 2294180


>>> [EMAIL PROTECTED] 12/08/05 01:56pm >>>
Doesn't seem right. Pls attach the edited WSDL.
Literal means the type is fully described by schema: Encoded mean the
semantics of encoding applies. If its SOAP encoding then the semantics
of SOAP encoding is used other than xsd type.
Chathura

On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I hacked up my Axis 1.3 generated wsdl and changed all
>  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> namespace="urn:qh" use="encoded"/>
> to
>  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> namespace="urn:qh" use="literal"/>
> based on the WSDL2Java error
> : java.lang.RuntimeException: The use 'encoded' is not
> supported!
>
> I have no idea what that means but now WSDL2Java runs to completion
and
> generates a whole bunch of files.
>
> What is the difference between "encoded" and "literal"?
> Why is all the standard 'databinding' source plugged into my package
?
> Surely this will bloat the size of every web service.
>
> Also, my original Service method:
> public Provider[] getProvider(String name, String
providerId,
> String orgName, String locationId, int maxResults) throws Exception
> became:
> /**
>  * Auto generated method signatures
>  * @param param68
>  */
>  public org.apache.axis2.om.OMElement getProvider(
> org.apache.axis2.om.OMElement param68) throws
java.rmi.RemoteException;
>
> The only bit that stayed the same is the method name. How can the
> stub/skeleton for the same web service be so different?
> Is there more I need to do to the WSDL to make it generate a proper
> interface and skeleton service?
>
> Regards,
>
> Simon.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> [EMAIL PROTECTED] 12/07/05 04:29pm >>>
> That would be it - all the samples use "services.xml". The
> documentation
> is correct on this too. Must just have been M2 that got it wrong (or
> just me :).
>
> > Blind guess. Check whether the dir of the aar name is META-INF.
> > "meta-inf" might not work
> > Chathura
>
> This was also correct - "meta-inf" did not work either. It was tough
> to
> get right because WinZip shows all UPPERCASE names in lowercase by
> default.
>
> The Axis2 Exception does not include the "META-INF" part of the name
> that is obviously significant. The documentation looks OK though.
>
> -
> Now I get:
>
> This Web axisService has deployment faults
>
> Error: org.apache.axis2.deployment.DeploymentException: null; nested
> exception is: java.lang.ClassCastException at
>
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:216)
> at
>
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:510)
> at
>
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:228)
> at
> ...
>
> Full exception attached.
>
> 
> I have a .wsdl (as generated by Axis 1.3 - attached) so I try to run
> WSDL2Java.
>
> c:> WSDL2Java -uri ProviderService.wsdl -ss -sd -o src2 -p
> au.gov.qld.health.s8online.providerdir
>
> It creates 'src2' (empty) and outputs:
>
> schemaElement = [xsd:schema: null]
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: The use 'encoded' is not supported!
> at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: The use 'encoded' is not
> supported!
> at
>
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBeansExtension.java:334)
> at
>
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
> ibility(XMLBeansExtension.java:319)
> at
>
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
> at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
> ... 2 more
>
> Any suggestions?
>
> I already tried the sample which worked OK:
> WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o
> ..\samples\src -p org.apache.axis2.userguide
>
> Without a Java2WSDL I dont think I can try another approach than
using
> the wsdl from Axis 1.3.
>
> Thanks.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> [EMAIL PROTECTED] 12/07/05 02:21pm >>>
> try renaming the service.xml with services

Re: [Axis2] - upgrading from [Axis1.3]

2005-12-07 Thread Chathura Herath
Doesn't seem right. Pls attach the edited WSDL.
Literal means the type is fully described by schema: Encoded mean the
semantics of encoding applies. If its SOAP encoding then the semantics
of SOAP encoding is used other than xsd type.
Chathura

On 12/7/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I hacked up my Axis 1.3 generated wsdl and changed all
>  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> namespace="urn:qh" use="encoded"/>
> to
>  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> namespace="urn:qh" use="literal"/>
> based on the WSDL2Java error
> : java.lang.RuntimeException: The use 'encoded' is not
> supported!
>
> I have no idea what that means but now WSDL2Java runs to completion and
> generates a whole bunch of files.
>
> What is the difference between "encoded" and "literal"?
> Why is all the standard 'databinding' source plugged into my package ?
> Surely this will bloat the size of every web service.
>
> Also, my original Service method:
> public Provider[] getProvider(String name, String providerId,
> String orgName, String locationId, int maxResults) throws Exception
> became:
> /**
>  * Auto generated method signatures
>  * @param param68
>  */
>  public org.apache.axis2.om.OMElement getProvider(
> org.apache.axis2.om.OMElement param68) throws java.rmi.RemoteException;
>
> The only bit that stayed the same is the method name. How can the
> stub/skeleton for the same web service be so different?
> Is there more I need to do to the WSDL to make it generate a proper
> interface and skeleton service?
>
> Regards,
>
> Simon.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> [EMAIL PROTECTED] 12/07/05 04:29pm >>>
> That would be it - all the samples use "services.xml". The
> documentation
> is correct on this too. Must just have been M2 that got it wrong (or
> just me :).
>
> > Blind guess. Check whether the dir of the aar name is META-INF.
> > "meta-inf" might not work
> > Chathura
>
> This was also correct - "meta-inf" did not work either. It was tough
> to
> get right because WinZip shows all UPPERCASE names in lowercase by
> default.
>
> The Axis2 Exception does not include the "META-INF" part of the name
> that is obviously significant. The documentation looks OK though.
>
> -
> Now I get:
>
> This Web axisService has deployment faults
>
> Error: org.apache.axis2.deployment.DeploymentException: null; nested
> exception is: java.lang.ClassCastException at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:216)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:510)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:228)
> at
> ...
>
> Full exception attached.
>
> 
> I have a .wsdl (as generated by Axis 1.3 - attached) so I try to run
> WSDL2Java.
>
> c:> WSDL2Java -uri ProviderService.wsdl -ss -sd -o src2 -p
> au.gov.qld.health.s8online.providerdir
>
> It creates 'src2' (empty) and outputs:
>
> schemaElement = [xsd:schema: null]
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: The use 'encoded' is not supported!
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: The use 'encoded' is not
> supported!
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBeansExtension.java:334)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
> ibility(XMLBeansExtension.java:319)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
> ... 2 more
>
> Any suggestions?
>
> I already tried the sample which worked OK:
> WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o
> ..\samples\src -p org.apache.axis2.userguide
>
> Without a Java2WSDL I dont think I can try another approach than using
> the wsdl from Axis 1.3.
>
> Thanks.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> [EMAIL PROTECTED] 12/07/05 02:21pm >>>
> try renaming the service.xml with services.xml. This was changed in
> the
> last
> release but I'm afraid it's not provided with enough documentation
>
> On 12/7/05, Chathura Herath <[EMAIL PROTECTED]> wrote:
> >
> > Sorry i didnt notice that you are using M2.
> > Chathura
> >
> > On 12/6/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > > For some reason I thought M2 was the most recent ???
> > > I have now installed 0.93 so I will try again. I see al

Re: Async web service

2005-12-07 Thread Eran Chinthaka
I think you are referring to WSDL2Java not Java2WSDL.

I'm not sure about Axis 1.x, but you can definitely do this with Axis2.

Chinthaka

Brosca Diana wrote:

>Hello 
>
>I'm implementing a asynchronous web service: in the wsdl I have only the
>input. 
>
>Can I use the  JAVA2WSDL tool for generate the class that implements the
>service?
>
> 
>
>Thanks in advance
>
>Diana
>
> 
>
> 
>
>
>  
>



Re: RE: Can you have more then one client handler

2005-12-07 Thread GEORGE MCKINNEY

Pratik,

We've used a client-config.wsdd file to specify two handlers for the outgoing 
side of things and one for incoming.

I'll try to remember to send more information tomorrow when I have access to 
the file we used.

George McKinney

- Original Message -
From: "Parikh,Pratik" <[EMAIL PROTECTED]>
Date: Wednesday, December 7, 2005 3:34 pm
Subject: RE: Can you have more then one client handler

> Can anyone reply to this??
> 
> 
> Thanks,
> Parikh, Pratik
> 
> 
> 
> From: Parikh,Pratik [EMAIL PROTECTED] 
> Sent: Wednesday, December 07, 2005 10:02 AM
> To: axis-user@ws.apache.org
> Subject: Can you have more then one client handler
> 
> 
> 
> Hi Everyone, 
> 
>I have two handler in my client stub, one for logging out messages
> to MQ and second is for CommonsHTTPSender. Now the problem I am 
> runninginto is that it only allow me to have one handler. Is there 
> anyway I can
> run both, please let me know?
> 
> Thanks, 
> Pratik 
> 
> CONFIDENTIALITY NOTICE
> 
> This message and any included attachments
> are from Cerner Corporation and are intended
> only for the addressee. The information
> contained in this message is confidential and
> may constitute inside or non-public information
> under international, federal, or state
> securities laws. Unauthorized forwarding,
> printing, copying, distribution, or use of such
> information is strictly prohibited and may be
> unlawful. If you are not the addressee, please
> promptly delete this message and notify the
> sender of the delivery error by e-mail or you
> may call Cerner's corporate offices in Kansas
> City, Missouri, U.S.A at (+1) (816)221-1024.
>  --
>   
> 



Re: [Axis2] - upgrading from [Axis1.3]

2005-12-07 Thread Simon McMahon
Hi again,

I hacked up my Axis 1.3 generated wsdl and changed all 
http://schemas.xmlsoap.org/soap/encoding/";
namespace="urn:qh" use="encoded"/>
to
http://schemas.xmlsoap.org/soap/encoding/";
namespace="urn:qh" use="literal"/>
based on the WSDL2Java error
: java.lang.RuntimeException: The use 'encoded' is not
supported!

I have no idea what that means but now WSDL2Java runs to completion and
generates a whole bunch of files.

What is the difference between "encoded" and "literal"?
Why is all the standard 'databinding' source plugged into my package ?
Surely this will bloat the size of every web service.

Also, my original Service method:
public Provider[] getProvider(String name, String providerId,
String orgName, String locationId, int maxResults) throws Exception
became:
/**
 * Auto generated method signatures
 * @param param68
 */
 public org.apache.axis2.om.OMElement getProvider(
org.apache.axis2.om.OMElement param68) throws java.rmi.RemoteException;

The only bit that stayed the same is the method name. How can the
stub/skeleton for the same web service be so different?
Is there more I need to do to the WSDL to make it generate a proper
interface and skeleton service?

Regards,

Simon.


Simon McMahon

Work: (07) 31311420
Mobile: (043) 2294180


>>> [EMAIL PROTECTED] 12/07/05 04:29pm >>>
That would be it - all the samples use "services.xml". The
documentation
is correct on this too. Must just have been M2 that got it wrong (or
just me :).

> Blind guess. Check whether the dir of the aar name is META-INF.
> "meta-inf" might not work
> Chathura

This was also correct - "meta-inf" did not work either. It was tough
to
get right because WinZip shows all UPPERCASE names in lowercase by
default.

The Axis2 Exception does not include the "META-INF" part of the name
that is obviously significant. The documentation looks OK though.

-
Now I get:

This Web axisService has deployment faults

Error: org.apache.axis2.deployment.DeploymentException: null; nested
exception is: java.lang.ClassCastException at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:216)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:510)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:228)
at 
...

Full exception attached.


I have a .wsdl (as generated by Axis 1.3 - attached) so I try to run
WSDL2Java.

c:> WSDL2Java -uri ProviderService.wsdl -ss -sd -o src2 -p
au.gov.qld.health.s8online.providerdir

It creates 'src2' (empty) and outputs:

schemaElement = [xsd:schema: null]
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: The use 'encoded' is not supported!
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: The use 'encoded' is not
supported!
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBeansExtension.java:334)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
ibility(XMLBeansExtension.java:319)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
... 2 more

Any suggestions?

I already tried the sample which worked OK:
WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o
..\samples\src -p org.apache.axis2.userguide

Without a Java2WSDL I dont think I can try another approach than using
the wsdl from Axis 1.3.

Thanks.


Simon McMahon

Work: (07) 31311420
Mobile: (043) 2294180


>>> [EMAIL PROTECTED] 12/07/05 02:21pm >>>
try renaming the service.xml with services.xml. This was changed in
the
last
release but I'm afraid it's not provided with enough documentation

On 12/7/05, Chathura Herath <[EMAIL PROTECTED]> wrote:
>
> Sorry i didnt notice that you are using M2.
> Chathura
>
> On 12/6/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > For some reason I thought M2 was the most recent ???
> > I have now installed 0.93 so I will try again. I see already that
I
> > should let the tools generate the service.xml and not try to write
it by
> > hand.
> >
> > You obviously have been busy since M2 :-).
> >
> > Thanks,
> >
> > Simon.
> >
> >
> > Simon McMahon
> >
> > Work: (07) 31311420
> > Mobile: (043) 2294180
> >
> >
> > >>> [EMAIL PROTECTED] 12/07/05 11:47am >>>
> > I think Deepal fixed this in later releases.
> >
> > BTW, Simon, we have come a long long way since M2. The latest 0.93
> > version is much more flexible, stable, feature rich and blah blah
blah
> > than M2 (Obviously).
> >
> > So please try to play with 0.93 

Re: Creating a WS client, where to start?

2005-12-07 Thread Dies Koper

Hello Håkon,

pretty please does help. Did you look at Axis' JUnit tests?

test\wsdl\stubheaders

Regards,
Dies


Håkon T Sønderland wrote:

Håkon T Sønderland wrote:



I am trying to use Axis to create a WS client consuming an
existing web service.

I've read all the newbie tutorial I could find, but the all seem
to be on the "hello world" level and think I understand what they
do.  But, trying to this with the web service I need, I get very
confused.

I'm using Axis 1.2.1 and Java 1.4.

I generate the client code using WSDL2Java such:

java org.apache.axis.wsdl.WSDL2Java -t -s \ 
"https://www.creditinform.biz/CreditInform.StandardWebservice.WS2005207/InfoXML.asmx?wsdl"; 



I now get among the stuff here a class called Header, which contains
username, password etc.

I think this should be used for setting up the username etc.  But how?

I generated the JUnit test class (-t parameter) hoping it would give me
a clue as to how to use the Header class, but it does not reference it
at all.  Needless to say none of the tutorial have anything like this.



OK, noone wanted to answer this so here is what I've found so far.

The Axis FAQ says:

"How do I set a header when using WSDL2Java stubs?

There are two styles of headers, explicit and implicit. Explicit 
headers are defined in the WSDL of the service. The WSDL2Java generation 
tool will recognize these headers in most cases and emit stub class 
methods that include the headers as arguments to the methods.


In other cases, you may want to set headers that are not explicitly 
called out in the WSDL. For instance, you want to do some custom 
processing in a handler or add security. In this case you can add

headers to request before you invoke the stub method."

What happens here is that the WSDL has information on the header, thus:

  
  

  type="s:string"/>
  type="s:string"/>
  type="s:string"/>
  type="s:string"/>
  type="s:string"/>


  
  

this is referenced later:

  

  
  

  
  

  

However WSDL2Java does not "emit stub class methods that include the
headers as arguments to the methods" as the FAQ suggests.

Question: Is there anything wrong with the WSDL?
(the WSDL validates btw)

Does it help if I say pretty please?

Håkon





Inherited classes do not show up in the wsdl (Axis 1.3)

2005-12-07 Thread Mahesh Seshan
Hello,

I have integrated Axis 1.3 into our web-app (Embedded Tomcat 5.5.12).
I followed through the documented procedure of creating
MY_APP.wsdl,deploying it and all that worked great. However, the
inherited classes do not show up when I get the wsdl from the deployed
service i.e

http://host:port/axis/services/MY_APP?wsdl

However, I checked MY_APP.wsdl and server-config.wsdd and they have
correct information about my inherited classes.

Any insight will be greatly appreciated.

-Mahesh


RE: Can you have more then one client handler

2005-12-07 Thread Parikh,Pratik
Title: Can you have more then one client handler



Can anyone reply to this??
 
Thanks,
Parikh, Pratik


From: Parikh,Pratik 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 
10:02 AMTo: axis-user@ws.apache.orgSubject: Can you have 
more then one client handler

Hi Everyone, 
    I have two handler in my client 
stub, one for logging out messages to MQ and second is for CommonsHTTPSender. 
Now the problem I am running into is that it only allow me to have one handler. 
Is there anyway I can run both, please let me know?
Thanks, Pratik 

  
  
CONFIDENTIALITY NOTICEThis 
  message and any included attachmentsare from Cerner Corporation and 
  are intendedonly for the addressee. The informationcontained in 
  this message is confidential andmay constitute inside or non-public 
  informationunder international, federal, or statesecurities laws. 
  Unauthorized forwarding,printing, copying, distribution, or use of 
  suchinformation is strictly prohibited and may beunlawful. If you 
  are not the addressee, pleasepromptly delete this message and notify 
  thesender of the delivery error by e-mail or youmay call Cerner's 
  corporate offices in KansasCity, Missouri, U.S.A at (+1) 
  (816)221-1024. 
  --


Superfluous namespaces and Axis (axis 1.4 nightly release)

2005-12-07 Thread Dovholuk, Clint
Hello all,

I was wondering why Axis seems to add a namespace declaration to pretty
much every element when it marshals an object.

It makes the messages larger then they really need to be... I'm not
"complaining" so much as wondering...

Thanks to all ( example below )
-Clint

I keep getting return objects like:

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

  http://www.globalcrossing.com/version_1.1";>43e8e292-0f2f-4fb0
-a587-c6cc4bc73036
  http://www.globalcrossing.com/version_1.1";>id-001


  http://www.globalcrossing.com/version_1.1";>Product
  http://www.globalcrossing.com/version_1.1";>1234567890
  http://www.globalcrossing.com/version_1.1";>1
  http://www.globalcrossing.com/version_1.1";>2

  

  




(note the extra namespace qualifications)

when this is also perfectly valid (and ~50% the size)

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

  43e8e292-0f2f-4fb0-a587-c6cc4bc73036
  id-001


  Product
  1234567890
  1
  2

  

  




Re: Creating a WS client, where to start?

2005-12-07 Thread Håkon T Sønderland

Håkon T Sønderland wrote:


I am trying to use Axis to create a WS client consuming an
existing web service.

I've read all the newbie tutorial I could find, but the all seem
to be on the "hello world" level and think I understand what they
do.  But, trying to this with the web service I need, I get very
confused.

I'm using Axis 1.2.1 and Java 1.4.

I generate the client code using WSDL2Java such:

java org.apache.axis.wsdl.WSDL2Java -t -s \ 
"https://www.creditinform.biz/CreditInform.StandardWebservice.WS2005207/InfoXML.asmx?wsdl"; 



I now get among the stuff here a class called Header, which contains
username, password etc.

I think this should be used for setting up the username etc.  But how?

I generated the JUnit test class (-t parameter) hoping it would give me
a clue as to how to use the Header class, but it does not reference it
at all.  Needless to say none of the tutorial have anything like this.



OK, noone wanted to answer this so here is what I've found so far.

The Axis FAQ says:

"How do I set a header when using WSDL2Java stubs?

There are two styles of headers, explicit and implicit. Explicit 
headers are defined in the WSDL of the service. The WSDL2Java generation 
tool will recognize these headers in most cases and emit stub class 
methods that include the headers as arguments to the methods.


In other cases, you may want to set headers that are not explicitly 
called out in the WSDL. For instance, you want to do some custom 
processing in a handler or add security. In this case you can add

headers to request before you invoke the stub method."

What happens here is that the WSDL has information on the header, thus:

  
  

  type="s:string"/>
  type="s:string"/>
  type="s:string"/>
  type="s:string"/>
  type="s:string"/>


  
  

this is referenced later:

  

  
  

  
  

  

However WSDL2Java does not "emit stub class methods that include the
headers as arguments to the methods" as the FAQ suggests.

Question: Is there anything wrong with the WSDL?
(the WSDL validates btw)

Does it help if I say pretty please?

Håkon


Re: Setting a Cookie from a WDSL2Java Generated Client...

2005-12-07 Thread Ravi Krishnamurthy




Before creating the call object, call service.setMaintainSession(true).

Brian Conneen wrote:

  
  Hi,
  
  
I'm currently using Axis 1.3.
   
  I used the WSDL2Java to Generate a Client for
an existing Webservice.
   
  The Webservice is behind a third party
authentication mechanism.
   
  In order to get passed the authentication
mechanism I need to pass in a HTTP Basic Auth and a Cookie.
   
  I've been able to get the HTTP Basic Auth
working.
   
  But no matter what I can't get the cookie set.
   
  I've tried going directly into the generated
Stub and adding
   
  _call.setProperty(HTTPConstants.HEADER_COOKIE,myCookieValue);
   
  But when I introspect the request using a TCP
Tracer I can see the Auth is in the header but the cookie isn't.
   
  I've seen other posts to the mailing list
where the above method worked.  Is something different when using a
WSDL2Java generated client? Or is it possible that something in 1.3 is
different?
   
  Thanks,
   
  
  
  
  Brian Conneen
  
  
  







Setting a Cookie from a WDSL2Java Generated Client...

2005-12-07 Thread Brian Conneen


Hi,
I'm currently using Axis 1.3.
 
I used the WSDL2Java to Generate a Client for an existing Webservice.
 
The Webservice is behind a third party authentication mechanism.
 
In order to get passed the authentication mechanism I need to pass in a HTTP Basic Auth and a Cookie.
 
I've been able to get the HTTP Basic Auth working.
 
But no matter what I can't get the cookie set.
 
I've tried going directly into the generated Stub and adding
 
_call.setProperty(HTTPConstants.HEADER_COOKIE,myCookieValue);
 
But when I introspect the request using a TCP Tracer I can see the Auth is in the header but the cookie isn't.
 
I've seen other posts to the mailing list where the above method worked.  Is something different when using a WSDL2Java generated client? Or is it possible that something in 1.3 is different?
 
Thanks,
 

Brian Conneen

Re: Performance When Reading Attachments

2005-12-07 Thread Davanum Srinivas
See http://issues.apache.org/jira/browse/AXIS-2221 there is support
for streaming attachments.

thanks,
dims

On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
>
> Can anyone help me with this at all?
>
> I'm considering using the current CVS build to see if any improvements
> have been made.
>
> Like, I've heard about streaming attachments - they sound good - if I can
> work out how to use them.
>
> But this is a critical area for my application, so if anyone has any
> performance hints for DIME attachments at all  I'd really appreciate it.
>
>
> James
>
>
>
>
> [EMAIL PROTECTED]
> 06/12/2005 14:39
> Please respond to
> axis-user@ws.apache.org
>
>
> To
> axis-user@ws.apache.org
> cc
>
> Subject
> Performance When Reading Attachments
>
>
>
>
>
>
> Hi
>
> I'm really hoping someone can finally solve this for me.
>
> When I receive a message with a DIME Attachement, I get my Message object
> back quite quickly, but it takes ages for it to read the attachments from
> the message.
>
> I considered that this could be because it's waiting for the attachments,
> but unfortunatly, I can't work out how to just read the attachments
> straight away.
>
> Has anyone had this problem or found the solution?
>
> I am using Axis for my client, and someone else is using a C++ GSOAP
> client, and they get the data in no time.
> So any help in improving attachement performance would be appreciated .
>
>
> Thanks
> James
>
>
> This email is intended solely for the use of the named addressee(s). Any
> unauthorised disclosure, copying or distribution of the confidential
> information contained therein, or the taking of any action based on it, is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


RE: Newbie question: Standard services do not show up

2005-12-07 Thread philippe . soares



Hello 
Giuliana,
I had 
the same problem a few times. This generally happens in my case when I have an 
error in a webservice and use automated ant tasks to deploy the service to the 
server...
In my 
case, I use Tomcat. When the shutdown is not done properly, after restarting 
tomcat, I have two running instances that conflict with each 
other.
My 
solution is generally to stop all tomcat processes manually (eventually by going 
to the tomcat bin directory and launch "catalina.sh stop"), delete the lines of 
the webservice I'm developing in server-config.wsdd manually, and restart Tomcat 
as usual...
 
I hope 
this helps finding any hints...
 
Regards,
 
Philippe

  -Message d'origine-De : Giuliana Alcantara 
  [mailto:[EMAIL PROTECTED]Envoyé : mercredi 7 décembre 2005 
  18:59À : axis-user@ws.apache.orgObjet : Newbie 
  question: Standard services do not show up
  Hi,
   
  I know this must be a very simple problem, but I can't see any services 
  in the services list. It's only the heading "And now...some services" and then 
  a blank page. Could anyone help me out there?
   
  For information:
  - the start page works fine (http://127.0.0.1:8080/axis/), so I know the webapp is 
  installed;
  - happyaxis is happy;
  - SOAP Endpoint and JWS Endpoint do work fine;
  - I have checked and rechecked my classpath several times.
   
  Thanx,
   
  Giuliana


Newbie question: Standard services do not show up

2005-12-07 Thread Giuliana Alcantara

Hi,
 
I know this must be a very simple problem, but I can't see any services in the services list. It's only the heading "And now...some services" and then a blank page. Could anyone help me out there?
 
For information:
- the start page works fine (http://127.0.0.1:8080/axis/), so I know the webapp is installed;
- happyaxis is happy;
- SOAP Endpoint and JWS Endpoint do work fine;
- I have checked and rechecked my classpath several times.
 
Thanx,
 
Giuliana


Re: [axis2] WSDL 2.0 validator and InOnlyMEPClient

2005-12-07 Thread Chathura Herath
On 12/7/05, iksrazal <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Anyone know of a WSDL 2.0 validator ?

http://incubator.apache.org/woden/
>
> Another question: Can an In-only pattern based off of complex types only be
> executed from a WSDL 2.0 based wsdl, ie, not just InOnlyMEPClient and
> Options ?
Didn't get what you mean??

Chathura

--
Chathura Herath
http://www.bloglines.com/blog/chathurah


Re: Performance When Reading Attachments

2005-12-07 Thread J . Sugrue
Hi 

Can anyone help me with this at all?

I'm considering using the current CVS build to see if any improvements 
have been made. 

Like, I've heard about streaming attachments - they sound good - if I can 
work out how to use them.

But this is a critical area for my application, so if anyone has any 
performance hints for DIME attachments at all  I'd really appreciate it. 


James




[EMAIL PROTECTED] 
06/12/2005 14:39
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Performance When Reading Attachments






Hi 

I'm really hoping someone can finally solve this for me. 

When I receive a message with a DIME Attachement, I get my Message object 
back quite quickly, but it takes ages for it to read the attachments from 
the message.

I considered that this could be because it's waiting for the attachments, 
but unfortunatly, I can't work out how to just read the attachments 
straight away. 

Has anyone had this problem or found the solution? 

I am using Axis for my client, and someone else is using a C++ GSOAP 
client, and they get the data in no time. 
So any help in improving attachement performance would be appreciated . 


Thanks 
James


This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form.



Re: Aixs 1.3 RC3

2005-12-07 Thread Davanum Srinivas
Archives are here - http://archive.apache.org/dist/ws/axis/

On 12/7/05, Kasi, Anand <[EMAIL PROTECTED]> wrote:
> Oops. Sorry. I meant to ask where I could download Axis 1.2RC3 and not
> 1.3 RC3.
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 06, 2005 10:13 PM
> To: axis-user@ws.apache.org
> Subject: Re: Aixs 1.3 RC3
>
> http://www.apache.org/dyn/closer.cgi/ws/axis/1_3/ (1.3 Final NOT RC3)
>
> On 12/6/05, Kasi, Anand <[EMAIL PROTECTED]> wrote:
> >
> >
> > Can anyone suggest where I can download Axis 1.3 RC3 binaries? The
> links
> > provided in the url below do not work for me.
> >
> > http://www.apache.org/dyn/closer.cgi/ws/axis/1_2RC3/
> >
> > Thanks,
> >  Anand
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>


--
Davanum Srinivas : http://wso2.com/blogs/


RE: Aixs 1.3 RC3

2005-12-07 Thread Kasi, Anand
Oops. Sorry. I meant to ask where I could download Axis 1.2RC3 and not
1.3 RC3. 

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 10:13 PM
To: axis-user@ws.apache.org
Subject: Re: Aixs 1.3 RC3

http://www.apache.org/dyn/closer.cgi/ws/axis/1_3/ (1.3 Final NOT RC3)

On 12/6/05, Kasi, Anand <[EMAIL PROTECTED]> wrote:
>
>
> Can anyone suggest where I can download Axis 1.3 RC3 binaries? The
links
> provided in the url below do not work for me.
>
> http://www.apache.org/dyn/closer.cgi/ws/axis/1_2RC3/
>
> Thanks,
>  Anand


--
Davanum Srinivas : http://wso2.com/blogs/


Can you have more then one client handler

2005-12-07 Thread Parikh,Pratik
Title: Can you have more then one client handler






Hi Everyone,


    I have two handler in my client stub, one for logging out messages to MQ and second is for CommonsHTTPSender. Now the problem I am running into is that it only allow me to have one handler. Is there anyway I can run both, please let me know?

Thanks,

Pratik




CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
 --


RE: java.io.IOException: while Running WSDL2Java...

2005-12-07 Thread Serkan Sunel

I could solve problem...

The problem was : imported schema's namespace and wsdl's namespace was
different.. 

Thanks for your help,,,

-Original Message-
From: Christian Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 5:39 PM
To: axis-user@ws.apache.org
Subject: Re: java.io.IOException: while Running WSDL2Java...

Hi,

**you are using a type definition with the name ArrayOfAAObject (in your

message definition or in your types definition) which is not reachable.
Post your wsdl if you will not solve the problem yourself.

Christian

Serkan Sunel schrieb:

> Anybody knows what causes to this exception while Running WSDL2Java
???
>
>  
>
> *java.io.IOException: Type* {http://www.someurl}ArrayOfAAObject *is 
> referenced but not defined.*
>
> at 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTab
le.java:652)
>
> at 
> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532)
>
> at 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5
06)
>
> at 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
83)
>
> at 
> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
>
> at java.lang.Thread.run(Thread.java:534)
>
>  
>
>

>
> *From:* Xinjun Chen [mailto:[EMAIL PROTECTED]
> *Sent:* Monday, December 05, 2005 8:31 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Can i call web service in side my web service
>
>  
>
> Why not consider Axis client package? It provides dynamic invocation 
> interface.
>
>  
>
> But I haven't figured out is how to use the client package to invoke 
> document style services.
>
>  
>
> I am wondering whether Axis client package will support 
> interoperability between different styles of services by providing 
> client functions to probe the style of a remote service and the client

> package to call the service according to the returned service style. 
> In this way, the client will no longer need to worry about the remote 
> service style.
>
>  
>
> Regards,
>
> Xinjun
>
>  
>
> On 12/2/05, *Guy Rixon* <[EMAIL PROTECTED] >

> wrote:
>
> Yes, we (AstroGrid ) do that habitually. We put the stubs for service
B
> inside service A and the stubs for service C inside service B.
>
> It works well, provided that the stubs called inside a given service
are
> generated with the same Axis version as the axis jars in that 
> service.  I.e.,
> it's OK to have, say, axis 1.1 in service A and call service B that's 
> running
> Axis 1.3, but the stubs for B in A have to be compatible with axis
1.1.
>
> On Thu, 1 Dec 2005, Sreenivas Reddy wrote:
>
>> Yes You can call..
>>
>>
>> giribabu venugopal < [EMAIL PROTECTED] > 
> wrote:  Hi
>>
>>   Can i call web service indise my web service?
>>
>>
>>   see i have to call (provider web service) inside my web 
> service  .when provider call my web service(internall i have to call 
> their web  service is it possible?
>>
>>
>>   what issues should i consider am using axis1.2.1?
>>
>>   am calling.net  web service?
>>
>>
>>
>>
>> -
>>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
> Guy Rixon   [EMAIL PROTECTED] 
> 
> Institute of Astronomy  Tel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HA  Fax: +44-1223-337523
>
>  
>


-- 


OPITZ CONSULTING Gummersbach GmbH
Christian Schmitz -  Dipl.-Wirtschaftsinformatiker (FH)
Kirchstr. 6 - D-51647 Gummersbach
Telefon (Fax): +49 2261 6001-0 (-1139) - Mobil: +49 170 5545138
http://www.opitz-consulting.de





RE: axis2 wsdl2java issue

2005-12-07 Thread Stuart, Jay Cameron
Hi Chathura,

First off, Thanks for your help.  Believe me you, this is not
the route I would have wanted to take if it was my choice.  We are using
some Peoplesoft Applications.  We want to integrate a 3rd party system
with the PeopleSoft CRM System.  The Peoplesoft application allows for
3rd party integration through its SOAP interface.  The WSDL we started
out with is from their CRM system which I have no control over as it is
a COTS product.  Now Im just rying to figure out a way to make all this
work.  In order to create a case in the CRM system, they use an
asynchronous call to do so.  There is a WSDL for the ASYNC Request and
then the one you have seen for the response.  I myself, am still trying
to make sense of it all.

-- Jay

-Original Message-
From: Chathura Herath [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 9:26 PM
To: axis-user@ws.apache.org
Subject: Re: axis2 wsdl2java issue

Hi Jay,
I attached a wsdl from which you can code generate.

If you are looking for Notification implementation Axis2 does not
support neither BaseNotification nor BrockeredNotification as yet.

But if you simple want to send a message out to a given enpoint at
your discression write a In-only service and generate the client side.

Why did you come up with a Out-only MEP???
Chathura


On 12/6/05, Stuart, Jay Cameron <[EMAIL PROTECTED]> wrote:
> Hi Herath,
>
> Thanks for your help in this matter.  The WSDL in question is
> one that is generated automatically from PeopleSoft.  I did notice the
> problem which you just specified.  Here are the 2 definitions:
>
>
> 
> 
>  maxOccurs="1"
> minOccurs="0"
> name="AUDIT_ACTN"
> type="AUDIT_ACTNType"/>
> 
>  use="required"/>
> 
>
> AND
>
> 
> 
>  type="FieldTypesLANGUAGE_CDType"/>
>  type="FieldTypesAUDIT_ACTNType"/>
>  type="FieldTypesBASE_LANGUAGE_CDType"/>
>  type="FieldTypesMSG_SEQ_FLGType"/>
>  type="FieldTypesPROCESS_INSTANCEType"/>
>  type="FieldTypesPUBLISH_RULE_IDType"/>
>  type="FieldTypesMSGNODENAMEType"/>
> 
>  use="required"/>
> 
>
>
> Luckily for me the elements within PSCAMAMsgDataRecordType are also in
> FieldTypesPSCAMAType and since it declared as a sequence, an
> instantiation of one of this type may use zero or more of aany of the
> elements within.  So, I believe (at least I hope) I can just change
all
> the references which point to PSCAMAMsgDataRecordType to now point to
> FieldTypesPSCAMAType.
>
> I have attached the modified WSDL file.
>
> Are you saying that I cant use the Code generation tool in order to
> create code to support the notification style MEP or that axis2
doesn't
> support it at this time.  If Axis2 does support it what would I have
to
> do to get it to work properely?
>
> Thanks in advance,
>
> -- Jay
>
> -Original Message-
> From: Chathura Herath [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 05, 2005 9:27 PM
> To: axis-user@ws.apache.org
> Subject: Re: axis2 wsdl2java issue
>
> Hi Stuart,
>
> I found sometime to look at this issue.
>
> 1) There was bug and i fixed it see
> http://issues.apache.org/jira/browse/AXIS2-323
>
> 2) The WSDL you have has only a output parameter. So its a Out-Only
MEP.
> The Axis2 code generation cannot code generate the out only MEPs on
the
> fly. Reason being there are other semantics involved, such as what
> triggers the service and so fourth. We do have done some work on this,
> if you are interested..
>
> 3) Even with the resolved latest checkout you will not be able to code
> generate because i believe your schema is wrong. I am not a schema
> expert but in line 29 and  type="FieldTypesPSCAMAType"/> line 717  type="PSCAMAMsgDataRecordType"/>
>
> you have the element with the same name of with the types are
different.
> I tried with another xml editor and it couldn't compile this either.
>
> Thanks
> Chathura
>
> On 12/5/05, Stuart, Jay Cameron <[EMAIL PROTECTED]> wrote:
> > Ok...I have attached the wsdl and pasted the stack trace below.
> >
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > : java.lang.NullPointerException
> > at
> >
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > ationEngine.java:104)
> > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > Caused by: java.lang.NullPointerException
> > at
> >
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBean
> > sExtension.java:270)
> > at
> >
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
>

Re: java.io.IOException: while Running WSDL2Java...

2005-12-07 Thread Christian Schmitz

Hi,

**you are using a type definition with the name ArrayOfAAObject (in your 
message definition or in your types definition) which is not reachable.

Post your wsdl if you will not solve the problem yourself.

Christian

Serkan Sunel schrieb:


Anybody knows what causes to this exception while Running WSDL2Java ???

 

*java.io.IOException: Type* {http://www.someurl}ArrayOfAAObject *is 
referenced but not defined.*


at 
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:652)


at 
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532)


at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506)


at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:483)


at 
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)


at java.lang.Thread.run(Thread.java:534)

 




*From:* Xinjun Chen [mailto:[EMAIL PROTECTED]
*Sent:* Monday, December 05, 2005 8:31 AM
*To:* axis-user@ws.apache.org
*Subject:* Re: Can i call web service in side my web service

 

Why not consider Axis client package? It provides dynamic invocation 
interface.


 

But I haven't figured out is how to use the client package to invoke 
document style services.


 

I am wondering whether Axis client package will support 
interoperability between different styles of services by providing 
client functions to probe the style of a remote service and the client 
package to call the service according to the returned service style. 
In this way, the client will no longer need to worry about the remote 
service style.


 


Regards,

Xinjun

 

On 12/2/05, *Guy Rixon* <[EMAIL PROTECTED] > 
wrote:


Yes, we (AstroGrid ) do that habitually. We put the stubs for service B
inside service A and the stubs for service C inside service B.

It works well, provided that the stubs called inside a given service are
generated with the same Axis version as the axis jars in that 
service.  I.e.,
it's OK to have, say, axis 1.1 in service A and call service B that's 
running

Axis 1.3, but the stubs for B in A have to be compatible with axis 1.1.

On Thu, 1 Dec 2005, Sreenivas Reddy wrote:


Yes You can call..


giribabu venugopal < [EMAIL PROTECTED] > 

wrote:  Hi


  Can i call web service indise my web service?


  see i have to call (provider web service) inside my web 
service  .when provider call my web service(internall i have to call 
their web  service is it possible?



  what issues should i consider am using axis1.2.1?

  am calling.net  web service?




-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


Guy Rixon   [EMAIL PROTECTED] 


Institute of Astronomy  Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA  Fax: +44-1223-337523

 




--


OPITZ CONSULTING Gummersbach GmbH
Christian Schmitz -  Dipl.-Wirtschaftsinformatiker (FH)
Kirchstr. 6 - D-51647 Gummersbach
Telefon (Fax): +49 2261 6001-0 (-1139) - Mobil: +49 170 5545138
http://www.opitz-consulting.de





Multiple parts in SOAP binding

2005-12-07 Thread David Bainbridge \(dbainbri\)



Does Axis2 support 
[currently or planned] multiple parts in the messages and soap bindings? I am 
attempting this with version 0.93 of Axis2 and getting a null pointer exception 
when invoking WSDL2Java on the WSDL. I have attached the 
WSDL.
 
The relevant 
portions of the WSDL are the following, with the lines is question 
highlighted ...
 
 1: 
 2:  

 3:  

 4: 
 
 5: 
 6:  
 7:  
 8:    

 9:  

10:  
11:    
12:  
13:>
 
It 
appears that the addition of the additional "part" element in the 
message [line 3] causes the [initial] null pointer exception when invoking 
WSDL2Java.
 
cheers,
/dkb


service.wsdl
Description: service.wsdl


RE: Axis 1.3 Serializaiton of derived types

2005-12-07 Thread McMullin, Gregg E.
Chirstophe
  
  Don't mean to hijack your thread.  I have the exact same
issue.  I don't really have the ability to go back to 1.2.1
to resolve this issue, but I may be able to adjust the schema.
I'd rather not, but if it my only choice I will.  I've modified
your sample just a bit.  If the following was the initial schema
that needed to be changed, how should/could it be changed?  Should
I implement a  in my RequestMessage, where the choices are
either "CommandRequestPayload" or "AltCommandRequestPayload"?  Also,
note that this issue occurs even if the abstract flag is not set.

 Thanks

 Gregg


  

  


 
  

  



  

  


  

  



  

  


  

  


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 6:08 PM
To: axis-user@ws.apache.org
Subject: RE: Axis 1.3 Serializaiton of derived types

I have the same issue as well.  Does anyone know if it is 
resolved?  If not, is the solution to go back to 1.2.1?
Thanks for any feedback.

 Gregg

>Yes, I have regenerated the code with the 1.4 drop.

>Christophe

> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 29, 2005 11:57 AM
> To: axis-user@ws.apache.org
> Subject: Re: Axis 1.3 Serialization of derived types
> 
> did you re-generate the code using 1.4? or just dropped in the jars?
> could u please log a bug with your wsdl (from which you create the
> service) and the test client (that works with the generated code?)
> 
> thanks,
> dims
> 
> On 11/29/05, Christophe Roudet <[EMAIL PROTECTED]> wrote:
> > I have just tested with axis-bin-1_4.zip and it does not fix the
> problem.
> >
> > Chirstophe
> >
> > > -Original Message-
> > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, November 29, 2005 10:23 AM
> > > To: Dovholuk, Clint
> > > Cc: axis-user@ws.apache.org
> > > Subject: Re: Axis 1.3 Serialization of derived types
> > >
> > > Nightlies are here:
> > > http://cvs.apache.org/dist/axis/nightly/
> > >
> > > thanks,
> > > dims
> > >
> > > On 11/29/05, Dovholuk, Clint <[EMAIL PROTECTED]>
> wrote:
> > > > would I need to get it from svn and build on my own or is it in the
> > > > nightly drops?
> > > >
> > > > Thanks,
> > > > cwd
> > > >
> > > > -Original Message-
> > > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, November 29, 2005 10:02 AM
> > > > To: axis-user@ws.apache.org
> > > > Subject: Re: Axis 1.3 Serialization of derived types
> > > >
> > > > I think This has been fixed in latest SVN.
> > > >
> > > > -- dims
> > > >
> > > > On 11/29/05, Dovholuk, Clint <[EMAIL PROTECTED]>
> wrote:
> > > > > Christophe,
> > > > >
> > > > > I personally had to switch back to 1.2.1 as this is a definite
> issue
> > > > > with 1.3.
> > > > >
> > > > > I've not had time to create a test case and submit a bug to jira
> > > > > though so I don't know if a bug is out there addressing this or
> not...
> > > > >
> > > > > -Clint
> > > > >
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: Christophe Roudet [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, November 28, 2005 5:48 PM
> > > > > To: axis-user@ws.apache.org
> > > > > Subject: Axis 1.3 Serialization of derived types
> > > > >
> > > > > I am using Axis 1.3 rpc/encoded.
> > > > >
> > > > > I have problem with the serialization of derived types:
> > > > >
> > > > > In the wsdl:
> > > > >
> > > > > 
> > > > >   
> > > > > 
> > > > > 
> > > > >   
> > > > >  
> > > > >
> > > > >  
> > > > >
> > > > > 
> > > > >   
> > > > >  
> > > > >
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >> > > > type="tns:Parameters"/>
> > > > >
> > > > >  
> > > > >   
> > > > > 
> > > > >
> > > > >
> > > > > When sending a message containing a CommandRequestPayload I got:
> > > > >
> > > > > ?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > > 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:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > > > > xmlns:ns1="http://www.activia.net/CCP";>
> > > > >  > > > > xmlns:ns2="http://www.activia.net/CCP/types";>
> > > > >
> > > > >   0
> > > > >   313
> > > > >xsi:type="xsd:long">0
> > > > >
> > > > >
> > > > > 
> > > > >  
> > > > >   
> > > > >
> > > > >
> > > > > The payload is not correctly serialized. It used to work fine with
> > > > > Axis
> > > > > 1.2.1:
> > > > >
> > > > >  > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema";

[axis2] Shutdown mechanism?

2005-12-07 Thread Antony Grinyer
Hi,
 
Is there a shutdown mechanism as part of axis2 that can be used to close 
resources if, for example, the servlet container such as Tomcat, containing oru 
axis2 webapp is shutdown unexpectedly? We'd like to use something like the 
ServletContextListener to listen if a shutdown occurs so we can close critical 
resources.
 
Any help/advice gratefully received.
 
Thanks,
Ant
CSW Group Ltd.
 
<>

[axis2] WSDL 2.0 validator and InOnlyMEPClient

2005-12-07 Thread iksrazal
Hi all, 

Anyone know of a WSDL 2.0 validator ? 

Another question: Can an In-only pattern based off of complex types only be 
executed from a WSDL 2.0 based wsdl, ie, not just InOnlyMEPClient and 
Options ? 

iksrazal


R: Web service with Attachment Problem

2005-12-07 Thread Brosca Diana
Title: R: Web service with Attachment Problem 





Hello Wade
Firstly thanks for your help.
Then, I'm trying to implement a web service with a WSDL as you have indicated.


The type:


    http://www.w3.org/2001/XMLSchema" targetNamespace="http://vbl.wservices.nomadic.atosorigin.com/ReceiverFileServiceInput" elementFormDefault="qualified">

        
        
            
            
        
        
    





become in java:



public class NodeDocument  implements java.io.Serializable {
    private java.lang.String name;
    private java.lang.String type;
    private byte[] content;


    public NodeDocument() {
    }


..
}



I haven't a Object type but a byte[] type. Can I use the javax.activation.DataHandler again?


Moreover, how I can read the attachment in the  ReceiverFileBindingImplClass
 that implements the web service?



public class ReceiverFileBindingImpl implements     com.atosorigin.nomadic.wservices.ReceiverFilewebservice.ReceiverFilePortType{

        public java.lang.String         receiverFileOperation(com.atosorigin.nomadic.wservices.vbl.ReceiverFileServiceInput.NodeDocument in) throws java.rmi.RemoteException, com.atosorigin.nomadic.wservices.vbl.FaultMessages.FaultMessage {

        
        return null;
    }


}


Have you a example of this?


Thanks for your help


Diana










Re: Problem with [sequence.choice.element] structure in WSDL2Java?

2005-12-07 Thread Tim R J Langford

Hello Everyone,

Thanks for your response Iksreal. Unfortunately I cannot change the 
schema because it si published and my webservice is a client of it 
(hence I have no control overs its definition). The schema is valid (if 
a slightly strange way of epxressing the structure) as far as I can see, 
but the beans generated by WSDL are incorrect I think, as it should 
produce a collection of  {URL, Text, Image} elements. Although I can 
imagine why the generation has failed due to the any allowable ordering 
of the elements.


Is this a bug? Should I submit it it to some JIRA/bug tracking mechanism?

Kind Regards,

Tim

PS: Sorry if this is a duplicate posting - we have had some problems 
with our mail servers.



iksrazal wrote:

Just a simple thought - have you thought about defining an Array in your wsdl 
and returning that? Simply create a List on the service side and use 
toArray() ? 


iksrazal

Em Terça 06 Dezembro 2005 10:20, o Tim R J Langford escreveu:
 


Greetings All,


1) I am having a problem with the WSDL2Java code generated from the
current schema element :



   
   
   
   
   
   
   
   




2) This schema represents (among other things) such messages as :


   
   
  http://www.XXX.com/1.gif
  http://www.XXX.com/2.gif
  http://www.XXX.com/3.gif
  http://www.XXX.com/4.gif
  http://www.XXX.com/5.gif
  http://www.XXX.com/6.gif
   
   



3) However the corresponding ParagraphType class generated by WSDL2Java
has the following member variables generated (which are not sets of the
corresponding elements) :

   private org.opentravel.www.OTA._2003._05.FormattedTextTextType text;
   private java.lang.String image;
   private org.apache.axis.types.URI URL;
   private org.apache.axis.types.NonNegativeInteger paragraphNumber;
// attribute

4) So when the message is unmarshalled only the final   (in this
example) is available through the accessor method of the unmarshalled
bean and the others are lost...

I have looked though the other WSDL posts on this forum but cannot seem
to find a solution. Is there are special parameter I should set when
generating the Java, or is this possibly a bug in the generator (the
schema does seem a slightly esoteric way of defining the structure)?

Any help would be greatfully appreciated because this has become a bit
of a show stopper to the project.

Thankyou for your time,

Tim