RE: Query about Axis-C version

2006-08-18 Thread Adrian Dick
Hmm...

If, as you say, you have the Axis C++ JARs available on the appropriate
paths, and using the command you originally gave, I wouldn't expect you to
see this error.

Are you using pre-build binaries?
If so, could it be the compiler/linker used to create theAxis C++ binaries
is not totally compatible with the compiler/linker you're using for your
application?


Adrian
___
Adrian Dick ([EMAIL PROTECTED])


Jacoud Bastien [EMAIL PROTECTED] wrote on 18/08/2006
09:49:51:

 Hi,
 This is one of errors I obtained:

 D:\DOCUME~1\A118733\LOCALS~1\Temp/cc0qbaaa.o(.text+0x55f):
 ConnectionException.cpp: undefined reference to `axiscpp::
 SoapFaultException::SoapFaultException()'

 All other errors look like to this one.

 Regards,
 Bastien.

 -Message d'origine-
 De : Adrian Dick [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 18 août 2006 10:40
 À : Apache AXIS C User List
 Objet : Re: Query about Axis-C version

 Hi,

 Your command looks right.  What are the specific errors you're seeing?

 Regards.
 Adrian
 ___
 Adrian Dick ([EMAIL PROTECTED])


 Jacoud Bastien [EMAIL PROTECTED] wrote on 18/08/2006
 09:05:15:

  Hello,
  I had developed java web services with Axis 1.3 to deploy them on
  tomcat server. These services work correctly with a java client.
  For another application, I need to compile web services in C++. So I
  downloaded the current version of Axis-C on your web site (it seems
  to be 1.6 Beta version) and I tried to compile the web services from
  my WSDL files on a windows platform.
  To compile from the WSDL, I followed the procedure described on the
  joined file, but, when I realize the operation:
  g++ *.cpp -IAxis installation directory/include -LAxis
  installation directory/lib -ldl -laxiscpp_client -ocalculator
  I obtain lot of undefined reference messages although I put .dll
  files in lib directory.
  I don't know if it's an error of Axis version or I don't realize
  good operation. Can you help to resolve this problem?
  Regards,
 
  Bastien JACOUD
  Unité Public - Santé - Transport - Département SPSL - Atos WORLDLINE
  [EMAIL PROTECTED]
  Tel.: + 33.(0)4 78 17 69 57
  107-109 Boulevard Vivier Merle 69438 Lyon Cedex 03
   [attachment clientuser-guide.pdf deleted by Adrian Dick/UK/IBM]
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Query about Axis-C version

2006-08-18 Thread Jacoud Bastien
Yes I use binaries version of Axis and the version of the compiler is 3.4.2.
I'm trying to re-install Axis with the installation guide to be sure I did not 
forget something during the 1st installation.


-Message d'origine-
De : Adrian Dick [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 18 août 2006 12:38
À : Apache AXIS C User List
Objet : RE: Query about Axis-C version

Hmm...

If, as you say, you have the Axis C++ JARs available on the appropriate
paths, and using the command you originally gave, I wouldn't expect you to
see this error.

Are you using pre-build binaries?
If so, could it be the compiler/linker used to create theAxis C++ binaries
is not totally compatible with the compiler/linker you're using for your
application?


Adrian
___
Adrian Dick ([EMAIL PROTECTED])


Jacoud Bastien [EMAIL PROTECTED] wrote on 18/08/2006
09:49:51:

 Hi,
 This is one of errors I obtained:

 D:\DOCUME~1\A118733\LOCALS~1\Temp/cc0qbaaa.o(.text+0x55f):
 ConnectionException.cpp: undefined reference to `axiscpp::
 SoapFaultException::SoapFaultException()'

 All other errors look like to this one.

 Regards,
 Bastien.

 -Message d'origine-
 De : Adrian Dick [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 18 août 2006 10:40
 À : Apache AXIS C User List
 Objet : Re: Query about Axis-C version

 Hi,

 Your command looks right.  What are the specific errors you're seeing?

 Regards.
 Adrian
 ___
 Adrian Dick ([EMAIL PROTECTED])


 Jacoud Bastien [EMAIL PROTECTED] wrote on 18/08/2006
 09:05:15:

  Hello,
  I had developed java web services with Axis 1.3 to deploy them on
  tomcat server. These services work correctly with a java client.
  For another application, I need to compile web services in C++. So I
  downloaded the current version of Axis-C on your web site (it seems
  to be 1.6 Beta version) and I tried to compile the web services from
  my WSDL files on a windows platform.
  To compile from the WSDL, I followed the procedure described on the
  joined file, but, when I realize the operation:
  g++ *.cpp -IAxis installation directory/include -LAxis
  installation directory/lib -ldl -laxiscpp_client -ocalculator
  I obtain lot of undefined reference messages although I put .dll
  files in lib directory.
  I don't know if it's an error of Axis version or I don't realize
  good operation. Can you help to resolve this problem?
  Regards,
 
  Bastien JACOUD
  Unité Public - Santé - Transport - Département SPSL - Atos WORLDLINE
  [EMAIL PROTECTED]
  Tel.: + 33.(0)4 78 17 69 57
  107-109 Boulevard Vivier Merle 69438 Lyon Cedex 03
   [attachment clientuser-guide.pdf deleted by Adrian Dick/UK/IBM]
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Attribute id was already specified for element multiRef Exception, how to custmoize soap response.

2006-08-18 Thread xu cai
I got a weird issue.
In my case, the soap response generated by axis engine is not a valid xml, because there are two id attribute in multiRef element. 

see the snippet : 

 multiRef id=id4 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 
id=mgw_monitoring_enabled xsi:type=ns4:ReplyColumn xmlns:ns4=http://www.foo.com/ xmlns:soapenc=
http://schemas.xmlsoap.org/soap/encoding/Y/multiRef
the first id attribute is the id of the element, it's referenced by other element. as you know, the soap response generated by axis always looks so, there are so many mutiRef element. ...


the second id attribute is the caused by my wsdl file, it means the id of this record, it's the content of the reply data. 
WSDL interface is finalized, I also think the id attribute make sense and should be changed.

So my question is, is there any way to fix this porblem. allow customer add a attribute id to their expected reply data ?

Since id attribute is used by multiRef, can we define id attribute in wsdl ? 

many thanks
-- - xucai 


Re: Generic request, empty post

2006-08-18 Thread jansson

Ok, this is what I've done:
I've got a filter where I check if the header Content-Length is 0.
Now, if it is, I would like to change the request, putting in an envelope
(since there isn't any yet), and changing the Content-Length to the size of
the message I inserted. Then I'll do the chain.doFilter to continue as
usuall.

BUT... and that's a huge but.
It doesn't seem like I can edit the request in any way, not even using a
wrapper class.
After a HTTPServletRequest object is created, you can't change it.

So what do I do??

At this point, I basically want to create a custom response (building an
envelope depending database information) and return to the client. But from
my filter, I can't get anywhere unless I do the chain.doFilter, and if I
run the chain.doFilter, I'm back where I started, with an exception, since
the request still doesn't contain an evelope.

What do I do??



Anne Thomas Manes wrote:
 
 No -- you must use a Servlet filter (invoked by the servlet engine
 before passing the HTTP request to Axis).
 
 On 8/17/06, jansson [EMAIL PROTECTED] wrote:

 That didn't work... I assume a filter is the same as a custom handler.
 Wrong??
 At least that's the conclusion I've made after using Google ;-)

 I defined a handler for my service, that throws a custom exception, just
 to
 see if I came that far when sending my empty request.

 Unfourtunatly, I get an SAXParserException: Premature end of file at an
 earlier stage then that, so I my request never enters my handler.

 Does anyone have something usefull for me??



 jansson wrote:
 
  Thank you for that answer!
  Since this is my first real WS project, and I haven't used AXIS and
  Tomcat before, I really don't know much (read anything :) about servlet
  filters. I'll look into it, but any help on the way (links to tut,
 code,
  mailing-lists etc) is very appriciated.
 
  I'm using Axis 1.4 with Tomcat 5.5.17 and j2sdk1.4.2_12
 
 
 
  Anne Thomas Manes wrote:
 
  I suggest using a servlet filter to catch this request.
 
  On 8/16/06, jansson [EMAIL PROTECTED] wrote:
 
  ANYBODY??
  Help...
 
 
 
  jansson wrote:
  
   I'm currently developing a servlet for two way communication, and
 need
  to
   be able to handle an empty post.
  
   I have a set of methods the client may call, but when the client
  doesn't
   have any more requests, it sends an empty HTTP post to my servlet.
 I
  can't
   affect the client, and I need to handle the empty post.
  
   The empty post is a way for the client to tell my service that it
  doesn't
   have anything more to request, although my service may want to tell
  the
   client something more, and the empty post consists of an HTTP
 header
  with
   Content-Length: 0, SOAPAction:  and NOTHING in the HTTP Body.
  
   When my service receives this, it responds with a
 SAXParserException:
   Premature end of file.
  
   Now, I want this emtpy HTTP post (request) to trigger a custom
 method
   (just as a SOAP request triggers a method mapped by the first tag
  inside
   the body) with no input parameters, which, depending on results
 taken
  from
   a database, should respond with a SOAP envelope built up by the
  service.
  
   To make it simple:
   I want this:
   -- Request -
   POST /myservice HTTP/1.1
   Content-Type: text/xml; Charset=UTF-8
   User-Agent: XML Spy
   SOAPAction: 
   Host: localhost:80
   Content-Length: 0
   Connection: Keep-Alive
   Cache-Control: no-cache
  
   -
  
   to get a response like this:
   --- Response
   HTTP/1.1 200 OK
   Server: Apache-Coyote/1.1
   Content-Type: text/xml;charset=utf-8
   Transfer-Encoding: chunked
   Date: Wed, 09 Aug 2006 16:49:30 GMT
  
   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
   myCustomResponse xmlns=urn:mynamespace
   AValue1/AValue
   /myCustomResponse
 /soapenv:Body
   /soapenv:Envelope
  
   --
  
   How do I make this happend? It must be possible in some way, but
 how??
   For more information, look att the TR-069 CWMP protocol,
   (http://www.dslforum.org/techwork/tr/TR-069.pdf), point 3.7.*,
 cause
   that's what I'm trying to implement.
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Generic-request%2C-empty-post-tf2102463.html#a5827632
  Sent from the Axis - User forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

 --
 

RE: [Axis2] Blockers for Axis2 1.1

2006-08-18 Thread William Ferguson
I'd nominate AXIS2-957 and perhaps AXIS2-959 and AXIS2-962

 -Original Message-
 From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 18 August 2006 1:22 AM
 To: Axis User
 Subject: [Axis2] Blockers for Axis2 1.1
 
 Folks,
 
 Here are the current blockers for Axis2 1.1:
 http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=
 hiderequestId=12311157
 
 If you have a problem in the nightly that you wish to propose 
 as a blocker, then please add your comments in the specific 
 bug report. If there isn't a bug report for your problem, 
 please add one. If there isn't enough info in the bug report 
 to recreate the problem, then please add a sample. If you can 
 submit a patch against latest SVN, that would be the best :)
 
 Thanks,
 dims
 
 --
 Davanum Srinivas : http://www.wso2.net (Oxygen for Web 
 Service Developers)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] namespace for every element in SOAP response

2006-08-18 Thread Kinichiro Inoguchi
Hi,

I'm testing latest nightly buils Axis2 war.
I noticed that every element in response SOAP message has
namespace definition.

If you see version service via REST call like this,
http://localhost:8080/axis2/rest/version/getVersion

you could see this,
ns:getVersionResponse xmlns:ns=http://axisversion.sample/xsd;
  ns:return xmlns:ns=http://axisversion.sample/xsd;Hello I am Axis2
version service , My version is #axisVersion# #today#/ns:return 
/ns:getVersionResponse

return element also has xmlns:ns=http://axisversion.sample/xsd;.
I feel this definition NOT needed.

ns:getVersionResponse xmlns:ns=http://axisversion.sample/xsd;
  ns:returnHello I am Axis2 version service , My version is
#axisVersion# #today#/ns:return 
/ns:getVersionResponse
is enough.

Is this needed ?

Regards,
kinichiro

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] Blockers for Axis2 1.1

2006-08-18 Thread Kinichiro Inoguchi
I'd nominate http://issues.apache.org/jira/browse/AXIS2-805 .
RPCMessageReceiver in latest nightly seems doesn't generate valid WSDL.

--- William Ferguson [EMAIL PROTECTED]
wrote:

 I'd nominate AXIS2-957 and perhaps AXIS2-959 and AXIS2-962
 
  -Original Message-
  From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
  Sent: Friday, 18 August 2006 1:22 AM
  To: Axis User
  Subject: [Axis2] Blockers for Axis2 1.1
  
  Folks,
  
  Here are the current blockers for Axis2 1.1:
  http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=
  hiderequestId=12311157
  
  If you have a problem in the nightly that you wish to propose 
  as a blocker, then please add your comments in the specific 
  bug report. If there isn't a bug report for your problem, 
  please add one. If there isn't enough info in the bug report 
  to recreate the problem, then please add a sample. If you can 
  submit a patch against latest SVN, that would be the best :)
  
  Thanks,
  dims
  
  --
  Davanum Srinivas : http://www.wso2.net (Oxygen for Web 
  Service Developers)
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AXIS1.4 : DataHandler in a bean

2006-08-18 Thread Laurent Berthelot
Hello,I'm a newbie.I try to serialize/deserialize a datahandler, attribute of a bean, and it seems to don't work.It is posisble to do that ?Best regards.


RE: [Axis2] Blockers for Axis2 1.1

2006-08-18 Thread William Ferguson
As well as http://issues.apache.org/jira/browse/AXIS2-957, I'd nominate
http://issues.apache.org/jira/browse/AXIS2-937 because as far as I can
tell its still a problem. Its certainly a BIG problem for me. Has anyone
been able to generate ABD stubs using wsdl2Java using a snapshot since
the 23-jul-06?

William


 -Original Message-
 From: William Ferguson 
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 18 August 2006 5:53 PM
 To: axis-user@ws.apache.org; [EMAIL PROTECTED]
 Subject: RE: [Axis2] Blockers for Axis2 1.1
 
 I'd nominate AXIS2-957 and perhaps AXIS2-959 and AXIS2-962
 
  -Original Message-
  From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
  Sent: Friday, 18 August 2006 1:22 AM
  To: Axis User
  Subject: [Axis2] Blockers for Axis2 1.1
  
  Folks,
  
  Here are the current blockers for Axis2 1.1:
  http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=
  hiderequestId=12311157
  
  If you have a problem in the nightly that you wish to propose as a 
  blocker, then please add your comments in the specific bug 
 report. If 
  there isn't a bug report for your problem, please add one. If there 
  isn't enough info in the bug report to recreate the problem, then 
  please add a sample. If you can submit a patch against latest SVN, 
  that would be the best :)
  
  Thanks,
  dims
  
  --
  Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service 
  Developers)
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] multiple ServiceClients problem

2006-08-18 Thread Michele Mazzucco

Hi Bin,

no, I think my problem is different:

org.apache.axis2.transport.http.SimpleHTTPServer.start 
(SimpleHTTPServer.java:184) ERROR [pool-1-thread-1] -  
java.net.BindException: Address already in use

 [java] ERROR Sender:run Failed send #0
 [java] ncl.qosp.test.functional.client.Sender.run(Sender.java: 
141) ERROR [pool-1-thread-1] - Failed send #0

 [java] ERROR Sender:logException ERROR!:
 [java] ncl.qosp.test.functional.client.Sender.logException 
(Sender.java:171) ERROR [pool-1-thread-1] - ERROR!:
 [java] ERROR Sender:logException org.apache.axis2.AxisFault:  
Address already in use; nested exception is:

 [java] java.net.BindException: Address already in use
 [java] at  
org.apache.axis2.transport.http.SimpleHTTPServer.start 
(SimpleHTTPServer.java:185)
 [java] at  
org.apache.axis2.engine.ListenerManager.addListener 
(ListenerManager.java:178)
 [java] at  
org.apache.axis2.description.ClientUtils.inferInTransport 
(ClientUtils.java:102)
 [java] at  
org.apache.axis2.description.OutInAxisOperationClient.execute 
(OutInAxisOperation.java:248)
 [java] at  
org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking 
(ServiceClient.java:582)
 [java] at  
org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking 
(ServiceClient.java:555)
 [java] at ncl.qosp.test.functional.client.Sender.run 
(Sender.java:134)
 [java] at java.util.concurrent.ThreadPoolExecutor 
$Worker.runTask(ThreadPoolExecutor.java:650)
 [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run 
(ThreadPoolExecutor.java:675)

 [java] at java.lang.Thread.run(Thread.java:613)
 [java] Caused by: java.net.BindException: Address already in use
 [java] at java.net.PlainSocketImpl.socketBind(Native Method)
 [java] at java.net.PlainSocketImpl.bind 
(PlainSocketImpl.java:359)

 [java] at java.net.ServerSocket.bind(ServerSocket.java:319)
 [java] at java.net.ServerSocket.init(ServerSocket.java:185)
 [java] at java.net.ServerSocket.init(ServerSocket.java:97)
 [java] at  
org.apache.axis2.transport.http.server.DefaultConnectionListener.init( 
DefaultConnectionListener.java:64)
 [java] at  
org.apache.axis2.transport.http.server.HttpFactory.newRequestConnectionL 
istener(HttpFactory.java:199)
 [java] at  
org.apache.axis2.transport.http.server.SimpleHttpServer.init 
(SimpleHttpServer.java:80)
 [java] at  
org.apache.axis2.transport.http.SimpleHTTPServer.start 
(SimpleHTTPServer.java:181)

 [java] ... 9 more


Regards,
Michele

On 17 Aug 2006, at 18:10, Bin Zhou wrote:


Michele Mazzucco Michele.Mazzucco at ncl.ac.uk writes:



Hi all,

I have to spare some threads, and each of them creates a new
ServiceClient object in order to send messages. Now the problem is  
that
they fail, since they try to use the same port (I guess). Is there  
any

possibility to specify which port should they use?

Thanks,
Michele





Hi Michele,

I met the same problem too. I also try to use another thread to create
ServiceClient for sending message. The exceptions seems like the  
following

(sorry for the long list).

Is that similar to yours?

wishes,
Bin

---
org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:287)
at org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:457)
at org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:399)
at aop.core.Agent.processMails(Agent.java:140)
at aop.core.Agent.run(Agent.java:116)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: null;  
nested

exception is:
java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo 
gic

(RawXMLINOutMessageReceiver.java:126)
	at  
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive

(AbstractInOutSyncMessageReceiver.java:37)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ 
est

(HTTPTransportUtils.java:284)
at org.apache.axis2.transport.http.AxisServlet.doPost
(AxisServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at 

[Axis2] Marshalling Extened Objects

2006-08-18 Thread Brian Dillon (ext. 944)
Hi,

I am tring to move from Axis 1.3 to Axis 2. I currently using JAXME binding
with Axis 2 for my tests but have run into a problem with objects which
extend other object types.

I have a situation where I have an Object type (addressSpaceB:AddressType)
which is the extension of another type (addressSpaceA:GenericType) defined
in a separate xsd and address space

xsd:complexType name=SpecificType
xsd:complexContent
xsd:extension base=addressSpaceA:GenericType
xsd:sequence
xsd:element name=SomeValue
type=xsd:string minOccurs=0/
..
/xsd:sequence
/xsd:extension
/xsd:complexContent
/xsd:complexType

The WSDL has an operation defined which takes the generic type as a
parameter;

wsdl:message name=sendRequest
wsdl:part name=input
element=addressSpaceA:GenericType/
/wsdl:message

If on the client side I create an object of type GenericType and invoke the
service everything is ok. However if I create an object of type AddressSpace
and send it I get a DataBinding exception;

org.apache.axis2.AxisFault: Data binding error
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOpera
tion.java:287)
at
bdtest.client.Axis2TestSoapServiceStub.sendBORoundtrip(Axis2TestSoapServiceS
tub.java:327)
at testClient.main(testClient.java:100)

I.e.;



GenericType bo = new GenericTypeImpl();
bo.setSomeValue(testVal);
GenericType retBO = (GenericType)
persClientStub.send(bo);//This Works

SpecificType testAddr = new SpecificTypeImpl();
SpecificType retAddr = (SpecificType)
persClientStub.sendBORoundtrip(testAddr);//This fails

Is there anyway around this ? I have used this type of extension with axis
1.3 so would have thought that I shouldn't have issues with it in Axis 2.

Thanks,

Brian

__
The information contained in this e-mail is confidential, may be privileged and 
is intended 
only for the user of the recipient named above. If you are not the intended 
recipient or a 
representative of the intended recipient, you have received this e-mail in 
error and must 
not copy, use or disclose the contents of this e-mail to anybody else.  

If you have received this e-mail in error, please notify the sender immediately 
by return 
e-mail and permanently delete the copy you received.  This e-mail has been 
swept for 
computer viruses. However, you should carry out your own virus checks. 
Registered in Ireland, No. 205721.  http://www.FINEOS.com
__


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem in running simple security example

2006-08-18 Thread Genious Soul
Hi All,
I am running simple StockQuoteService security
example using certificates,I got the following
exception while running the example:

bash-2.05b$ java -Daxis.ClientConfigFile=client
-config.wsdd -classpath $CLASSPATH:.
samples.stock.client.StockServiceClient IBM
- Unable to find required classes
(javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support
is disabled.
Exception in thread main AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: WSDoAllSender: Empty username for
specified action
 faultActor:
 faultNode:
 faultDetail:
   
{http://xml.apache.org/axis/}hostname:staban.cs.ucl.ac.uk

WSDoAllSender: Empty username for specified action
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:223)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:130)
at
org.apache.axis.encoding.DeserializationContext.endElement
(DeserializationContext.java:1087)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
org.apache.xerces.parsers.XML11Configuration.parse
(Unknown Source)
at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at
org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
at
org.apache.xerces.parsers.AbstractSAXParser.parse
(Unknown Source)
at
javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope
(SOAPPart.java:695)
at
org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.wsa.WSAHandler.processClientResponse(WSAHandler.java:82)
at org.apache.axis.wsa.WSAHandler.invoke
(WSAHandler.java:41)
at
org.apache.axis.client.AxisClient.invokeTransport(AxisClient.java:154)
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:289)
at org.apache.axis.client.Call.invokeEngine
(Call.java:2838)
at
org.apache.axis.client.Call.invoke(Call.java:2824)
at
org.apache.axis.client.Call.invoke(Call.java:2501)
at
org.apache.axis.client.Call.invoke(Call.java:2424)
at
org.apache.axis.client.Call.invoke(Call.java:1835)
at
samples.stock.client.GetQuoteSoapBindingStub.getQuote(GetQuoteSoapBindingStub.java:143)
at
samples.stock.client.StockServiceClient.main(StockServiceClient.java
:16)


I checked my genereated client-config.wsdd file as
shown below:

?xml version=1.0 encoding=UTF-8?deployment
xmlns= http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java

 globalConfiguration
  parameter name=adminPassword value=admin/
  parameter name=enableNamespacePrefixOptimization
value=false/
  parameter name=disablePrettyXML value=true/
  parameter name=attachments.implementation 
value=org.apache.axis.attachments.AttachmentsImpl/
  parameter name=sendXsiTypes value=true/
  parameter name=sendMultiRefs value=true/
  parameter name=sendXMLDeclaration value=true/
 /globalConfiguration
 service name=urn:xmltoday-delayed-quotes
provider=java:RPC
  requestFlow
   handler
type=java:org.apache.ws.axis.security.WSDoAllSender
parameter name=signaturePropFile
value=mycrypto.properties/
parameter name=action value=Signature/
   /handler
  /requestFlow
  parameter name=wsdlServicePort value=GetQuote/
  parameter name=className
value=samples.stock.client.StockQuoteService /
 /service
 transport name=java
pivot=java:org.apache.axis.transport.java.JavaSender/
 transport name=http
pivot=java:org.apache.axis.transport.http.HTTPSender
/
 transport name=local
pivot=java:org.apache.axis.transport.local.LocalSender/
/deployment

My properties  file mycrypto.properties is shown
below:

org.apache.ws.security.crypto.merlin.file=client-keystore.jks
org.apache.ws.security.crypto.merlin.keystore.password=changeit
org.apache.ws.security.crypto.merlin.keystore.alias=xws-security-client
org.apache.ws.security.crypto.merlin.alias.password=changeit
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=JKS
org.apache.ws.security.crypto.merlin.crldir=CRLs

Service (urn:xmltoday-delayed-quotes) is successfully
deployed at
http://localhost:8080/axis/services/urn:xmltoday-delayed-quotes


I would appreciate if somebody could give me the
reason for this error.Thanks.

Kash

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Re: [Axis2] namespace for every element in SOAP response

2006-08-18 Thread Eran Chinthaka
Hi,

I think this is a bug in Axiom and not in Axis2.

-- Chinthaka

Kinichiro Inoguchi wrote:
 Hi,
 
 I'm testing latest nightly buils Axis2 war.
 I noticed that every element in response SOAP message has
 namespace definition.
 
 If you see version service via REST call like this,
 http://localhost:8080/axis2/rest/version/getVersion
 
 you could see this,
 ns:getVersionResponse xmlns:ns=http://axisversion.sample/xsd;
   ns:return xmlns:ns=http://axisversion.sample/xsd;Hello I am Axis2
 version service , My version is #axisVersion# #today#/ns:return 
 /ns:getVersionResponse
 
 return element also has xmlns:ns=http://axisversion.sample/xsd;.
 I feel this definition NOT needed.
 
 ns:getVersionResponse xmlns:ns=http://axisversion.sample/xsd;
   ns:returnHello I am Axis2 version service , My version is
 #axisVersion# #today#/ns:return 
 /ns:getVersionResponse
 is enough.
 
 Is this needed ?
 
 Regards,
 kinichiro
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




signature.asc
Description: OpenPGP digital signature


Re: [Axis2] Blockers for Axis2 1.1

2006-08-18 Thread Davanum Srinivas

ok folks. I've marked all the items mentioned. Please check and let me
know if i missed something.

-- dims

On 8/18/06, William Ferguson
[EMAIL PROTECTED] wrote:

As well as http://issues.apache.org/jira/browse/AXIS2-957, I'd nominate
http://issues.apache.org/jira/browse/AXIS2-937 because as far as I can
tell its still a problem. Its certainly a BIG problem for me. Has anyone
been able to generate ABD stubs using wsdl2Java using a snapshot since
the 23-jul-06?

William


 -Original Message-
 From: William Ferguson
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, 18 August 2006 5:53 PM
 To: axis-user@ws.apache.org; [EMAIL PROTECTED]
 Subject: RE: [Axis2] Blockers for Axis2 1.1

 I'd nominate AXIS2-957 and perhaps AXIS2-959 and AXIS2-962

  -Original Message-
  From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
  Sent: Friday, 18 August 2006 1:22 AM
  To: Axis User
  Subject: [Axis2] Blockers for Axis2 1.1
 
  Folks,
 
  Here are the current blockers for Axis2 1.1:
  http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=
  hiderequestId=12311157
 
  If you have a problem in the nightly that you wish to propose as a
  blocker, then please add your comments in the specific bug
 report. If
  there isn't a bug report for your problem, please add one. If there
  isn't enough info in the bug report to recreate the problem, then
  please add a sample. If you can submit a patch against latest SVN,
  that would be the best :)
 
  Thanks,
  dims
 
  --
  Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
  Developers)
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Contract first approach

2006-08-18 Thread Brecht Yperman








Hi,



I want to create webservices, based on a wsdl.



What I have:

- The wsdl, with one operation



What I want:

To generate a webservice, which exposes that one method. All
I need as input/output is the Soap Envelope, so databinding is not necessary.



How do I do that, without using a code generator?



Any hint to get me started is very much appreciated.



Thanks a lot,

Brecht

Invenso - The Integration
Software specialists.
_

Brecht Yperman
Development team

Direct: +32 (0)3 780
30 05
Email: [EMAIL PROTECTED]

INVENSO bvba
Industriepark-West 75
9100 Sint-Niklaas
Belgium
- Europe

Phone: +32 (0)3 780 30 02
Fax: +32 (0)3 780 30 03
Email: [EMAIL PROTECTED]

Website: www.invenso.com


E-mail disclaimer: This e-mail, and any attachments thereto,
is intended only for use by the addressee(s) named herein and may contain
legally privileged and/or confidential information. If you are not the intended
recipient, please note that any review, dissemination, disclosure, alteration,
printing, copying or transmission of this e-mail and/or any file transmitted
with it, is strictly prohibited and may be unlawful. If you have received this
e-mail by mistake, please immediately notify the sender and permanently delete the
original as well as any copy of any e-mail and any printout thereof.










Re: [Axis2] Marshalling Extened Objects

2006-08-18 Thread Davanum Srinivas

Please log a bug report if the problem still exists in a nightly
build. Please upload the wsdl/service code/client code as well.

thanks,
dims

On 8/18/06, Brian Dillon (ext. 944) [EMAIL PROTECTED] wrote:

Hi,

I am tring to move from Axis 1.3 to Axis 2. I currently using JAXME binding
with Axis 2 for my tests but have run into a problem with objects which
extend other object types.

I have a situation where I have an Object type (addressSpaceB:AddressType)
which is the extension of another type (addressSpaceA:GenericType) defined
in a separate xsd and address space

xsd:complexType name=SpecificType
xsd:complexContent
xsd:extension base=addressSpaceA:GenericType
xsd:sequence
xsd:element name=SomeValue
type=xsd:string minOccurs=0/
..
/xsd:sequence
/xsd:extension
/xsd:complexContent
/xsd:complexType

The WSDL has an operation defined which takes the generic type as a
parameter;

wsdl:message name=sendRequest
wsdl:part name=input
element=addressSpaceA:GenericType/
/wsdl:message

If on the client side I create an object of type GenericType and invoke the
service everything is ok. However if I create an object of type AddressSpace
and send it I get a DataBinding exception;

org.apache.axis2.AxisFault: Data binding error
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOpera
tion.java:287)
at
bdtest.client.Axis2TestSoapServiceStub.sendBORoundtrip(Axis2TestSoapServiceS
tub.java:327)
at testClient.main(testClient.java:100)

I.e.;



GenericType bo = new GenericTypeImpl();
bo.setSomeValue(testVal);
GenericType retBO = (GenericType)
persClientStub.send(bo);//This Works

SpecificType testAddr = new SpecificTypeImpl();
SpecificType retAddr = (SpecificType)
persClientStub.sendBORoundtrip(testAddr);//This fails

Is there anyway around this ? I have used this type of extension with axis
1.3 so would have thought that I shouldn't have issues with it in Axis 2.

Thanks,

Brian

__
The information contained in this e-mail is confidential, may be privileged and 
is intended
only for the user of the recipient named above. If you are not the intended 
recipient or a
representative of the intended recipient, you have received this e-mail in 
error and must
not copy, use or disclose the contents of this e-mail to anybody else.

If you have received this e-mail in error, please notify the sender immediately 
by return
e-mail and permanently delete the copy you received.  This e-mail has been 
swept for
computer viruses. However, you should carry out your own virus checks.
Registered in Ireland, No. 205721.  http://www.FINEOS.com
__


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Blockers for Axis2 1.1

2006-08-18 Thread Michele Mazzucco
http://issues.apache.org/jira/browse/AXIS2-850?

Michele

Davanum Srinivas wrote:
 ok folks. I've marked all the items mentioned. Please check and let me
 know if i missed something.
 
 -- dims
 
 On 8/18/06, William Ferguson
 [EMAIL PROTECTED] wrote:
 As well as http://issues.apache.org/jira/browse/AXIS2-957, I'd nominate
 http://issues.apache.org/jira/browse/AXIS2-937 because as far as I can
 tell its still a problem. Its certainly a BIG problem for me. Has anyone
 been able to generate ABD stubs using wsdl2Java using a snapshot since
 the 23-jul-06?

 William


  -Original Message-
  From: William Ferguson
  [mailto:[EMAIL PROTECTED]
  Sent: Friday, 18 August 2006 5:53 PM
  To: axis-user@ws.apache.org; [EMAIL PROTECTED]
  Subject: RE: [Axis2] Blockers for Axis2 1.1
 
  I'd nominate AXIS2-957 and perhaps AXIS2-959 and AXIS2-962
 
   -Original Message-
   From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
   Sent: Friday, 18 August 2006 1:22 AM
   To: Axis User
   Subject: [Axis2] Blockers for Axis2 1.1
  
   Folks,
  
   Here are the current blockers for Axis2 1.1:
   http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=
   hiderequestId=12311157
  
   If you have a problem in the nightly that you wish to propose as a
   blocker, then please add your comments in the specific bug
  report. If
   there isn't a bug report for your problem, please add one. If there
   isn't enough info in the bug report to recreate the problem, then
   please add a sample. If you can submit a patch against latest SVN,
   that would be the best :)
  
   Thanks,
   dims
  
   --
   Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
   Developers)
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using the Generated Classes in an Applet Through a Proxy Server

2006-08-18 Thread Larry Lemons



Ok. I think I figured out how to fix this, but we are 
in the process of testing it to make sure. If we get it fixed, I will post 
the answer.


Thank you,
Larry M. Lemons
(304) 726-4809 Ext. 4505




From: Larry Lemons [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 9:28 AMTo: 
axis-user@ws.apache.orgSubject: RE: Using the Generated Classes in an 
Applet Through a Proxy Server

Does anyone have anyideas at all forthis 
problem?


Thank you,
Larry M. Lemons
(304) 726-4809 Ext. 4505




From: Larry Lemons [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 10:16 AMTo: 
axis-user@ws.apache.orgSubject: RE: Using the Generated Classes in an 
Applet Through a Proxy Server

I forgot to mention that I am using the JAVA 1.5_07 for 
building the Stubs and java 1.5_0X for the applet use. I'm also using the 
WSDL2JAVA version 1.2. (I didn't realize we were using such an old 
version.)


Thank you,
Larry M. Lemons
(304) 726-4809 Ext. 4505




From: Larry Lemons [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 2:36 PMTo: 
axis-user@ws.apache.orgSubject: Using the Generated Classes in an 
Applet Through a Proxy Server

I have an applet 
that communicateswith a web service using a few different web 
methods. The applet connects fine and even uses the web methods fine as 
long as the client isn't behind a proxy server.

As soon as the 
applet is used behind a proxy server, it breaks. The applet is able to 
connect to the Web Service, but as soon as it attempts to use one of the web 
methods, it breaks. What I have seen is the following:

When connecting to 
and using the applet from outside of a firewall, it uses proxy=DIRECT 
everywhere.

As soon as the 
appletis moved behind the firewall, all the connections are created 
successfully using proxy=HTTP @ 
/IPADDRESS:PORT
But when it actually gets to doing the web 
method call, after doing the _call.invoke(param1, param2, param3, etc.), it gets 
to this call:


  liveconnect: Invoking JS method: 
  execScriptliveconnect: Invoking JS method: 
  evalIntermediateValueToReturnnetwork: Connecting 
  socket://fema.imcwv.com:443 with 
proxy=DIRECT
It uses a socket and 
the URL in a String format with port 443, which is correct. The same call 
outside of the proxy server is the following:


  network: 
  Connecting socket://URL_STRING:443 with 
proxy=DIRECT

The difference is 
the result for the two. Outside of the proxy server the result is the 
expected:


  network: 
  Connecting http://URL_STRING/java/lang/StringBeanInfo.class 
  with proxy=DIRECTnetwork: Connecting http://URL_STRING/java/lang/StringBeanInfo.class 
  with cookie 
"ASP.NET_SessionId=phcqzm55x31r0p45ox3sdanj"

Inside of the proxy 
server, the following is encountered:


  AxisFaultfaultCode: 
  {http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionfaultSubcode: 
  faultString: java.net.ConnectException: Connection timed out: 
  connectfaultActor: faultNode: faultDetail: 
  {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: 
  Connection timed out: connectat 
  java.net.PlainSocketImpl.socketConnect(Native Method)at 
  java.net.PlainSocketImpl.doConnect(Unknown Source)at 
  java.net.PlainSocketImpl.connectToAddress(Unknown Source)at 
  java.net.PlainSocketImpl.connect(Unknown Source)at 
  java.net.SocksSocketImpl.connect(Unknown Source)at 
  java.net.Socket.connect(Unknown Source)at 
  com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)at 
  com.sun.net.ssl.internal.ssl.SSLSocketImpl.lt;initgt;(Unknown 
  Source)at 
  com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown 
  Source)at 
  org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)at 
  org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)at 
  org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)at 
  org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)at 
  org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)at 
  org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at 
  org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)at 
  org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)at 
  org.apache.axis.client.Call.invokeEngine(Call.java:2765)at 
  org.apache.axis.client.Call.invoke(Call.java:2748)at 
  org.apache.axis.client.Call.invoke(Call.java:2424)at 
  org.apache.axis.client.Call.invoke(Call.java:2347)at 
  org.apache.axis.client.Call.invoke(Call.java:1804)at 
  URL_STRING.WEB_SERVICE_NAMESoapStub.webMethod(Unknown Source)at 
  AppletName.CallingClass.lt;initgt;(CallingClass.java:127)

What I have noticed 
is that as soon as the call is made using the socket connection rather than an 
HTTP connection, it tries to use proxy=DIRECT instead of proxy=HTTP @ /IPADDRESS:PORT, where IPADDRESS is the IP 
Address of the proxy server and PORT is the port to be used for the proxy 
server.

Has anyone else ran 
into this situation or does anyone 

TCP capture/tunel (java server - c# .net client)

2006-08-18 Thread José Ferreiro
Hello everybody,Here is my configuration:Java server using Axis 1.4 in Tomcat.Am using .Net Framework 1.1 for a client to access the java server web service.I did a web service and the related client using Java and .Net (they work fine)
Everything is running on my LOCALHOST machine.I am testing the interoperability with the .Net client  (c#).The .net client access properly the java server web service.To analyze the TCP traffic I use as provided from Axis the TCPMonitor 
URL: http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmonI successfully am able to capture the trafic between the java client and the java server web service.
However I have no idea how to capture the trafic between the .Net Client and the java server web service.FYI: I also implemented a .Net Proxy in the .net Client using c# to access the java server web service.
Did someone of you try out to do something this?All suggestions are welcome.Thank you in advance and a I wish a good week-end to everybodyJosé Ferreiro


Re: Using the Generated Classes in an Applet Through a Proxy Server

2006-08-18 Thread robert lazarski

Since you seem to be stuck, I'll offer some advice that may or not help.

In axis 1.x and axis2 , there is an applet called the soap monitor. It
makes a connection via a socket to a handler . Now if you get that to
work via a proxy, that may help you understand how to solve your
problem. Installing the soap monitor is pretty quick, and if it works
for you try looking at the source which is only a couple hundered
lines.

HTH,
Robert
http://www.braziloutsource.com

On 8/17/06, Larry Lemons [EMAIL PROTECTED] wrote:



Does anyone have any ideas at all for this problem?



Thank you,

Larry M. Lemons

(304) 726-4809 Ext. 4505




 
 From: Larry Lemons [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 15, 2006 10:16 AM
To: axis-user@ws.apache.org
Subject: RE: Using the Generated Classes in an Applet Through a Proxy Server



I forgot to mention that I am using the JAVA 1.5_07 for building the Stubs
and java 1.5_0X for the applet use.  I'm also using the WSDL2JAVA version
1.2. (I didn't realize we were using such an old version.)



Thank you,

Larry M. Lemons

(304) 726-4809 Ext. 4505




 
 From: Larry Lemons [mailto:[EMAIL PROTECTED]
Sent: Monday, August 14, 2006 2:36 PM
To: axis-user@ws.apache.org
Subject: Using the Generated Classes in an Applet Through a Proxy Server



I have an applet that communicates with a web service using a few different
web methods.  The applet connects fine and even uses the web methods fine as
long as the client isn't behind a proxy server.

As soon as the applet is used behind a proxy server, it breaks.  The applet
is able to connect to the Web Service, but as soon as it attempts to use one
of the web methods, it breaks.  What I have seen is the following:

When connecting to and using the applet from outside of a firewall, it uses
proxy=DIRECT everywhere.

As soon as the applet is moved behind the firewall, all the connections are
created successfully using proxy=HTTP @ /IPADDRESS:PORT
But when it actually gets to doing the web method call, after doing the
_call.invoke(param1, param2, param3, etc.), it gets to this call:


liveconnect: Invoking JS method: execScript
liveconnect: Invoking JS method: evalIntermediateValueToReturn
network: Connecting socket://fema.imcwv.com:443 with proxy=DIRECT

It uses a socket and the URL in a String format with port 443, which is
correct.  The same call outside of the proxy server is the following:


network: Connecting socket://URL_STRING:443 with proxy=DIRECT

The difference is the result for the two.  Outside of the proxy server the
result is the expected:


network: Connecting
http://URL_STRING/java/lang/StringBeanInfo.class with
proxy=DIRECT
network: Connecting
http://URL_STRING/java/lang/StringBeanInfo.class with
cookie ASP.NET_SessionId=phcqzm55x31r0p45ox3sdanj

Inside of the proxy server, the following is encountered:


AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection timed out: connect
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException:
Connection timed out: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown
Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown
Source)
 at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.lt;initgt;(Unknown
Source)
 at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown
Source)
 at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
 at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
 at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
 at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
 at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
 at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
 at
org.apache.axis.client.Call.invokeEngine(Call.java:2765)
 at org.apache.axis.client.Call.invoke(Call.java:2748)
 at org.apache.axis.client.Call.invoke(Call.java:2424)
 at org.apache.axis.client.Call.invoke(Call.java:2347)
 at org.apache.axis.client.Call.invoke(Call.java:1804)
 at URL_STRING.WEB_SERVICE_NAMESoapStub.webMethod(Unknown
Source)
 at AppletName.CallingClass.lt;initgt;(CallingClass.java:127)


What I have noticed is that as soon as the call is made using the socket
connection rather than an HTTP connection, it tries to use proxy=DIRECT
instead of proxy=HTTP @ /IPADDRESS:PORT, where IPADDRESS is the IP Address
of the 

Re: Perl SOAP::Lite and Apache Axis2 interoperability

2006-08-18 Thread Eran Chinthaka
Hi Aleksey,

I think the SOAP namespace is not defined in your request message. Can
you paste your SOAP request here?

-- Chinthaka

Aleksey Serba wrote:
 Hi!
 
 I've build simple service and deploy it to Apache Axis2 as aar archive
 ( messageReceiver is RPCMessageReceiver )
 
 I can't make a SOAP call using perl SOAP::Lite.
 I've turn on debugging on SOAP::Lite and found Axis2 exception
 org.apache.axiom.soap.SOAPProcessingException: Only SOAP 1.1 or SOAP
 1.2 messages are supported in the system.
 
 SOAP::Lite 0.68 version
 Axis2 1.0 release and latest nightly build
 
 Is there any way to get it work together or it's totally incompatible?
 
 Thanks in advance
 
 Aleksey
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




signature.asc
Description: OpenPGP digital signature


[Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 embedded in EAR)

2006-08-18 Thread Ali Sadik Kumlali
Hi all,

Sorry for the long post. But, as everybody says :), I run into very strange 
problem: When my service is called, JVM that WebLogic runs in crashes. Here is 
the exception:

--
  An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at 
PC=0x617
 0612F
 Function=[Unknown.]
 Library=(N/A)
 
 NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.
 
 
 Current Java thread:
 at java.lang.Class.getClassLoader0(Native Method)
 at java.lang.Class.getClassLoader(Class.java:516)
 at 
com.mycompany.ws.schemas.account_1_0.AccountRequestDocument.clinit(Acc
 ountRequestDocument.java:19)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at 
com.mycompany.ws.definitions.mycompany.MyCompanyServicesMessageReceiverInOnly.invoke
 BusinessLogic(MkkServicesMessageReceiverInOnly.java:81)
 at 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract
 InMessageReceiver.java:34)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:503)
 at org.apache.axis2.transport.njms.AxisMdb.onMessage(AxisMdb.java:246)
 at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
 at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
 at progress.message.jimpl.Session.deliver(Unknown Source)
 at progress.message.jimpl.Session.run(Unknown Source)
 at progress.message.jimpl.Session$SessionThread.run(Unknown Source)
 
 Dynamic libraries:
 0x0040 - 0x0040B000 C:\J2SDK1~1.2_0\bin\java.exe
 0x77F8 - 0x77FFD000 C:\WINNT\system32\ntdll.dll
 ...
 0x38C7 - 0x38C7F000 C:\j2sdk1.4.2_08\jre\bin\net.dll
 0x690A - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
 
 Heap at VM Abort:
 Heap
  def new generation   total 235968K, used 115192K [0x1001, 0x2001, 
0x200
 1)
   eden space 209792K,  44% used [0x1001, 0x15b5f788, 0x1ccf)
   from space 26176K,  82% used [0x1ccf, 0x1e21e930, 0x1e68)
   to   space 26176K,   0% used [0x1e68, 0x1e68, 0x2001)
  tenured generation   total 262144K, used 12912K [0x2001, 0x3001, 
0x3001
 )
the space 262144K,   4% used [0x2001, 0x20cac2f8, 0x20cac400, 
0x3001)
 
  compacting perm gen  total 131072K, used 29432K [0x3001, 0x3801, 
0x3801
 )
the space 131072K,  22% used [0x3001, 0x31cce320, 0x31cce400, 
0x3801)
 
 
 Local Time = Fri Aug 18 13:51:14 2006
 Elapsed Time = 68
 #
 # The exception above was detected in native code outside the VM
 #
 # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
 #
 # An error report file has been saved as hs_err_pid3456.log.
 # Please refer to the file for further information.
 #
 
--
 
 
The exception is thrown where static variable of generated interface is set:

 
--
  // Generated. This line causes JVM crash.
  public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 
schemaorg_apache_xmlbeans.system.s67CA6C5D556F95E00282C4FAF31E3C3B).resolveHandle(accountrequest7895doctype);
  
--
  
 
As you've seen here, there are three steps at a single line which makes 
debugging difficult. So, I broke the line down into statements by allowing log 
messages beetween them:

  
--
   public interface AccountRequestDocument extends org.apache.xmlbeans.XmlObject
 {
 // Not generated. Added by me.
 public static final class Test
 {
 static {
 // Here I do nothing except breaking the generated line down into 
several statements.
 try {
 System.out.println();
   ClassLoader cl = 
AccountRequestDocument.class.getClassLoader();
   System.out.println(ClassLoader:  + cl);
   Object obj = 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 

[Axis2] Different behaviour Windows and Unix

2006-08-18 Thread Javier V

Hi.

I'm using JDK 1.4.2_12, Axi2 1.0 and Tomcat 4.1.31.

I've done a web service in Java and to test it I've done a client java class 
with axis2 too.


My surprise is that when I invoke the service with my testclient in Windows,
all is ok. However, when I install ALL in Unix and I call the testclient in 
Unix

there is something different with the extended characters, 'Ñ' in my case.
Let's me explain.

The testclient invokes the web service with the string PEÑISCOLA.

With the SOAPMonitor, in Windows, that word is converted to PEÑISCOLA 
that

is the conversion of the letter 'Ñ' in WIN1252 (windows encoding default) to
UTF-8 (how axis2 sends the message, I suppose).

However in Unix, that word is not converted to anything, and the SOAPMonitor
shows PEÑISCOLA, as the original, perhaps because unix encoding default is 
equal

to the encoding how axis2 sends the message. Am I wrong?

I've tried to set in Unix the variable CATALINA_OPTS to 
-D=file.encoding=CP1252

but I think it's doesn´t work.

Regards

Javier

_
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. 
http://astrocentro.msn.es/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using SAML with Axis

2006-08-18 Thread Andrew Fielden
Can anyone advise on the following issue? -
I'm using Axis 1.2. I have a requirement to add SAML security tokens
when calling web services. This is possible for document/literal
operations by adding SAML tokens to the SOAP message body.
However I can't see a way to do this for RPC/literal operations, since
the Axis API doesn't allow the SOAP envelope to be modified in this
case.
Is there any way of doing this? Would Axis2 allow me to do it?
I'm relatively new to the world of SAML, so some indication of whether
this is feasible would be appreciated.

Thanks.
Andrew.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] multiple ServiceClients problem -- is it a bug???

2006-08-18 Thread Michele Mazzucco

Hi again,

unfortunately I cannot found a suitable solution for my problem. [1]  
provides two possible solutions:
1 - use a single sender object for all threads: this is not possible  
since I want to send messages concurrently

2 - create multiple senders using the same configuration context.

According to the second option, the configuration context I'm using is
ConfigurationContext configurationContext =  
ConfigurationContextFactory.createConfigurationContextFromFileSystem 
(null, null);


HttpClient httpClient = new HttpClient(new  
MultiThreadedHttpConnectionManager());
configurationContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,  
Boolean.TRUE);
configurationContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT,  
httpClient);


Now all senders should be able to send messages concurrently  
(theoretically), but unfortunately they incur in a  
ConcurrentModificationException
when they try to engage the addressing module (there is no way, at  
least on first instance, to synchronize this operation):


Exception in thread pool-1-thread-1  
java.util.ConcurrentModificationException
 [java] at java.util.AbstractList$Itr.checkForComodification 
(AbstractList.java:449)
 [java] at java.util.AbstractList$Itr.next(AbstractList.java: 
420)
 [java] at org.apache.axis2.engine.Phase.addHandler 
(Phase.java:136)
 [java] at  
org.apache.axis2.phaseresolver.PhaseHolder.addHandler 
(PhaseHolder.java:64)
 [java] at  
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation 
(PhaseResolver.java:191)
 [java] at  
org.apache.axis2.description.AxisOperation.engageModuleToOperation 
(AxisOperation.java:154)
 [java] at  
org.apache.axis2.description.AxisOperation.engageModule 
(AxisOperation.java:128)
 [java] at  
org.apache.axis2.description.AxisService.engageModule 
(AxisService.java:479)
 [java] at org.apache.axis2.client.ServiceClient.engageModule 
(ServiceClient.java:271)
 [java] at ncl.qosp.test.functional.client.Sender.run 
(Sender.java:138)
 [java] at java.util.concurrent.ThreadPoolExecutor 
$Worker.runTask(ThreadPoolExecutor.java:650)
 [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run 
(ThreadPoolExecutor.java:675)

 [java] at java.lang.Thread.run(Thread.java:613)


Is this a bug?


Regards,
Michele



[1] http://www.wso2.net/kb/165
On 17 Aug 2006, at 15:32, Michele Mazzucco wrote:


Hi all,

I have to spare some threads, and each of them creates a new
ServiceClient object in order to send messages. Now the problem is  
that

they fail, since they try to use the same port (I guess). Is there any
possibility to specify which port should they use?

Thanks,
Michele

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



options.setProperty() documentation?

2006-08-18 Thread David C Leung
I've been perusing the archives for info on turning chunking off, and I
saw these references:

options.setProperty(MessageContext.CHUNKED, false)

and

Options options = new Options();
options.setProperty(Constants.Configuration.ENABLE_REST,
Constants.VALUE_TRUE);

This looks like java; is there a javadoc on class Options (not to mention
Constants and Configuration)?  Or if it's perl, perldoc?

thanks in advance,
dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using SAML with Axis

2006-08-18 Thread Anne Thomas Manes

You should pass SAML tokens in a WS-Security header rather than in the body.
WSS4J provides a handler to do this for you automatically, and it
works with any style message.

Anne

On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:

Can anyone advise on the following issue? -
I'm using Axis 1.2. I have a requirement to add SAML security tokens
when calling web services. This is possible for document/literal
operations by adding SAML tokens to the SOAP message body.
However I can't see a way to do this for RPC/literal operations, since
the Axis API doesn't allow the SOAP envelope to be modified in this
case.
Is there any way of doing this? Would Axis2 allow me to do it?
I'm relatively new to the world of SAML, so some indication of whether
this is feasible would be appreciated.

Thanks.
Andrew.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using SAML with Axis

2006-08-18 Thread Anne Thomas Manes

Also, if you decide to upgrade to Axis2, use Rampart instead of WSS4J.

On 8/18/06, Anne Thomas Manes [EMAIL PROTECTED] wrote:

You should pass SAML tokens in a WS-Security header rather than in the body.
WSS4J provides a handler to do this for you automatically, and it
works with any style message.

Anne

On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:
 Can anyone advise on the following issue? -
 I'm using Axis 1.2. I have a requirement to add SAML security tokens
 when calling web services. This is possible for document/literal
 operations by adding SAML tokens to the SOAP message body.
 However I can't see a way to do this for RPC/literal operations, since
 the Axis API doesn't allow the SOAP envelope to be modified in this
 case.
 Is there any way of doing this? Would Axis2 allow me to do it?
 I'm relatively new to the world of SAML, so some indication of whether
 this is feasible would be appreciated.

 Thanks.
 Andrew.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting the attachment in soap message by content-id

2006-08-18 Thread Syam Prasad








Hi,



Is there a way to get an attachment in soap message by
content-id? 



Thanks for your help.



Syam








Re: options.setProperty() documentation?

2006-08-18 Thread Michele Mazzucco

http://www.wso2.net/kb/209

Hope this will help,
Michele


On 18 Aug 2006, at 16:02, David C Leung wrote:

I've been perusing the archives for info on turning chunking off,  
and I

saw these references:

options.setProperty(MessageContext.CHUNKED, false)

and

Options options = new Options();
options.setProperty(Constants.Configuration.ENABLE_REST,
Constants.VALUE_TRUE);

This looks like java; is there a javadoc on class Options (not to  
mention

Constants and Configuration)?  Or if it's perl, perldoc?

thanks in advance,
dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using SAML with Axis

2006-08-18 Thread Andrew Fielden
Thanks Anne.
I've looked at the examples on the WSS4J website. Looks like what I
need, however I'm still unclear about how to obtain the SOAP envelope
associated with the web service call. E.g. if I'm setting up an
RPC/literal WS call like this -

org.apache.axis.client.Service service = new Service(...);
java.xml.rpc.Call call = service.createCall(...);
// Invoke RPC/literal web service
Object[] params = ...
call.invoke(params);

There is no method on 'Call' which allows me to retrieve the SOAP
envelope.

BTW I'm working with existing code which I didn't write, so this may or
may not be the correct way of doing this.



 -Original Message-
 From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2006 16:11
 To: axis-user@ws.apache.org
 Subject: Re: Using SAML with Axis
 
 You should pass SAML tokens in a WS-Security header rather than in the
 body.
 WSS4J provides a handler to do this for you automatically, and it
 works with any style message.
 
 Anne
 
 On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:
  Can anyone advise on the following issue? -
  I'm using Axis 1.2. I have a requirement to add SAML security tokens
  when calling web services. This is possible for document/literal
  operations by adding SAML tokens to the SOAP message body.
  However I can't see a way to do this for RPC/literal operations,
since
  the Axis API doesn't allow the SOAP envelope to be modified in this
  case.
  Is there any way of doing this? Would Axis2 allow me to do it?
  I'm relatively new to the world of SAML, so some indication of
whether
  this is feasible would be appreciated.
 
  Thanks.
  Andrew.
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using SAML with Axis

2006-08-18 Thread Anne Thomas Manes

You don't do it through the call object in your client code. You do it
in the handler.
Anne

On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:

Thanks Anne.
I've looked at the examples on the WSS4J website. Looks like what I
need, however I'm still unclear about how to obtain the SOAP envelope
associated with the web service call. E.g. if I'm setting up an
RPC/literal WS call like this -

org.apache.axis.client.Service service = new Service(...);
java.xml.rpc.Call call = service.createCall(...);
// Invoke RPC/literal web service
Object[] params = ...
call.invoke(params);

There is no method on 'Call' which allows me to retrieve the SOAP
envelope.

BTW I'm working with existing code which I didn't write, so this may or
may not be the correct way of doing this.



 -Original Message-
 From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2006 16:11
 To: axis-user@ws.apache.org
 Subject: Re: Using SAML with Axis

 You should pass SAML tokens in a WS-Security header rather than in the
 body.
 WSS4J provides a handler to do this for you automatically, and it
 works with any style message.

 Anne

 On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:
  Can anyone advise on the following issue? -
  I'm using Axis 1.2. I have a requirement to add SAML security tokens
  when calling web services. This is possible for document/literal
  operations by adding SAML tokens to the SOAP message body.
  However I can't see a way to do this for RPC/literal operations,
since
  the Axis API doesn't allow the SOAP envelope to be modified in this
  case.
  Is there any way of doing this? Would Axis2 allow me to do it?
  I'm relatively new to the world of SAML, so some indication of
whether
  this is feasible would be appreciated.
 
  Thanks.
  Andrew.
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Partially SOLVED] - TCP capture/tunel (java server - c# .net client)

2006-08-18 Thread José Ferreiro
[Solution]To look at the payload, when writing C# code, here is the way I used to send the request from my C# client through an HTTP proxy.using System.Net; // for proxy setup...

 IWebProxy proxyObject = new WebProxy(http://hostname:8099, false); service.Proxy = proxyObject;
Note: do not use localhost or 127.0.0.1
 if you want to hit the network layer.However the TCPMonitor (org.apache.axis.utils.tcpmon) is able to return back the REQUEST field (possible bug in Axis 1.x)The same beheviour is observed with this tool 
http://www.pocketsoap.com/tcptrace/
On 8/18/06, José Ferreiro [EMAIL PROTECTED] wrote:

Hello everybody,Here is my configuration:Java server using Axis 1.4 in Tomcat.Am using .Net Framework 1.1 for a client to access the java server web service.I did a web service and the related client using Java and .Net (they work fine)
Everything is running on my LOCALHOST machine.I am testing the interoperability with the .Net client  (c#).The .net client access properly the java server web service.To analyze the TCP traffic I use as provided from Axis the TCPMonitor 
URL: http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmon
I successfully am able to capture the trafic between the java client and the java server web service.
However I have no idea how to capture the trafic between the .Net Client and the java server web service.FYI: I also implemented a .Net Proxy in the .net Client using c# to access the java server web service.
Did someone of you try out to do something this?All suggestions are welcome.Thank you in advance and a I wish a good week-end to everybodyJosé Ferreiro






[Axis2] Reading POJOs at client side

2006-08-18 Thread Charak, Vikas
Using RPCMessageReceiver I was able pass person POJO to my client from a
web service

public User[] getUsers() {
return User array;
}

Now I have ,

public void addUsers(User[]) {
}

Any idea on writing a java client to send user arrays to addUsers method
of the same web service. User is a plain java class with getters and
setters.

Any help is appreciated.


Thanks.







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Contract first approach

2006-08-18 Thread Ajith Ranabahu

Hi,
With violation of one of your policies I can suggest a solution. You
can use the code generator with -d none option which generates code
with no data binding!

Ajith

On 8/18/06, Kinichiro Inoguchi [EMAIL PROTECTED] wrote:

Hi,

- you have WSDL already
- you don't need data binding
- you don't want to use a code generator

How about using RawXMLINOutMessageReceiver ?

Your service class will be like this,

  public class MyService1 {
public OMElement serviceMethod(OMElement inParam) {
  ...
  OMElement outParam;
  ...
  return outParam;
}
  }

And your services.xml should have
org.apache.axis2.receivers.RawXMLINOutMessageReceiver
as messageReceiver definition.

You need to write code for creating outParam.

Anyone else ?

Regards,
kinichiro

--- Brecht Yperman [EMAIL PROTECTED] wrote:

 Hi,



 I want to create webservices, based on a wsdl.



 What I have:

 - The wsdl, with one operation



 What I want:

 To generate a webservice, which exposes that one method. All I need
 as
 input/output is the Soap Envelope, so databinding is not necessary.



 How do I do that, without using a code generator?



 Any hint to get me started is very much appreciated.



 Thanks a lot,

 Brecht

 Invenso - The Integration Software specialists.
 _

 Brecht Yperman
 Development team

 Direct: +32 (0)3 780 30 05
 Email: [EMAIL PROTECTED]

 INVENSO bvba
 Industriepark-West 75
 9100 Sint-Niklaas
 Belgium - Europe

 Phone: +32 (0)3 780 30 02
 Fax: +32 (0)3 780 30 03
 Email: [EMAIL PROTECTED]
 Website: www.invenso.com http://www.invenso.com/

 E-mail disclaimer: This e-mail, and any attachments thereto, is
 intended only for use by the addressee(s) named herein and may
 contain
 legally privileged and/or confidential information. If you are not
 the
 intended recipient, please note that any review, dissemination,
 disclosure, alteration, printing, copying or transmission of this
 e-mail
 and/or any file transmitted with it, is strictly prohibited and may
 be
 unlawful. If you have received this e-mail by mistake, please
 immediately notify the sender and permanently delete the original as
 well as any copy of any e-mail and any printout thereof.






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Ajith Ranabahu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Reading POJOs at client side

2006-08-18 Thread robert lazarski

In the latest source there is some integration tests:

modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

That has some array examples and should get you started.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:

Using RPCMessageReceiver I was able pass person POJO to my client from a
web service

public User[] getUsers() {
return User array;
}

Now I have ,

public void addUsers(User[]) {
}

Any idea on writing a java client to send user arrays to addUsers method
of the same web service. User is a plain java class with getters and
setters.

Any help is appreciated.


Thanks.







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] Reading POJOs at client side

2006-08-18 Thread Charak, Vikas
I might be wrong. This will work if client is a Java Client. What
happens if the client is non-java, then is this way recommended or
should I be using OMElement as input and output for my method. [Data
goes in and out only in raw xml format]

Any suggestions?



-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 1:16 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Reading POJOs at client side

In the latest source there is some integration tests:

modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

That has some array examples and should get you started.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 Using RPCMessageReceiver I was able pass person POJO to my client from
a
 web service

 public User[] getUsers() {
 return User array;
 }

 Now I have ,

 public void addUsers(User[]) {
 }

 Any idea on writing a java client to send user arrays to addUsers
method
 of the same web service. User is a plain java class with getters and
 setters.

 Any help is appreciated.


 Thanks.







 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Rampart UsernameToken (setting user id programmatically)

2006-08-18 Thread Mark McCall








I found Ruchiths presentation
Secure Web Services with Apache Rampart from http://www.wso2.net/presentations
and I downloaded the samples. While these have been extremely helpful, I
noticed for all examples with a UsernameToken action, the
client.axis.xml has the user id hard coded, where the password can be obtained
using a callback. How can my client code programmatically set the user id? My
client is invoking the service using a wsdl2java generated stub (public class
MyClient extends org.apache.axis2.client.Stub) and I am using the axis2/rampart
1.0 releases.



Thanks,

Mark














The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.



Re: [Axis2] Reading POJOs at client side

2006-08-18 Thread robert lazarski

AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
way axis 1.x does , and the integration tests reflect that.  So if you
find a problem file a jira but I do expect that you can use these
examples between languages.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:

I might be wrong. This will work if client is a Java Client. What
happens if the client is non-java, then is this way recommended or
should I be using OMElement as input and output for my method. [Data
goes in and out only in raw xml format]

Any suggestions?



-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 1:16 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Reading POJOs at client side

In the latest source there is some integration tests:

modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

That has some array examples and should get you started.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 Using RPCMessageReceiver I was able pass person POJO to my client from
a
 web service

 public User[] getUsers() {
 return User array;
 }

 Now I have ,

 public void addUsers(User[]) {
 }

 Any idea on writing a java client to send user arrays to addUsers
method
 of the same web service. User is a plain java class with getters and
 setters.

 Any help is appreciated.


 Thanks.







 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how do I use a client security certificate with client side axis program?? please respond

2006-08-18 Thread Hussain, Asim

















RE: Axis 2 in WebSphere6

2006-08-18 Thread Martin Gainty

David-

I dont see the file: specification in axis2.xml seems harmless enough but 
this might be a Websphere specific variation

Does anyone have any doc on using file: in axis2.xml???

Have you confirmed your hostname
http://myApp.com/ws is accessible

AND the ports ( 606) are not bound (usually verified by netstat -a)
..

Martin Gainty

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.





The attachment was not permitted so here is the file contents:
-
file:///C:/Program%20Files/IBM/Rational/SDP/6.0/runtimes/base_v6/profil
es/default/installedApps/U0014135-XPANode01Cell/axis2ReleaseEAR.ear/axis
2Release.war/WEB-INF/conf/axis2.xml#  axisconfig name=AxisJava2.0
- !--
 =
  --
- !--
 Parameters
  --
- !--
 =
  --
  parameter name=hotdeployment locked=falsetrue/parameter
  parameter name=hotupdate locked=falsefalse/parameter
  parameter name=enableMTOM locked=falsefalse/parameter
- !--
During a fault, stacktrace can be sent with the fault message. The
following flag will control
  --
- !--
that behaviour.
  --
  parameter name=sendStacktraceDetailsWithFaults
locked=falsetrue/parameter
- !--
If there aren't any information available to find out the fault reason,
we set the message of the expcetion
  --
- !--
as the faultreason/Reason. But when a fault is thrown from a service or
some where, it will be
  --
- !--
wrapped by different levels. Due to this the initial exception message
can be lost. If this flag
  --
- !--
is set then, Axis2 tries to get the first exception and set its message
as the faultreason/Reason.
  --
  parameter name=DrillDownToRootCauseForFaultReason
locked=falsefalse/parameter
  parameter name=userName locked=falseadmin/parameter
  parameter name=password locked=falseaxis2/parameter
- !--
 If you have a frontend host which exposes this webservice using a
different public URL
  --
- !--
 use this parameter to override autodetected url
  --
- !--
parameter name=httpFrontendHostUrl
locked=falsehttps://someotherhost/context/parameter
  --
- !--
The way of adding listener to the system
  --
- !--
listener class=org.apache.axis2.ObserverIMPL
  --
- !--
parameter name=RSS_URL
locked=falsehttp://127.0.0.1/rss/parameter
  --
- !--
/listener
  --
- !--
 =
  --
- !--
 Message Receivers
  --
- !--
 =
  --
- !--
This is the Deafult Message Receiver for the system , if you want to
have MessageReceivers for
  --
- !--
all the other MEP implement it and add the correct entry to here , so
that you can refer from
  --
- !--
any operation
  --
- !--
Note : You can ovride this for particular service by adding the same
element with your requirement
  --
-
file:///C:/Program%20Files/IBM/Rational/SDP/6.0/runtimes/base_v6/profil
es/default/installedApps/U0014135-XPANode01Cell/axis2ReleaseEAR.ear/axis
2Release.war/WEB-INF/conf/axis2.xml#  messageReceivers
  messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only;
class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver /
  messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
  /messageReceivers
- !--
 =
  --
- !--
 Transport Ins
  --
- !--
 =
  --
-
file:///C:/Program%20Files/IBM/Rational/SDP/6.0/runtimes/base_v6/profil
es/default/installedApps/U0014135-XPANode01Cell/axis2ReleaseEAR.ear/axis
2Release.war/WEB-INF/conf/axis2.xml#  transportReceiver name=http
class=org.apache.axis2.transport.http.SimpleHTTPServer
  parameter name=port locked=false6060/parameter
- !--
If you want to give your own host address for EPR generation
  --
- !--
uncommet following paramter , and set as you required.
  --
- !--
parameter name=hostname
locked=falsehttp://myApp.com/ws/parameter
  --
  /transportReceiver
- !--
Uncomment if you want to have SMTP transport support
  --
- !--
transportReceiver name=mail
class=org.apache.axis2.transport.mail.SimpleMailListener
  --
- !--
parameter name=transport.mail.pop3.host
locked=false127.0.0.1/parameter
  --
- !--
parameter name=transport.mail.pop3.user
locked=falseaxis2/parameter
  --
- !--
parameter name=transport.mail.pop3.password
locked=falseaxis2/parameter
  --
- !--
parameter name=transport.mail.pop3.port
locked=false110/parameter
  --
- !--
parameter name=transport.mail.replyToAddress
locked=false[EMAIL PROTECTED]/parameter
  --
- !--
/transportReceiver
  --
-

RE: [Axis2] Reading POJOs at client side

2006-08-18 Thread Charak, Vikas
I guess, I am still trying to find out for interoperability reasons or
what is recommended way .If I should be using OMElement as input and
output for my methods [raw xml format] or should it be more structured
like using POJO etc.?
The one issue I see with RawXml is generating XML using OMElement's
API's where as I can easily create POJOs from my data.
Any recommendations.


-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 2:51 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Reading POJOs at client side

AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
way axis 1.x does , and the integration tests reflect that.  So if you
find a problem file a jira but I do expect that you can use these
examples between languages.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 I might be wrong. This will work if client is a Java Client. What
 happens if the client is non-java, then is this way recommended or
 should I be using OMElement as input and output for my method. [Data
 goes in and out only in raw xml format]

 Any suggestions?



 -Original Message-
 From: robert lazarski [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 1:16 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Reading POJOs at client side

 In the latest source there is some integration tests:

 modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

 That has some array examples and should get you started.

 HTH,
 Robert
 http://www.braziloutsource.com/

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
  Using RPCMessageReceiver I was able pass person POJO to my client
from
 a
  web service
 
  public User[] getUsers() {
  return User array;
  }
 
  Now I have ,
 
  public void addUsers(User[]) {
  }
 
  Any idea on writing a java client to send user arrays to addUsers
 method
  of the same web service. User is a plain java class with getters and
  setters.
 
  Any help is appreciated.
 
 
  Thanks.
 
 
 
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Reading POJOs at client side

2006-08-18 Thread robert lazarski

OM has lots of performance advantages among many others so go with
that if in doubt.

HTH,
Robert
http://www.braziloutsource.com

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:

I guess, I am still trying to find out for interoperability reasons or
what is recommended way .If I should be using OMElement as input and
output for my methods [raw xml format] or should it be more structured
like using POJO etc.?
The one issue I see with RawXml is generating XML using OMElement's
API's where as I can easily create POJOs from my data.
Any recommendations.


-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 2:51 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Reading POJOs at client side

AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
way axis 1.x does , and the integration tests reflect that.  So if you
find a problem file a jira but I do expect that you can use these
examples between languages.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 I might be wrong. This will work if client is a Java Client. What
 happens if the client is non-java, then is this way recommended or
 should I be using OMElement as input and output for my method. [Data
 goes in and out only in raw xml format]

 Any suggestions?



 -Original Message-
 From: robert lazarski [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 1:16 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Reading POJOs at client side

 In the latest source there is some integration tests:

 modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

 That has some array examples and should get you started.

 HTH,
 Robert
 http://www.braziloutsource.com/

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
  Using RPCMessageReceiver I was able pass person POJO to my client
from
 a
  web service
 
  public User[] getUsers() {
  return User array;
  }
 
  Now I have ,
 
  public void addUsers(User[]) {
  }
 
  Any idea on writing a java client to send user arrays to addUsers
 method
  of the same web service. User is a plain java class with getters and
  setters.
 
  Any help is appreciated.
 
 
  Thanks.
 
 
 
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] Reading POJOs at client side

2006-08-18 Thread Charak, Vikas
I got my answer. Thanks a lot.

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 3:35 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Reading POJOs at client side

OM has lots of performance advantages among many others so go with
that if in doubt.

HTH,
Robert
http://www.braziloutsource.com

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 I guess, I am still trying to find out for interoperability reasons or
 what is recommended way .If I should be using OMElement as input and
 output for my methods [raw xml format] or should it be more structured
 like using POJO etc.?
 The one issue I see with RawXml is generating XML using OMElement's
 API's where as I can easily create POJOs from my data.
 Any recommendations.


 -Original Message-
 From: robert lazarski [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 2:51 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Reading POJOs at client side

 AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
 way axis 1.x does , and the integration tests reflect that.  So if you
 find a problem file a jira but I do expect that you can use these
 examples between languages.

 HTH,
 Robert
 http://www.braziloutsource.com/

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
  I might be wrong. This will work if client is a Java Client. What
  happens if the client is non-java, then is this way recommended or
  should I be using OMElement as input and output for my method. [Data
  goes in and out only in raw xml format]
 
  Any suggestions?
 
 
 
  -Original Message-
  From: robert lazarski [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 18, 2006 1:16 PM
  To: axis-user@ws.apache.org
  Subject: Re: [Axis2] Reading POJOs at client side
 
  In the latest source there is some integration tests:
 
  modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
 
  That has some array examples and should get you started.
 
  HTH,
  Robert
  http://www.braziloutsource.com/
 
  On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
   Using RPCMessageReceiver I was able pass person POJO to my client
 from
  a
   web service
  
   public User[] getUsers() {
   return User array;
   }
  
   Now I have ,
  
   public void addUsers(User[]) {
   }
  
   Any idea on writing a java client to send user arrays to addUsers
  method
   of the same web service. User is a plain java class with getters
and
   setters.
  
   Any help is appreciated.
  
  
   Thanks.
  
  
  
  
  
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using SAML with Axis

2006-08-18 Thread Martin Gainty

WSS4J class you will need to implement is called
org.apache.ws.security.handler.WSS4JHandler

HTH,
M--





You don't do it through the call object in your client code. You do it
in the handler.
Anne

On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:

Thanks Anne.
I've looked at the examples on the WSS4J website. Looks like what I
need, however I'm still unclear about how to obtain the SOAP envelope
associated with the web service call. E.g. if I'm setting up an
RPC/literal WS call like this -

org.apache.axis.client.Service service = new Service(...);
java.xml.rpc.Call call = service.createCall(...);
// Invoke RPC/literal web service
Object[] params = ...
call.invoke(params);

There is no method on 'Call' which allows me to retrieve the SOAP
envelope.

BTW I'm working with existing code which I didn't write, so this may or
may not be the correct way of doing this.



 -Original Message-
 From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2006 16:11
 To: axis-user@ws.apache.org
 Subject: Re: Using SAML with Axis

 You should pass SAML tokens in a WS-Security header rather than in the
 body.
 WSS4J provides a handler to do this for you automatically, and it
 works with any style message.

 Anne

 On 8/18/06, Andrew Fielden [EMAIL PROTECTED] wrote:
  Can anyone advise on the following issue? -
  I'm using Axis 1.2. I have a requirement to add SAML security tokens
  when calling web services. This is possible for document/literal
  operations by adding SAML tokens to the SOAP message body.
  However I can't see a way to do this for RPC/literal operations,
since
  the Axis API doesn't allow the SOAP envelope to be modified in this
  case.
  Is there any way of doing this? Would Axis2 allow me to do it?
  I'm relatively new to the world of SAML, so some indication of
whether
  this is feasible would be appreciated.
 
  Thanks.
  Andrew.
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Axis 1.4 beanMapping within wsdd ignores bean methods and generates both getters and setters from fields.

2006-08-18 Thread Bell, Douglas
I can't find any documentation describing the beanMapping process so I
am unsure if this is a bug or a feature...

I have the following beanMapping within my wsdd:

beanMapping qname=myNS:TestObject xmlns:myNS=http://test.boingo.com;
languageSpecificType=java:com.boingo.test.TestObject/

The Object being mapped is as follows (notice there is no setIntgr()
defined, I do not want to expose this to the client):

public class TestObjectDTO
implements Serializable
{
/** serialVersionUID */
private static final long serialVersionUID = -8521313678848845583L;

/** */
protected String str;

/** */
protected Integer intgr;

/**
 * Default Constructor
 *
 */
public TestObjectDTO() {

}

/**
 * Returns the intgr
 *
 * @return Integer Returns the intgr.
 */
public Integer getIntgr() {
return intgr;
}
  
/**
 * Returns the str
 *
 * @return String Returns the str.
 */
public String getStr() {
return str;
}

/**
 * Sets the str
 *
 * @param str The str to set.
 */
public void setStr(String str) {
this.str = str;
}
}

When I generate the client stubs it creates a setIntgr(Integer intgr)
method for me. It appears it is ignoring the beans methods and only
looking at the fields. This is unwanted behavior in my eyes. If I have a
accountBalance field on a bean, I would probably want a
getAccountBalance() method, but not a setAccountBalance(). 

Any way around this?

- Doug


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] multiple ServiceClients problem -- is it a bug???

2006-08-18 Thread Eran Chinthaka
Can you create an issue out of this, explaining or better attaching some
tests or code for us to re-gen the problem?

Thanks,
Chinthaka

Michele Mazzucco wrote:
 Hi again,
 
 unfortunately I cannot found a suitable solution for my problem. [1]
 provides two possible solutions:
 1 - use a single sender object for all threads: this is not possible
 since I want to send messages concurrently
 2 - create multiple senders using the same configuration context.
 
 According to the second option, the configuration context I'm using is
 ConfigurationContext configurationContext =
 ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
 null);

 HttpClient httpClient = new HttpClient(new
 MultiThreadedHttpConnectionManager());
 configurationContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
 Boolean.TRUE);
 configurationContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT,
 httpClient);
 
 Now all senders should be able to send messages concurrently
 (theoretically), but unfortunately they incur in a
 ConcurrentModificationException
 when they try to engage the addressing module (there is no way, at least
 on first instance, to synchronize this operation):
 
 Exception in thread pool-1-thread-1
 java.util.ConcurrentModificationException
  [java] at
 java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
  [java] at java.util.AbstractList$Itr.next(AbstractList.java:420)
  [java] at org.apache.axis2.engine.Phase.addHandler(Phase.java:136)
  [java] at
 org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:64)
  [java] at
 org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
 
  [java] at
 org.apache.axis2.description.AxisOperation.engageModuleToOperation(AxisOperation.java:154)
 
  [java] at
 org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
 
  [java] at
 org.apache.axis2.description.AxisService.engageModule(AxisService.java:479)
  [java] at
 org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:271)
  [java] at
 ncl.qosp.test.functional.client.Sender.run(Sender.java:138)
  [java] at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 
  [java] at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 
  [java] at java.lang.Thread.run(Thread.java:613)
 
 
 Is this a bug?
 
 
 Regards,
 Michele
 
 
 
 [1] http://www.wso2.net/kb/165
 On 17 Aug 2006, at 15:32, Michele Mazzucco wrote:
 
 Hi all,

 I have to spare some threads, and each of them creates a new
 ServiceClient object in order to send messages. Now the problem is that
 they fail, since they try to use the same port (I guess). Is there any
 possibility to specify which port should they use?

 Thanks,
 Michele

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




signature.asc
Description: OpenPGP digital signature


Re: [Axis2] Callback question

2006-08-18 Thread Eran Chinthaka
Michele Mazzucco wrote:
 Hi all,
 
 is it possible to specify the port where the callback object has to wait?

Try changing port parameter in your client side axis2.xml. If you use
default axis2.xml (you do not create your own config context during
invocation), create one using your own including an axis2.xml which has
the port change mentioned above and try.


transportReceiver name=http

class=org.apache.axis2.transport.http.SimpleHTTPServer
parameter name=port locked=false6060/parameter


-- Chinthaka



signature.asc
Description: OpenPGP digital signature


RE: [Axis2] Different behaviour Windows and Unix

2006-08-18 Thread Martin Gainty

Buenos Dias Javier..

look at Regional options
Languages
Display Languages/Details
  Add Input Language Spanish many options for Spanish be sure to choose 
your Country
  Keyboard be careful here you will need an IME Keyboard for Spanish 
select  Spanish
The biggest problem I see is the keyboard as most of the retailers here dont 
offer IME keyboards


Buena Suerte!
Martin --

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.








Hi.

I'm using JDK 1.4.2_12, Axi2 1.0 and Tomcat 4.1.31.

I've done a web service in Java and to test it I've done a client java 
class with axis2 too.


My surprise is that when I invoke the service with my testclient in 
Windows,
all is ok. However, when I install ALL in Unix and I call the testclient in 
Unix

there is something different with the extended characters, 'Ñ' in my case.
Let's me explain.

The testclient invokes the web service with the string PEÑISCOLA.

With the SOAPMonitor, in Windows, that word is converted to PEÑISCOLA 
that
is the conversion of the letter 'Ñ' in WIN1252 (windows encoding default) 
to

UTF-8 (how axis2 sends the message, I suppose).

However in Unix, that word is not converted to anything, and the 
SOAPMonitor
shows PEÑISCOLA, as the original, perhaps because unix encoding default 
is equal

to the encoding how axis2 sends the message. Am I wrong?

I've tried to set in Unix the variable CATALINA_OPTS to 
-D=file.encoding=CP1252

but I think it's doesn´t work.

Regards

Javier

_
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. 
http://astrocentro.msn.es/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Different behaviour Windows and Unix

2006-08-18 Thread robert lazarski

I was able to reproduce this behavior using português chars lie ã é
etc  . I was going to try and see if I could fix it but didn't get
time yet. Could you try with the latest sources:

options.setProperty(org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING,
UTF-16);

And change UTF-16 to something like pt_BR.ISO-8859-1 or UTF-8,pt_BR ,
etc - for your locale ?

HTH,
Robert
http://www.braziloutsource.com

On 8/18/06, Javier V [EMAIL PROTECTED] wrote:

Hi.

I'm using JDK 1.4.2_12, Axi2 1.0 and Tomcat 4.1.31.

I've done a web service in Java and to test it I've done a client java class
with axis2 too.

My surprise is that when I invoke the service with my testclient in Windows,
all is ok. However, when I install ALL in Unix and I call the testclient in
Unix
there is something different with the extended characters, 'Ñ' in my case.
Let's me explain.

The testclient invokes the web service with the string PEÑISCOLA.

With the SOAPMonitor, in Windows, that word is converted to PEÃ'ISCOLA
that
is the conversion of the letter 'Ñ' in WIN1252 (windows encoding default) to
UTF-8 (how axis2 sends the message, I suppose).

However in Unix, that word is not converted to anything, and the SOAPMonitor
shows PEÑISCOLA, as the original, perhaps because unix encoding default is
equal
to the encoding how axis2 sends the message. Am I wrong?

I've tried to set in Unix the variable CATALINA_OPTS to
-D=file.encoding=CP1252
but I think it's doesn´t work.

Regards

Javier

_
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros.
http://astrocentro.msn.es/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Reading POJOs at client side

2006-08-18 Thread Dennis Sosnoski
What kind of performance advantages are you talking about, Robert? AFAIK 
the only way OM has any performance advantage is if it's not fully built 
(i.e., when it's used in conjunction with data binding, where the data 
binding handles actual data conversions to and from objects). Otherwise, 
it's just a somewhat heavy-weight document model.


 - Dennis

robert lazarski wrote:

OM has lots of performance advantages among many others so go with
that if in doubt.

HTH,
Robert
http://www.braziloutsource.com

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:

I guess, I am still trying to find out for interoperability reasons or
what is recommended way .If I should be using OMElement as input and
output for my methods [raw xml format] or should it be more structured
like using POJO etc.?
The one issue I see with RawXml is generating XML using OMElement's
API's where as I can easily create POJOs from my data.
Any recommendations.


-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 2:51 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Reading POJOs at client side

AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
way axis 1.x does , and the integration tests reflect that.  So if you
find a problem file a jira but I do expect that you can use these
examples between languages.

HTH,
Robert
http://www.braziloutsource.com/

On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 I might be wrong. This will work if client is a Java Client. What
 happens if the client is non-java, then is this way recommended or
 should I be using OMElement as input and output for my method. [Data
 goes in and out only in raw xml format]

 Any suggestions?



 -Original Message-
 From: robert lazarski [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 1:16 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Reading POJOs at client side

 In the latest source there is some integration tests:

 modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

 That has some array examples and should get you started.

 HTH,
 Robert
 http://www.braziloutsource.com/

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
  Using RPCMessageReceiver I was able pass person POJO to my client
from
 a
  web service
 
  public User[] getUsers() {
  return User array;
  }
 
  Now I have ,
 
  public void addUsers(User[]) {
  }
 
  Any idea on writing a java client to send user arrays to addUsers
 method
  of the same web service. User is a plain java class with getters and
  setters.
 
  Any help is appreciated.
 
 
  Thanks.
 
 
 
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Reading POJOs at client side

2006-08-18 Thread robert lazarski

Performance advantages in the context of OM and Stax versus the axis2
implementation of RPC and arrays, as the OP wanted ? AFAIK that case
has not been thrown against jmeter but my hunch is that OM and Stax
will run circles around anything involving the reflection based
RPCMessageReceiver. If you think otherwise I suppose we could agree to
a test case and do the pepsi challenge via jmeter ;-) . I'd be happy
to stand corrected.

Cheers,
Robert
http://www.braziloutsource.com

On 8/18/06, Dennis Sosnoski [EMAIL PROTECTED] wrote:

What kind of performance advantages are you talking about, Robert? AFAIK
the only way OM has any performance advantage is if it's not fully built
(i.e., when it's used in conjunction with data binding, where the data
binding handles actual data conversions to and from objects). Otherwise,
it's just a somewhat heavy-weight document model.

  - Dennis

robert lazarski wrote:
 OM has lots of performance advantages among many others so go with
 that if in doubt.

 HTH,
 Robert
 http://www.braziloutsource.com

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 I guess, I am still trying to find out for interoperability reasons or
 what is recommended way .If I should be using OMElement as input and
 output for my methods [raw xml format] or should it be more structured
 like using POJO etc.?
 The one issue I see with RawXml is generating XML using OMElement's
 API's where as I can easily create POJOs from my data.
 Any recommendations.


 -Original Message-
 From: robert lazarski [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 2:51 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Reading POJOs at client side

 AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
 way axis 1.x does , and the integration tests reflect that.  So if you
 find a problem file a jira but I do expect that you can use these
 examples between languages.

 HTH,
 Robert
 http://www.braziloutsource.com/

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
  I might be wrong. This will work if client is a Java Client. What
  happens if the client is non-java, then is this way recommended or
  should I be using OMElement as input and output for my method. [Data
  goes in and out only in raw xml format]
 
  Any suggestions?
 
 
 
  -Original Message-
  From: robert lazarski [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 18, 2006 1:16 PM
  To: axis-user@ws.apache.org
  Subject: Re: [Axis2] Reading POJOs at client side
 
  In the latest source there is some integration tests:
 
  modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
 
  That has some array examples and should get you started.
 
  HTH,
  Robert
  http://www.braziloutsource.com/
 
  On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
   Using RPCMessageReceiver I was able pass person POJO to my client
 from
  a
   web service
  
   public User[] getUsers() {
   return User array;
   }
  
   Now I have ,
  
   public void addUsers(User[]) {
   }
  
   Any idea on writing a java client to send user arrays to addUsers
  method
   of the same web service. User is a plain java class with getters and
   setters.
  
   Any help is appreciated.
  
  
   Thanks.
  
  
  
  
  
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] gzip or any other soap compression

2006-08-18 Thread Vijesh A.V.
Title: [Axis2] gzip or any other soap compression






Hi all,


I have been trying to find a solution for soap message body compression. How can I do it in Axis2?. I understand that gzip compression support is integrated in Axis2. But I couldn't find any implementation details (there is an axis 1.x solution though http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression . How can I do the same in Axis2?). Any solution using handlers?

Please do give some directions towards this.


Is it possible to use Fast Infoset https://fi.dev.java.net/ with axis (axiom?).


Any help will be appreciated.


Regards

Vijesh





RE: how do I use a client security certificate with client side axis program?? please respond

2006-08-18 Thread Larry Lemons



If I am understanding you question correctly, you need 
to import the certificate into your [JRE_HOME]/lib/security/cacerts certificate 
list as a trusted certificate.


Thank you,
Larry M. Lemons
(304) 726-4809 Ext. 4505




From: Hussain, Asim 
[mailto:[EMAIL PROTECTED] Sent: Friday, August 18, 2006 
2:55 PMTo: 'axis-user@ws.apache.org'Subject: how do I use 
a client security certificate with client side axis program?? please 
respond





Axis2 trasnport error

2006-08-18 Thread Jeff Ling
Hi guys,Here is a strange error. There is not much information even though I've turned on debug log using Log4j. Any thoughts? How do I config my app to generate more information to help debugging? This happened at a customer's site and the only tool available to me is log files. 
Thanks in advance!Jeff[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the OMElelment HeaderBy the StaxSOAPModelBuilder[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the OMElelment HeaderBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the OMElelment BodyBy the StaxSOAPModelBuilder[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the OMElelment BodyBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the OMElelment GetListCollectionBy the StaxSOAPModelBuilder[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the OMElelment GetListCollectionBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 ERROR [main] (Feeder.java:55) - Axis2 transport error : Not Found; nested exception is:  org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested exception is: org.apache.axis2.AxisFault
: Axis2 transport error : Not Found; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Found[EMAIL PROTECTED]:59:50 ERROR [main] (Feeder.java:55) - Axis2 transport error : Not Found; nested exception is: 
 org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Found



Re: [Axis2] Reading POJOs at client side

2006-08-18 Thread Dennis Sosnoski
Even reflection-based data binding can be faster than working with 
object models - but in this case, it looks like the BeanUtil code used 
for the conversions is building the tree in any case, rather than 
working directly with the parser. It also looks like it builds the 
reflection metadata every time through. So I suspect you're right that 
working directly with OM is going to be much faster than using this.


Performance aside, I'd think the programming advantages of working with 
classes rather than directly manipulating a document model would be a 
more important concern for most users. If they really need speed they're 
much better off using ADB or JiBX for the conversions to and from XML. 
JiBX is certainly much faster than using OM, and lets users work with 
their existing POJOs.


 - Dennis

robert lazarski wrote:

Performance advantages in the context of OM and Stax versus the axis2
implementation of RPC and arrays, as the OP wanted ? AFAIK that case
has not been thrown against jmeter but my hunch is that OM and Stax
will run circles around anything involving the reflection based
RPCMessageReceiver. If you think otherwise I suppose we could agree to
a test case and do the pepsi challenge via jmeter ;-) . I'd be happy
to stand corrected.

Cheers,
Robert
http://www.braziloutsource.com

On 8/18/06, Dennis Sosnoski [EMAIL PROTECTED] wrote:

What kind of performance advantages are you talking about, Robert? AFAIK
the only way OM has any performance advantage is if it's not fully built
(i.e., when it's used in conjunction with data binding, where the data
binding handles actual data conversions to and from objects). Otherwise,
it's just a somewhat heavy-weight document model.

  - Dennis

robert lazarski wrote:
 OM has lots of performance advantages among many others so go with
 that if in doubt.

 HTH,
 Robert
 http://www.braziloutsource.com

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
 I guess, I am still trying to find out for interoperability 
reasons or

 what is recommended way .If I should be using OMElement as input and
 output for my methods [raw xml format] or should it be more 
structured

 like using POJO etc.?
 The one issue I see with RawXml is generating XML using OMElement's
 API's where as I can easily create POJOs from my data.
 Any recommendations.


 -Original Message-
 From: robert lazarski [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 2:51 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Reading POJOs at client side

 AFAIK RPCMessageReceiver just follows the old jax-rpc JSR much in the
 way axis 1.x does , and the integration tests reflect that.  So if 
you

 find a problem file a jira but I do expect that you can use these
 examples between languages.

 HTH,
 Robert
 http://www.braziloutsource.com/

 On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
  I might be wrong. This will work if client is a Java Client. What
  happens if the client is non-java, then is this way recommended or
  should I be using OMElement as input and output for my method. 
[Data

  goes in and out only in raw xml format]
 
  Any suggestions?
 
 
 
  -Original Message-
  From: robert lazarski [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 18, 2006 1:16 PM
  To: axis-user@ws.apache.org
  Subject: Re: [Axis2] Reading POJOs at client side
 
  In the latest source there is some integration tests:
 
  modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
 
  That has some array examples and should get you started.
 
  HTH,
  Robert
  http://www.braziloutsource.com/
 
  On 8/18/06, Charak, Vikas [EMAIL PROTECTED] wrote:
   Using RPCMessageReceiver I was able pass person POJO to my client
 from
  a
   web service
  
   public User[] getUsers() {
   return User array;
   }
  
   Now I have ,
  
   public void addUsers(User[]) {
   }
  
   Any idea on writing a java client to send user arrays to addUsers
  method
   of the same web service. User is a plain java class with 
getters and

   setters.
  
   Any help is appreciated.
  
  
   Thanks.
  
  
  
  
  
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  
-

  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
-

  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 

Re: Need to Get Started

2006-08-18 Thread Richi Plana
Thanks, but I was hoping for an even simpler and quicker example than
that. Could someone tell me how to invoke the standalone server that
comes with the distribution?

There are two application classes in the distribution which, I'm
guessing, are standalone servers that can be used to get a feel for web
services: org.apache.axis2.transport.http.SimpleHTTPServer and
org.apache.axis2.transport.tcp.TCPServer . Am I misunderstanding the
purpose of these classes? How does one invoke SimpleHTTPServer? When
invoked, it asks for a repository. Which file is that? The aar file?

If someone could give me the 2 or 3 commands to start a service and a
client that uses that using the standalone server, I'll be one less
confused individual.


On Thu, 2006-08-17 at 18:32 -0300, robert lazarski wrote:
 Here's a quick artle that is about as simple as one could start:
 
 http://www.wso2.net/kb/90
 
 Word to the wise: Use the nightlies. We are getting close to 1.1 and a
 lot has happened since 1.0 :
 
 http://people.apache.org/dist/axis2/nightly/
 
 If you are looking for a full command line app with ant, you could try
 the ant task tutorial that goes through a whole case:
 
 http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html#invoking
 
 If you get through all that, here's the articles you're looking for:
 
 http://ws.apache.org/axis2/1_0/index.html
 
 HTH,
 Robert
 http://www.braziloutsource.com
 
 On 8/17/06, Richi Plana [EMAIL PROTECTED] wrote:
  Hi,
 
  Just a little backgrounder: I've done a lot of J2SE programming and
  little to no J2EE. I need to get up to speed with web services
  programming in Java and Axis2 seems like the most promising. I've
  downloaded the binary distribution for Axis2 1.0. I've read all the
  documentation. Unfortunately, the 1.0 docs require a bit of knowledge of
  something but I can't seem to figure out what. I've also googled for
  Axis2 tutorials and didn't come up with anything close to what I need.
 
  What I need is information on getting a minimal web services server and
  client up and running using the binaries I just downloaded and a J2SE
  1.5 VM. The documentation doesn't cover how one starts the services
  using the command-line at all. I'm familiar with the Java language and
  can pick up programming concepts pretty quickly. It's the usage of the
  standalone system that escapes me.
 
  If I could get tips on getting the Hello World equivalent of Axis2 up
  and running, I (and I'm sure many others) would greatly appreciate your
  help.
  --
 
  Richi Plana
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Axis2 trasnport error

2006-08-18 Thread Martin Gainty

Jeff-

Did you verify hostname(s) mail server(s) are reachable ?
Did you verify ports are not already bound?
Did you verify the service is published ?
http://MachineName:8080/axis2/services/listServices

Did you verify you are able to access the published wsdl?
Have you verified the messageReceiver class(es) from services.xml
   messageReceiver mep = http://www.w3.org/2004/08/wsdl/in-only; 
class=Verify the class specified here!

is on the classpath ???
Did you verify the mep is reachable ?

Perhaps the requestTimeout parameters in your axis2.xml is too small?
Perhaps the threadKeepAliveTime in your axis2.xml is too small?

Anyone else?

Martin--
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.

(mobile) 001-603-438-5053



Hi guys,

Here is a strange error. There is not much information even though I've
turned on debug log using Log4j.

Any thoughts? How do I config my app to generate more information to help
debugging? This happened at a customer's site and the only tool available 
to

me is log files.

Thanks in advance!

Jeff

[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the
OMElelment HeaderBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the
OMElelment HeaderBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the
OMElelment BodyBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the
OMElelment BodyBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the
OMElelment GetListCollectionBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build the
OMElelment GetListCollectionBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 ERROR [main] (Feeder.java:55) - Axis2 transport error : 
Not
Found; nested exception is:
   org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested
exception is:
   org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested
exception is:
   org.apache.axis2.AxisFault: Axis2 transport error : Not Found
[EMAIL PROTECTED]:59:50 ERROR [main] (Feeder.java:55) - Axis2 transport error : 
Not
Found; nested exception is:
   org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested
exception is:
   org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested
exception is:
   org.apache.axis2.AxisFault: Axis2 transport error : Not Found




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 trasnport error

2006-08-18 Thread Jeff Ling
Hi Martin,Sorry I didn't make it clear: This is a Microsoft Sharepoint portal Site, not Axis site. I am using Axis as the client (statically generated stub).The site is available, and authentication is successfult. The web services are also available, and many calls have succeeded.
JeffOn 8/18/06, Martin Gainty [EMAIL PROTECTED] wrote:
Jeff-Did you verify hostname(s) mail server(s) are reachable ?Did you verify ports are not already bound?Did you verify the service is published ?
http://MachineName:8080/axis2/services/listServicesDid you verify you are able to access the published wsdl?Have you verified the messageReceiver class(es) from services.xmlmessageReceiver mep = 
http://www.w3.org/2004/08/wsdl/in-onlyclass=Verify the class specified here!is on the classpath ???Did you verify the mep is reachable ?
Perhaps the requestTimeout parameters in your axis2.xml is too small?Perhaps the threadKeepAliveTime in your axis2.xml is too small?Anyone else?Martin--__
Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the officialbusiness of Sender. This transmission is of a confidential nature and Senderdoes not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within thistransmission.(mobile) 001-603-438-5053Hi guys,Here is a strange error. There is not much information even though I've
turned on debug log using Log4j.Any thoughts? How do I config my app to generate more information to helpdebugging? This happened at a customer's site and the only tool availableto
me is log files.Thanks in advance!Jeff[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build theOMElelment HeaderBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build theOMElelment HeaderBy the StaxSOAPModelBuilder[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build theOMElelment BodyBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build theOMElelment BodyBy the StaxSOAPModelBuilder[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build theOMElelment GetListCollectionBy the StaxSOAPModelBuilder
[EMAIL PROTECTED]:59:50 DEBUG [main] (StAXSOAPModelBuilder.java:187) - Build theOMElelment GetListCollectionBy the StaxSOAPModelBuilder[EMAIL PROTECTED]:59:50 ERROR [main] (Feeder.java:55) - Axis2 transport error : Not
Found; nested exception is:org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nestedexception is:org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nested
exception is:org.apache.axis2.AxisFault: Axis2 transport error : Not Found[EMAIL PROTECTED]:59:50 ERROR [main] (Feeder.java:55) - Axis2 transport error : NotFound; nested exception is:org.apache.axis2.AxisFault
: Axis2 transport error : Not Found; nestedexception is:org.apache.axis2.AxisFault: Axis2 transport error : Not Found; nestedexception is:org.apache.axis2.AxisFault: Axis2 transport error : Not Found
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]-- Jeff LingProduct Solutions EngineerGOOGLEOffice: (650) 253-3095Fax: (650) 618-1835 
Email: [EMAIL PROTECTED]


Re: [Axis2] gzip or any other soap compression

2006-08-18 Thread Eran Chinthaka
Vijesh A.V. wrote:
 
 
 Hi all,
 
 I have been trying to find a solution for soap message body compression.
 How can I do it in Axis2?. I understand that gzip compression support is
 integrated in Axis2. But I couldn't find any implementation details
 (there is an axis 1.x solution though
 http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression
 http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression . How can I
 do the same in Axis2?). Any solution using handlers?

Are you looking for this
(http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters#GZIP)

 
 Please do give some directions towards this.
 
 Is it possible to use Fast Infoset https://fi.dev.java.net/
 https://fi.dev.java.net/ with axis (axiom?).

Not yet. I tried two times to do this, but there was a problem with the
way FI throws StAX events. Didn't look in to that after that. Do you
wanna help us with that?

-- Chinthaka



signature.asc
Description: OpenPGP digital signature