Newbie - authentication question

2005-12-07 Thread Gabriel Malik


I apologize if this question has been brought up before, but I searched and 
couldn't find relevant threads on it.


I'm working on the server side code, and trying to get the username and 
password of the current session.  I called getUserName() method from the 
IMessageData, but it returned blank name.


I'm using Axis C++ version 1.5 over Apache 2.  And using the Apache Basic 
Authentication.


Thank you,
Gabe

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement




Re: Newbie - authentication question

2005-12-07 Thread Samisa Abeysinghe

Gabriel Malik wrote:



I apologize if this question has been brought up before, but I 
searched and couldn't find relevant threads on it.


I'm working on the server side code, and trying to get the username 
and password of the current session.  I called getUserName() method 
from the IMessageData, but it returned blank name.


I'm using Axis C++ version 1.5 over Apache 2.  And using the Apache 
Basic Authentication.


Basic authenticationn support was implemented only for client side. It 
was not implemeted on server side.
I wrote some code to support it on client side, but I did not test it 
myself. Not sure if anyone have tested it.


Samisa...



Thank you,
Gabe

_
On the road to retirement? Check out MSN Life Events for advice on how 
to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement







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 :


s:complexType name=ParagraphType
   s:sequence
   s:choice minOccurs=0 maxOccurs=unbounded
   s:element minOccurs=0 maxOccurs=1 name=Text
type=s1:FormattedTextTextType/
   s:element minOccurs=0 maxOccurs=1 name=Image
type=s:string/
   s:element minOccurs=0 maxOccurs=1 name=URL
type=s:anyURI/
   /s:choice
   /s:sequence
   s:attribute name=ParagraphNumber type=s:nonNegativeInteger/
/s:complexType



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

VendorMessage Title=XXXImages Language=en InfoType=URI
   SubSection SubTitle=95 SubSectionNumber=1
   Paragraph ParagraphNumber=1
  URLhttp://www.XXX.com/1.gif/URL
  URLhttp://www.XXX.com/2.gif/URL
  URLhttp://www.XXX.com/3.gif/URL
  URLhttp://www.XXX.com/4.gif/URL
  URLhttp://www.XXX.com/5.gif/URL
  URLhttp://www.XXX.com/6.gif/URL
   /Paragraph
   /SubSection
/VendorMessage


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 URL  (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
   



 





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:


 xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema targetNamespace=http://vbl.wservices.nomadic.atosorigin.com/ReceiverFileServiceInput elementFormDefault=qualified

  xs:complexType name=NodeDocument
  xs:sequence
   xs:element name=name type=xsd:string default=Your document name/
   xs:element name=type type=xsd:string/
  xs:element name=content type=xsd:base64Binary/
  /xs:sequence
 /xs:complexType
/xs:schema




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










[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


[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.
 
winmail.dat

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 choice 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

complexType name=RequestMessage
  sequence
element name=payload type=tns:RequestPayload/
  /sequence
/complexType

complexType abstract=true name=RequestPayload 
  sequence
element name=scope type=tns:Scope/
  /sequence
/complexType

complexType name=CommandRequestPayload
  complexContent
extension base=tns:RequestPayload
  sequence
element name=commandId type=tns:Id/
element name=priority type=xsd:int/
  /sequence
/extension
  /complexContent
/complexType

complexType name=AltCommandRequestPayload
  complexContent
extension base=tns:RequestPayload
  sequence
element name=AltId  type=tns:AltId/
element name=parameters nillable=true
   type=tns:Parameters/
  /sequence
/extension
  /complexContent
/complexType

-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:

 complexType name=RequestMessage
   sequence
 element name=header type=tns:RequestHeader/
 element name=payload type=tns:RequestPayload/
   /sequence
  /complexType

 complexType abstract=true name=RequestPayload /complexType

 complexType name=CommandRequestPayload
   complexContent
  extension base=tns:RequestPayload
sequence
   element name=commandId type=tns:Id/
   element name=commandName type=tns:CommandEId/
   element name=priority type=xsd:int/
   element name=timeout type=xsd:long/
   element name=parameters nillable=true
 type=tns:Parameters/
/sequence
  /extension
   /complexContent
 /complexType


 When sending a message containing a CommandRequestPayload I got:

 ?xml version=1.0 encoding=UTF-8?
soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 

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 WSDLare the following, with the lines is question 
highlighted ...

1: message 
name="LoginEndpoint_webLogin"
2: 
part name="parameter1" element="ns2:webLoginElement" 
/
3: 
part name="parameter2" element="ns2:webLoginElement2" 
/
4: /message

5: operation 
name="webLogin"
6: soap:operation 
soapAction="webLogin" /
7: input 
name="LoginEndpoint_webLogin"
8: 
soap:body parts="parameter1 parameter2" use="literal" 
/
9: 
/input
10: output 
name="LoginEndpoint_webLoginResponse"
11: soap:body 
use="literal" /
12: /output
13:/operation

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: 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] mailto:[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] mailto:[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 http://calling.net web service?




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


Guy Rixon   [EMAIL PROTECTED] 
mailto:[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:


 xsd:complexType name=PSCAMAMsgDataRecordType
 xsd:sequence
 xsd:element
 maxOccurs=1
 minOccurs=0
 name=AUDIT_ACTN
 type=AUDIT_ACTNType/
 /xsd:sequence
 xsd:attribute fixed=R name=class
type=xsd:string
 use=required/
 /xsd:complexType

 AND

 xsd:complexType name=FieldTypesPSCAMAType
 xsd:all
 xsd:element name=LANGUAGE_CD
 type=FieldTypesLANGUAGE_CDType/
 xsd:element name=AUDIT_ACTN
 type=FieldTypesAUDIT_ACTNType/
 xsd:element name=BASE_LANGUAGE_CD
 type=FieldTypesBASE_LANGUAGE_CDType/
 xsd:element name=MSG_SEQ_FLG
 type=FieldTypesMSG_SEQ_FLGType/
 xsd:element name=PROCESS_INSTANCE
 type=FieldTypesPROCESS_INSTANCEType/
 xsd:element name=PUBLISH_RULE_ID
 type=FieldTypesPUBLISH_RULE_IDType/
 xsd:element name=MSGNODENAME
 type=FieldTypesMSGNODENAMEType/
 /xsd:all
 xsd:attribute fixed=R name=class
type=xsd:string
 use=required/
 /xsd:complexType


 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 xsd:element name=PSCAMA
 type=FieldTypesPSCAMAType/ line 717 xsd:element name=PSCAMA
 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)
  

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] mailto:[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] mailto:[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 http://calling.net web service?




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

 Guy Rixon   [EMAIL PROTECTED] 
 mailto:[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





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: 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/


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: 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: [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


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: 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/


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: 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
  
  
  







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:

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Body
submitOrderResponse
xmlns=http://www.globalcrossing.com/ifo/version_1.1;
  submitOrderReturn
createdLocations
  ns1:inputId
xmlns:ns1=http://www.globalcrossing.com/version_1.1;43e8e292-0f2f-4fb0
-a587-c6cc4bc73036/ns1:inputId
  ns2:createdId
xmlns:ns2=http://www.globalcrossing.com/version_1.1;id-001/ns2:create
dId
/createdLocations
createdActions
  ns3:productId
xmlns:ns3=http://www.globalcrossing.com/version_1.1;Product/ns3:produ
ctId
  ns4:orderNo
xmlns:ns4=http://www.globalcrossing.com/version_1.1;1234567890/ns4:or
derNo
  ns5:itemNo
xmlns:ns5=http://www.globalcrossing.com/version_1.1;1/ns5:itemNo
  ns6:itemNo
xmlns:ns6=http://www.globalcrossing.com/version_1.1;2/ns6:itemNo
/createdActions
  /submitOrderReturn
/submitOrderResponse
  /soapenv:Body
/soapenv:Envelope



(note the extra namespace qualifications)

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

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Body
submitOrderResponse
xmlns=http://www.globalcrossing.com/version_1.1;
  submitOrderReturn
createdLocations
  inputId43e8e292-0f2f-4fb0-a587-c6cc4bc73036/inputId
  createdIdid-001/createdId
/createdLocations
createdActions
  productIdProduct/productId
  orderNo1234567890/orderNo
  itemNo1/itemNo
  itemNo2/itemNo
/createdActions
  /submitOrderReturn
/submitOrderResponse
  /soapenv:Body
/soapenv:Envelope



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. 
  --


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.
  --
   
 



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