Re: Need Help: Axis 1.3 Array Problem.

2006-07-06 Thread Amit Andhale
Hi Anne,
I used WSDL First Approach and used unwrapped arrays.
When I deployed the web service, and accessed it from Internet Explorer it showed me a ArrayType.
E.G. In my WSDL I declared Array as an member of class as follows
 
 






sequence>
extension>
complexContent>
complexType>
But After deployement, when I browsed Webservice using 
http://localhost:8080/MyApp/services/WSDLFirst?wsdlIt shows me 
 

   

 
It is not according to my Actual WSDL.
When I access this webservice from .NET I still don't get values of Inner Array which is inside another Array!
 
Amit
 
 
On 7/7/06, Amit Andhale <[EMAIL PROTECTED]> wrote:


Hi , 
 
Stanley: Thanks, by following steps you suggested I got the OutPut.
But I update the web reference on .NET side, it will flush out my changes. So this is very rudimentory solution for me.
How did you solve your problem?
 
Anne: I got your point. I will try to use WSDL first approach and will unwrapp the Arrays.

 
Amit

 
 
 
On 7/7/06, Stanley Stanev <[EMAIL PROTECTED]
> wrote: 


We changed one of the XML serialization attributes of the array ITEMIn the Reference.cs (generated proxy) we altered the individual response object (in the sample case we did FindAllCompaniesResponse) 
There is an XmlArrayItemAttribute("item", IsNullable=false) that we changed to:XmlArrayItemAttribute("companies", IsNullable=false)item ->companiesin your case companies should be something else... 
enjoy,Stanimir Stanev (Stanley)

On 7/6/06, Amit Andhale 
<[EMAIL PROTECTED]> wrote: 
Hi, Thanks for prompt reply! Yes! I do have "style=WRAPPED" in my WSDL. I have not checked with "DOCUMENT" style. I will check it and post my reply soon. 
Could you please tell me what changes you have made on .NET side Proxy class? This is very important task for me. And for the first time I am working on Axis web service. Amit 
On 7/6/06, Stanley Stanev <[EMAIL PROTECTED]> wrote: > > > Amit, > > we have solved this by changing a bit the generated proxy classes on the 
.NET side, not good as it requires a very small change, but no way you can fix this, bad for Axis 1.x > > also, I bet you have in your WSDD style="wrapped" when you describe your service 
> > can you try with style="document", what is the result? what is the SOAP in this case? > > thanks, > > Stanley Stanev > > > Amit Andhale wrote: 
> > > Hi John, > Did your problem get solved using Axis2 or XFire? > > Amit > > > On 7/5/06, Amit Andhale 
<[EMAIL PROTECTED] > wrote: > > > > Thanks John! I also tried out removing ArrayMapping from WSDD. But issue still persists. > > > > > > > > On 7/5/06, john andersen 
<[EMAIL PROTECTED] > wrote: > > > > > > I ran into the exact same issue with both Axis 
1.4 and Axis 1.3 but I used a gSOAP client instead of .NET - the array member tags were set  to the name of the enclosing array.  This problem does not exist in Axis2.  Unless this is a valid way to represent an array in XML, this seems to be an Axis 
1.3/1.4 issue. > > > > > > Can this be a configuration issue?  I have added/removed ArrayMappings in the wsdd and have no idea what else I can poke to alter this behavior. > > > 
> > > > > > > > > > > > > > > On 7/5/06, Amit Andhale 
<[EMAIL PROTECTED] > wrote: > > > > > > > > > > > > Hi Anne, > > > I rebooted the server and redeployed the service. > > > I am still getting the SOAP Response in following fashion, 
> > > > > > > > >  > > >  > > >      # WRONG 
> > >      # WRONG > > >  > > >    > > > > > > 
> > > Please find actual SOAP response below: > > > > - To unsubscribe, e-mail: 
[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 

-- 

Stanimir Stanev (Stanley)
Senior Java Developer
www.stanev.com



Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Deepal Jayasinghe
Hi Fabien;
pls see my comments below;

Fabien Couble wrote:

>
> Thx for your response, but there's still a problem.
>
> I add your command:
> ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
>
> Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
> "C:/Program Files/Apache Software Foundation/Tomcat
> 5.5/webapps/axis2/WEB-INF/conf/axis2.xml");
>
> In fact, the server and the client has the same axis2.xml (I think
> it's normal) but now i can't engage the modules at the client side
> with the sender.engageModule(...) because an exception is raised
> saying that the modules have already been added.

you do not need to call sender.engageModule if you have module ref in
axis2.xml , that is why you are getting that error.

can you please explain to me what realy you tried to do , if possible
send me the client code that you used , then I can help you.

> So I remove these commands  but another exception is raised:
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> />soapenv:Client
>
> The server 10.68.150.83 failed to respond; nested exception is:
> org.apache.commons.httpclient.NoHttpResponseException: The server
> 10.68.150.83 failed to
> respondorg.apache.axis2.AxisFault:
> The server 10.68.150.83 failed to respond; nested exception is:
> org.apache.commons.httpclient.NoHttpResponseException: The server
> 10.68.150.83 failed to respond; nested exception is:
> org.apache.axis2.AxisFault: The server 10.68.150.83 failed to respond;
> nested exception is:
> org.apache.commons.httpclient.NoHttpResponseException: The server
> 10.68.150.83 failed to respond
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
>
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:639)
> at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>
> 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:252)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.axis2.AxisFault: The server 10.68.150.83 failed
> to respond; nested exception is:
> org.apache.commons.httpclient.NoHttpResponseException: The server
> 10.68.150.83 failed to respond
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:304)
>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
>
> ... 21 more
> Caused by: org.apache.commons.httpclient.NoHttpResponseException: The
> server 10.68.150.83 failed to respond
> at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)
>
> at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
>
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
>
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
>
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>
> at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender

Re: Need Help: Axis 1.3 Array Problem.

2006-07-06 Thread Amit Andhale
Hi , 
 
Stanley: Thanks, by following steps you suggested I got the OutPut.
But I update the web reference on .NET side, it will flush out my changes. So this is very rudimentory solution for me.
How did you solve your problem?
 
Anne: I got your point. I will try to use WSDL first approach and will unwrapp the Arrays.
 
Amit
 
 
 
On 7/7/06, Stanley Stanev <[EMAIL PROTECTED]> wrote:


We changed one of the XML serialization attributes of the array ITEMIn the Reference.cs (generated proxy) we altered the individual response object (in the sample case we did FindAllCompaniesResponse)
There is an XmlArrayItemAttribute("item", IsNullable=false) that we changed to:XmlArrayItemAttribute("companies", IsNullable=false)item ->companiesin your case companies should be something else...
enjoy,Stanimir Stanev (Stanley)

On 7/6/06, Amit Andhale 
<[EMAIL PROTECTED]> wrote: 
Hi, Thanks for prompt reply! Yes! I do have "style=WRAPPED" in my WSDL. I have not checked with "DOCUMENT" style. I will check it and post my reply soon. 
Could you please tell me what changes you have made on .NET side Proxy class? This is very important task for me. And for the first time I am working on Axis web service. Amit 
On 7/6/06, Stanley Stanev <[EMAIL PROTECTED]> wrote: > > > Amit, > > we have solved this by changing a bit the generated proxy classes on the 
.NET side, not good as it requires a very small change, but no way you can fix this, bad for Axis 1.x > > also, I bet you have in your WSDD style="wrapped" when you describe your service 
> > can you try with style="document", what is the result? what is the SOAP in this case? > > thanks, > > Stanley Stanev > > > Amit Andhale wrote: 
> > > Hi John, > Did your problem get solved using Axis2 or XFire? > > Amit > > > On 7/5/06, Amit Andhale 
<[EMAIL PROTECTED] > wrote: > > > > Thanks John! I also tried out removing ArrayMapping from WSDD. But issue still persists. > > > > > > > > On 7/5/06, john andersen 
<[EMAIL PROTECTED] > wrote: > > > > > > I ran into the exact same issue with both Axis 
1.4 and Axis 1.3 but I used a gSOAP client instead of .NET - the array member tags were set  to the name of the enclosing array.  This problem does not exist in Axis2.  Unless this is a valid way to represent an array in XML, this seems to be an Axis 
1.3/1.4 issue. > > > > > > Can this be a configuration issue?  I have added/removed ArrayMappings in the wsdd and have no idea what else I can poke to alter this behavior. > > > 
> > > > > > > > > > > > > > > On 7/5/06, Amit Andhale 
<[EMAIL PROTECTED] > wrote: > > > > > > > > > > > > Hi Anne, > > > I rebooted the server and redeployed the service. > > > I am still getting the SOAP Response in following fashion, 
> > > > > > > > >  > > >  > > >      # WRONG 
> > >      # WRONG > > >  > > >    > > > > > > 
> > > Please find actual SOAP response below: > > > > - To unsubscribe, e-mail: 
[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 

Stanimir Stanev (Stanley)
Senior Java Developer
www.stanev.com



[Axis 1.4] Server side question !!!

2006-07-06 Thread Luis Rivera


  Hi axis users,

I finally got the green light to port the server side or our web services 
from LEIF/Roguewave to axis. The main reason is economics, we want to 
explore cheaper options.


I was exploring the alternatives for serverlet containers in the server 
side, which will be Windows/Solaris. I think the best for axis is Tomcat, 
but I am confused with regard to the version I am supposed to use or if this 
is the way to go.


I also looked into Sun Application Server  (J2EE based I believe) but why 
would I do that? It seems that I would not need axis if I used Sun 
Application Server.


So, if I had to justify axis/Tomcat vs J2EE, what would be the best 
arguments in favor of axis?


   Thanks in advance,
   --Luis R.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



Re: Beanserializers and Namespaces (Axis1 1.3)

2006-07-06 Thread Chris List
I'd like the answer to this one as well.  So far I have come up with two options that I don't like so much.  I am hoping Axis isn't this primitive...1) Tweak the WSDL so all complex types use the default namespace.2) Cut and paste the Axis generated client side bean code into your server side value object.I don't like either but that is how I solved it until someone has a better answer.Jansen Werner <[EMAIL PROTECTED]> wrote: Hi everybody,I still have this open issue with Axis concerning BeanSerializers andnamespaces. Classes serialized with this serializer do not have anamespace associated to their elements (=properties) and I don't why and- what's even more important - how to make the BeanSerializer use thenamespace.There is a simple class, UserInfo for example. It
 only consists of two"properties", userName and userDescription that are accessible via thestandard getter/setter pairs. The parameterless default constructor ispresent as well.Since this class is so simple, I decided to serialize it usingBeanSerializer:(call is an axis client call object)call.registerTypeMapping(UserInfo.class, new QName(Constants.PRS_NAMESPACE_URI, "UserInfo"), new BeanSerializerFactory(UserInfo.class,   new QName(Constants.PRS_NAMESPACE_URI, "UserInfo")),new BeanDeserializerFactory(UserInfo.class,   new QName(Constants.PRS_NAMESPACE_URI, "UserInfo")));A call to the Web Service, however does not look like I expected it tobe. This is what goes over the wire (abbreviated):usernameuserdescriptionThe
 XML tag corresponding to the serialized class has its namespace, butnot the properties of the serialized tags (i.e. the tags below). Where's my mistake? What do I miss?Thanks in advance,Werner-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.

Re: Newbie: how to deserialize a list of objects

2006-07-06 Thread Bruno Negrao

Please, if somebody can tech me how to deserialize this XML thing I'll be glad.

thank you,

bruno

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



Re: Need Help: Axis 1.3 Array Problem.

2006-07-06 Thread Stanley Stanev




We changed one of the XML serialization
attributes of the array ITEM

In the Reference.cs (generated proxy) we altered the individual
response object (in the sample case we did FindAllCompaniesResponse)

There is an XmlArrayItemAttribute("item", IsNullable=false) 
that we changed to:
XmlArrayItemAttribute("companies", IsNullable=false)

item ->companies

in your case companies should be something else...

enjoy,
Stanimir Stanev (Stanley)


On 7/6/06, Amit Andhale <[EMAIL PROTECTED]>
wrote:
  
  
Hi,

Thanks for prompt reply!

Yes! I do have "style=WRAPPED" in my WSDL.

I have not checked with "DOCUMENT" style. I will check it and post my
reply

soon.


Could you please tell me what changes you have made on .NET side Proxy

class?

This is very important task for me. And for the first time I am working
on

Axis web service.



Amit





On 7/6/06, Stanley Stanev <[EMAIL PROTECTED]> wrote:

>

>

> Amit,

>

> we have solved this by changing a bit the generated proxy classes
on the

.NET side, not good as it requires a very small change, but no way you
can

fix this, bad for Axis 1.x

>

> also, I bet you have in your WSDD style="wrapped" when you
describe your

service

>

> can you try with style="document", what is the result? what is the
SOAP in

this case?

>

> thanks,

>

> Stanley Stanev

>

>

> Amit Andhale wrote:

>

>

> Hi John,

> Did your problem get solved using Axis2 or XFire?

>

> Amit

>

>

> On 7/5/06, Amit Andhale <[EMAIL PROTECTED] > wrote:

> >

> > Thanks John! I also tried out removing ArrayMapping from
WSDD. But issue

still persists.

> >

> >

> >

> > On 7/5/06, john andersen <[EMAIL PROTECTED] > wrote:

> > >

> > > I ran into the exact same issue with both Axis 1.4 and
Axis 1.3 but I

used a gSOAP client instead of .NET - the array member tags were set 
to the

name of the enclosing array.  This problem does not exist in Axis2. 
Unless

this is a valid way to represent an array in XML, this seems to be an
Axis

1.3/1.4 issue.

> > >

> > > Can this be a configuration issue?  I have added/removed
ArrayMappings

in the wsdd and have no idea what else I can poke to alter this
behavior.

> > >

> > >

> > >

> > >

> > >

> > > On 7/5/06, Amit Andhale <[EMAIL PROTECTED] >
wrote:

> > >

> > >

> > >

> > > Hi Anne,

> > > I rebooted the server and redeployed the service.

> > > I am still getting the SOAP Response in following
fashion,

> > >

> > >

> > > 

> > > 

> > >  


  # WRONG

> > >  


  # WRONG

> > > 

> > >   

> > >

> > >

> > > Please find actual SOAP response below:

> >

>

>



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



-- 

Stanimir Stanev (Stanley)
Senior Java Developer
www.stanev.com





Re: Newbie: how to deserialize a list of objects

2006-07-06 Thread robert lazarski

I'll point you to the nightliers because there's been some bug fixes,
and that class may be new since the 1.0 release:

http://people.apache.org/dist/axis2/nightly/

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

On 7/6/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:

Robert,

I've downloaded the axis2 source but I could not find the
RPCCallTest.java file. Can you simple attach it and send it to me by
email?
Thank you,
bruno

On 7/6/06, robert lazarski <[EMAIL PROTECTED]> wrote:
> The code in the src distro explains this:
>
> modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
>
> From  testechoMail() ,
>
> OMElement response = sender.invokeBlocking(operationName, args.toArray());
>
> Mail resBean = (Mail) BeanUtil.deserialize(Mail.class,
> response.getFirstElement());
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 7/6/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:
> > Guys,
> >
> > I don't know how to deserialize the soap message bellow that my soap
> > server is sending. it is not java server and I dont have the WSDL. The
> > method I called
> > was "AgendaPesquisa". It's a method to search in a contacts catalog
> > for a contact(a person) with some characterisctic. The server then
> > returns a list of contacts that matched the search. The contact
> > objects are contained inside the  ...
> >  tags.
> > thank you for any help.
> >
> > HTTP/1.0 200 OK
> > Content-length: 1750
> >
> > 
> >http://schemas.xmlsoap.org/soap/envelope/";>
> >   
> >  
> > 0
> > 
> >C
> >1920
> >1
> >Eu
> >1900
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> > 
> >C
> >1931
> >1
> >Bla2
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >  
> >   
> >
> >
> > -
> > 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: Newbie: how to deserialize a list of objects

2006-07-06 Thread Bruno Negrao

Robert,

I've downloaded the axis2 source but I could not find the
RPCCallTest.java file. Can you simple attach it and send it to me by
email?
Thank you,
bruno

On 7/6/06, robert lazarski <[EMAIL PROTECTED]> wrote:

The code in the src distro explains this:

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

From  testechoMail() ,

OMElement response = sender.invokeBlocking(operationName, args.toArray());

Mail resBean = (Mail) BeanUtil.deserialize(Mail.class,
response.getFirstElement());

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

On 7/6/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:
> Guys,
>
> I don't know how to deserialize the soap message bellow that my soap
> server is sending. it is not java server and I dont have the WSDL. The
> method I called
> was "AgendaPesquisa". It's a method to search in a contacts catalog
> for a contact(a person) with some characterisctic. The server then
> returns a list of contacts that matched the search. The contact
> objects are contained inside the  ...
>  tags.
> thank you for any help.
>
> HTTP/1.0 200 OK
> Content-length: 1750
>
> 
>http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  
> 0
> 
>C
>1920
>1
>Eu
>1900
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
> 
>C
>1931
>1
>Bla2
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>  
>   
>
>
> -
> 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] JMS support improvements

2006-07-06 Thread Ali Sadik Kumlali
Hi Asankha,Sorry for the late response. I was busy with:1) Examining the listener part of the new JMS implementation2) Discovering the security settings of the SonicMQ3) Creating authenticated connections to the SonicMQ from Hermes[1] and Axis24) Preparing unit testsI opened a JIRA issue[2] and attached my work. We may discuss all the topics step by step over this.BTW, it's good to know there is someone else in this space ;PAli Sadik Kumlali[1] www.hermesjms.com[2] http://issues.apache.org/jira/browse/AXIS2-868- Original Message From: Asankha C. Perera <[EMAIL PROTECTED]>To: axis-dev@ws.apache.orgCc: axis-user@ws.apache.orgSent: Tuesday, July 4, 2006 8:57:12 AMSubject: Re: [Axis2] JMS support improvements


  
Hi Ali

I wrote the new JMS implementation, but please note that it has not
been made the default Axis2 JMS implementation yet.. As I come from the
Synapse background, my main concerns were to be able to listen on
multiple JMS destinations (probably using different JMS servers) by
different services. I really appreciate your feedback and apologize for
the delay in replying to this email thread as I was at ApacheCon last
week. 

So.. as I guess you are not alone anymore in the JMS space.. can we
take things one by one and get them resolved? Nothing would make me
happier than to also see you get involved in fixing some of these
issues you have discovered with your suggested resolutions :-) I will
answer the following questions from the new JMS implementation
perspective as I do not have much experience with the current
implementation.

  New JMS Implementation- [New Feature] Handling connections to security enabled brokers [1]  - There is no support for authenticated connections. But in real life;- Each connection may require username and password- Each binding/broker(transport.jms.ConnectionFactoryJNDIName) may   require a different username & password- There is a need for a place to store connection username & password   (probably within axis2.xml [2])  

The new JMS implementation allows you to define one or more connection
factories that you could listen on. You can provide the user name and
password to be used to get the context through the
java.naming.security.principal and java.naming.security.credentials
properties set on the connection factory. I believe that the 
javax.jms.ConnectionFactory.createConnection() now uses the above, as
the default user identity.

    
    
        org.apache.activemq.jndi.ActiveMQInitialContextFactory
        tcp://localhost:61616        
        myuser
        mypassword
        QueueConnectionFactory
    
    


  - [New Feature] ConnectionFactory cache [3]  - In SonicMQ, if ConnectionFactory is retrieved from the JNDI for each connection, very high memory usage which prevents access to admin console occurs during high message traffic. And sometimes the server crashes.  - AFAIK, old JMS implementation uses connectors to achive this.  

The JMS listener focuses on listening for JMS messages - and I believe
that the optimization that one could perform on outgoing JMS is limited
- as different messages may be destined for different JMS destinations.
However, I also think that we could use the "default" connection
factory (if one is defined) for outgoing messages with a minor patch..
Will this be ok?

  - [New Feature] Connection pool [3]  - I'm not 100% sure here. Caching ConnectionFactory would be suffient ifvendor specific ConnectionFactory internally supports connection pool.Or, perhaps, a ConnectionPool which internally holds connectionsand uses ConnectionFactory cache may be written.

The new code does not go into vendor specifics.. hence if a vendor does
have optimizations, they will be used through the standard JMS code we
are using.

  Common for both Implementation  -  - [Bug?] fireAndForget () waits for response when it comes to JMS[5]   - In JMSSender.invoke(), there is waitForResponse variable that is set  according to the separate channel use. Because of this, I need to  pass true to options.setUseSeparateListener() before calling  fireAndForget (). Does it logically correct? I mean, don't we expect  fireAndForget() to be used for one-way messaging? I think fireAndForget()  should be irrelevant to the response message and so the listener.

I think the fireAndForget() should set the appropriate settings. Do you
think so too?

 - [New Feature] Message driven beans  as service endpoints   - That would be a great feature. JBossWS supports MDBs[6].  

I'm sure any help on such features would be very welcome by the
community :-)

   - [Improvement] JMS URL concept/proposal/tutorial should be clarified/updated[7]   - There is one proposal for Axis1[8] and none for Axis2. It seems, some of  the parameters are not used in Axis2.

Agreed.. will need some time thoug

ServiceLocator versus the bindingstub

2006-07-06 Thread Wishing Carebear
Hello:I have just started out some samples with axis1.4.When the wsdl2java is run for a wsdl, it generates the ServiceLocator as well the BindingStub. Trying to understand the advantages of using the ServiceLocator rather than using the BindingStub directly. 
Thanks for your help and time,Regards,cbear


Re: Re: Converting from Glue to Axis2.0

2006-07-06 Thread Martin Gainty



Good Afternoon John-
I didnt see your definition for namespace /*I assume defined in the 
Envelope */operation  /*I assume part of Service 
*/ServiceClientThanksMartin 
--*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: axis-user@ws.apache.org 
  Sent: Thursday, July 06, 2006 4:40 
  PM
  Subject: Re: Re: Converting from Glue to 
  Axis2.0
  
  M, 
   
  The code that I am pasting does work. I had to restart from scratch 
  was able to successfully create the soap wrapper/header correctly.  But I 
  do have an oustanding issue that I have annotated in a previous email 
  regarding the ServiceClient.sendRecieve() method.  I've attached the 
  email to which I am having the problem.  I'm waiting on a response from 
  the user-group.  Thanks for following up on this.
   
    // create the parser  XMLStreamReader parser = 
  XMLInputFactory.newInstance().createXMLStreamReader(new 
  FileInputStream(file));
   
    // create the builder  StAXOMBuilder builder = 
  new StAXOMBuilder(parser);
   
    // get the root element (in this case the 
  envelope)  OMElement documentElement = 
  builder.getDocumentElement();  SOAPFactory 
  omfactory;  if (soapVersion.equals("1.2")) 
  {   omfactory = 
  OMAbstractFactory.getSOAP12Factory();   log.debug("Setting 
  up SOAP1.2 message");  } else 
  {   omfactory = 
  OMAbstractFactory.getSOAP11Factory();   log.debug("Setting 
  up SOAP1.1 message");  }  SOAPEnvelope 
  envelope = omfactory.createSOAPEnvelope();  OMElement action = 
  "" namespace, "");  SOAPBody 
  body = 
  omfactory.createSOAPBody(envelope);  action.addChild(documentElement);  body.addChild(action)
  John
  >>> [EMAIL PROTECTED] 07/06/06 3:22 PM 
  >>>
  
  Good Afternoon John-AXIS 2 is decidedly not beta 
  readyThe functionality I had with Axis-1_3 (which worked 
  flawlessly BTW) is either
  Missing entirely..Is there one working jws which the AxisServlet 
  will publish as a working AxisServlet service?
  Doesnt work at all ..try running WSDL2Java on any WSDL in the samples 
  folder and watch the fireworksLast..Maven is a great tool for build 
  engineers but I prefer AntComments?M-
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 6:01 
PM
Subject: Re: Re: Converting from Glue 
to Axis2.0

Yes I did and the code that you recommended to me does work, but I have 
to manually then create the header, evelope, and body tags for the soap 
message. 
Some of the code that I was using was also from   http://ws.apache.org/axis2/1_0/OMTutorial.html which 
is talked about more at the very bottom of this email.  
 
John>>> [EMAIL PROTECTED] 07/05/06 4:36 PM 
>>>

Hi John-I dont know about your converter but personally  I 
didnt see anything that resembled the V1.x code that you generated
 
did you get a chance to take a look at the sample 2.x client 
code located at
samples/googleSpellcheck/src/sample/google/spellcheck/FormModel.javaM-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this 
email message isaddressed.  If you have received this email message 
in error, please notifythe sender immediately by telephone or email and 
destroy the originalmessage without making a copy.  Thank 
you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Wednesday, July 05, 2006 5:13 
  PM
  Subject: Re: Re: Converting from Glue 
  to Axis2.0
  http://ws.apache.org/axis2/>>> 
  [EMAIL PROTECTED] 07/05/06 4:05 
  PM >>>
  
  Ok - Where is Axis 2.0 located??
  The latest version I can find at http://ws.apache.org/axis/ is V 
  1.4Martin --
  *This 
  email message and any files transmitted with it contain 
  

Re: Newbie: how to deserialize a list of objects

2006-07-06 Thread robert lazarski

The code in the src distro explains this:

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


From  testechoMail() ,


OMElement response = sender.invokeBlocking(operationName, args.toArray());

Mail resBean = (Mail) BeanUtil.deserialize(Mail.class,
response.getFirstElement());

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

On 7/6/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:

Guys,

I don't know how to deserialize the soap message bellow that my soap
server is sending. it is not java server and I dont have the WSDL. The
method I called
was "AgendaPesquisa". It's a method to search in a contacts catalog
for a contact(a person) with some characterisctic. The server then
returns a list of contacts that matched the search. The contact
objects are contained inside the  ...
 tags.
thank you for any help.

HTTP/1.0 200 OK
Content-length: 1750


   http://schemas.xmlsoap.org/soap/envelope/";>
  
 
0

   C
   1920
   1
   Eu
   1900
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


   C
   1931
   1
   Bla2
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

 
  
   

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



Newbie: how to deserialize a list of objects

2006-07-06 Thread Bruno Negrao

Guys,

I don't know how to deserialize the soap message bellow that my soap
server is sending. it is not java server and I dont have the WSDL. The
method I called
was "AgendaPesquisa". It's a method to search in a contacts catalog
for a contact(a person) with some characterisctic. The server then
returns a list of contacts that matched the search. The contact
objects are contained inside the  ...
 tags.
thank you for any help.

HTTP/1.0 200 OK
Content-length: 1750


  http://schemas.xmlsoap.org/soap/envelope/";>
 

   0
   
  C
  1920
  1
  Eu
  1900
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   
   
  C
  1931
  1
  Bla2
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   

 
  

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



Re: Re: Converting from Glue to Axis2.0

2006-07-06 Thread John Ferron


M, 
 
The code that I am pasting does work. I had to restart from scratch was able to successfully create the soap wrapper/header correctly.  But I do have an oustanding issue that I have annotated in a previous email regarding the ServiceClient.sendRecieve() method.  I've attached the email to which I am having the problem.  I'm waiting on a response from the user-group.  Thanks for following up on this.
 
  // create the parser  XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileInputStream(file));
 
  // create the builder  StAXOMBuilder builder = new StAXOMBuilder(parser);
 
  // get the root element (in this case the envelope)  OMElement documentElement = builder.getDocumentElement();  SOAPFactory omfactory;  if (soapVersion.equals("1.2")) {   omfactory = OMAbstractFactory.getSOAP12Factory();   log.debug("Setting up SOAP1.2 message");  } else {   omfactory = OMAbstractFactory.getSOAP11Factory();   log.debug("Setting up SOAP1.1 message");  }  SOAPEnvelope envelope = omfactory.createSOAPEnvelope();  OMElement action = "" namespace, "");  SOAPBody body = omfactory.createSOAPBody(envelope);  action.addChild(documentElement);  body.addChild(action)
John
>>> [EMAIL PROTECTED] 07/06/06 3:22 PM >>>

Good Afternoon John-AXIS 2 is decidedly not beta readyThe functionality I had with Axis-1_3 (which worked flawlessly BTW) is either
Missing entirely..Is there one working jws which the AxisServlet will publish as a working AxisServlet service?
Doesnt work at all ..try running WSDL2Java on any WSDL in the samples folder and watch the fireworksLast..Maven is a great tool for build engineers but I prefer AntComments?M-
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 6:01 PM
Subject: Re: Re: Converting from Glue to Axis2.0

Yes I did and the code that you recommended to me does work, but I have to manually then create the header, evelope, and body tags for the soap message. 
Some of the code that I was using was also from   http://ws.apache.org/axis2/1_0/OMTutorial.html which is talked about more at the very bottom of this email.  
 
John>>> [EMAIL PROTECTED] 07/05/06 4:36 PM >>>

Hi John-I dont know about your converter but personally  I didnt see anything that resembled the V1.x code that you generated
 
did you get a chance to take a look at the sample 2.x client code located at
samples/googleSpellcheck/src/sample/google/spellcheck/FormModel.javaM-
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 5:13 PM
Subject: Re: Re: Converting from Glue to Axis2.0
http://ws.apache.org/axis2/>>> [EMAIL PROTECTED] 07/05/06 4:05 PM >>>

Ok - Where is Axis 2.0 located??
The latest version I can find at http://ws.apache.org/axis/ is V 1.4Martin --
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 

- Original Message - 
From: John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 4:31 PM
Subject: Re: Re: Converting from Glue to Axis2.0

Martin,
 
The createName() method does not exist in the Axis 2.0 release, as least from what I can tellI am using axis2.0 release 1.0
 
John>>> [EMAIL PROTECTED] 07/05/06 3:05 PM >>>

The best way to handle this is to call the SOAPEnvelope.createNameto create a valid name and add that Child to the body-
 
try
{
Name name = envelope.createName("GetLastTradePrice", "WOMBAT",http://www.wombat.org/trader);
body.addChild(name);
}
catch(SOAPException excp)
{
//log the error here
}take a look at this declaration
http://ws.apache.org/axis/java/apiDocs/javax/xml/soap/Name.htmlMartin --
*This email message and any files transmitted wi

Re: Re: Converting from Glue to Axis2.0

2006-07-06 Thread Martin Gainty



Folks-Finally found a WSDL that works with WSDL2Java to 
generate stubs-
 
org.apache.axis2.wsdl.WSDL2Java -uri file://AXIS/Axis-2_1/samples/wsdl/Axis2SampleDocLit.wsdlStill 
looking for more (and better) examples
ThanksM-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  Martin 
  Gainty 
  To: axis-user@ws.apache.org 
  Sent: Thursday, July 06, 2006 4:22 
  PM
  Subject: Re: Re: Converting from Glue to 
  Axis2.0
  
  Good Afternoon John-AXIS 2 is decidedly not beta 
  readyThe functionality I had with Axis-1_3 (which worked 
  flawlessly BTW) is either
  Missing entirely..Is there one working jws which the AxisServlet 
  will publish as a working AxisServlet service?
  Doesnt work at all ..try running WSDL2Java on any WSDL in the samples 
  folder and watch the fireworksLast..Maven is a great tool for build 
  engineers but I prefer AntComments?M-
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 6:01 
PM
Subject: Re: Re: Converting from Glue 
to Axis2.0

Yes I did and the code that you recommended to me does work, but I have 
to manually then create the header, evelope, and body tags for the soap 
message. 
Some of the code that I was using was also from   http://ws.apache.org/axis2/1_0/OMTutorial.html which 
is talked about more at the very bottom of this email.  
 
John>>> [EMAIL PROTECTED] 07/05/06 4:36 PM 
>>>

Hi John-I dont know about your converter but personally  I 
didnt see anything that resembled the V1.x code that you generated
 
did you get a chance to take a look at the sample 2.x client 
code located at
samples/googleSpellcheck/src/sample/google/spellcheck/FormModel.javaM-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this 
email message isaddressed.  If you have received this email message 
in error, please notifythe sender immediately by telephone or email and 
destroy the originalmessage without making a copy.  Thank 
you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Wednesday, July 05, 2006 5:13 
  PM
  Subject: Re: Re: Converting from Glue 
  to Axis2.0
  http://ws.apache.org/axis2/>>> 
  [EMAIL PROTECTED] 07/05/06 4:05 
  PM >>>
  
  Ok - Where is Axis 2.0 located??
  The latest version I can find at http://ws.apache.org/axis/ is V 
  1.4Martin --
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this 
  email message isaddressed.  If you have received this email 
  message in error, please notifythe sender immediately by telephone or 
  email and destroy the originalmessage without making a copy.  
  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 4:31 
PM
Subject: Re: Re: Converting from 
Glue to Axis2.0

Martin,
 
The createName() method does not exist in the Axis 2.0 release, as 
least from what I can tellI am using axis2.0 release 1.0
 
John>>> [EMAIL PROTECTED] 07/05/06 3:05 
PM >>>

The best way to handle this is to call 
the SOAPEnvelope.createNameto create a valid name and add that 
Child to the body-
 
try
{
Name name = envelope.createName("GetLastTradePrice", "WOMBAT",http://www.wombat.org/trader);
body.addChild(name);
}
catch(SOAPException excp)
{
//log the error here
}take a look at this declaration
http://ws.apache.org/ax

Re: Re: Converting from Glue to Axis2.0

2006-07-06 Thread Martin Gainty



Good Afternoon John-AXIS 2 is decidedly not beta 
readyThe functionality I had with Axis-1_3 (which worked 
flawlessly BTW) is either
Missing entirely..Is there one working jws which the AxisServlet 
will publish as a working AxisServlet service?
Doesnt work at all ..try running WSDL2Java on any WSDL in the samples 
folder and watch the fireworksLast..Maven is a great tool for build 
engineers but I prefer AntComments?M-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Wednesday, July 05, 2006 6:01 
  PM
  Subject: Re: Re: Converting from Glue to 
  Axis2.0
  
  Yes I did and the code that you recommended to me does work, but I have 
  to manually then create the header, evelope, and body tags for the soap 
  message. 
  Some of the code that I was using was also from   http://ws.apache.org/axis2/1_0/OMTutorial.html which 
  is talked about more at the very bottom of this email.  
   
  John>>> [EMAIL PROTECTED] 07/05/06 4:36 PM 
  >>>
  
  Hi John-I dont know about your converter but personally  I didnt 
  see anything that resembled the V1.x code that you generated
   
  did you get a chance to take a look at the sample 2.x client 
  code located at
  samples/googleSpellcheck/src/sample/google/spellcheck/FormModel.javaM-
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this email 
  message isaddressed.  If you have received this email message in 
  error, please notifythe sender immediately by telephone or email and 
  destroy the originalmessage without making a copy.  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 5:13 
PM
Subject: Re: Re: Converting from Glue 
to Axis2.0
http://ws.apache.org/axis2/>>> 
[EMAIL PROTECTED] 07/05/06 4:05 
PM >>>

Ok - Where is Axis 2.0 located??
The latest version I can find at http://ws.apache.org/axis/ is V 
1.4Martin --
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this 
email message isaddressed.  If you have received this email message 
in error, please notifythe sender immediately by telephone or email and 
destroy the originalmessage without making a copy.  Thank 
you.
 
 

  - Original Message - 
  From: 
  John Ferron 
  To: [EMAIL PROTECTED] ; axis-user@ws.apache.org 
  Sent: Wednesday, July 05, 2006 4:31 
  PM
  Subject: Re: Re: Converting from Glue 
  to Axis2.0
  
  Martin,
   
  The createName() method does not exist in the Axis 2.0 release, as 
  least from what I can tellI am using axis2.0 release 1.0
   
  John>>> [EMAIL PROTECTED] 07/05/06 3:05 PM 
  >>>
  
  The best way to handle this is to call 
  the SOAPEnvelope.createNameto create a valid name and add that Child 
  to the body-
   
  try
  {
  Name name = envelope.createName("GetLastTradePrice", "WOMBAT",http://www.wombat.org/trader);
  body.addChild(name);
  }
  catch(SOAPException excp)
  {
  //log the error here
  }take a look at this declaration
  http://ws.apache.org/axis/java/apiDocs/javax/xml/soap/Name.htmlMartin 
  --
  *This 
  email message and any files transmitted with it contain 
  confidentialinformation intended only for the person(s) to whom this 
  email message isaddressed.  If you have received this email 
  message in error, please notifythe sender immediately by telephone or 
  email and destroy the originalmessage without making a copy.  
  Thank you.
   
   
  
- Original Message - 
From: 
John Ferron 
To: axis-user@ws.apache.org 
Sent: Wednesday, July 05, 2006 3:46 
PM
Subject: Fwd: Re: Converting from 
Glue to Axis2.0
Does anyone have an answer to the follow 
question??/>>> [EMAIL PROTECTED] 
07/05/06 10:31 AM >>>

Ajith,
 
With your sample code:
 
  XMLStreamReader parser = 
XMLInputFactory.newInstance().createXML

Re: dynamic invocation of web services

2006-07-06 Thread amine MOKHTARI

think you for your help.

Stefan Vladov a écrit :
   A I'm having hard time understanding what you said... and I 
totally missed the part with the slit proxy... you sound like the 
jwsdp tutorial :-).
   If you need to invoke a web service, you are not initially familiar 
with (which was my idea of the problem) the approach should be the 
following: First you supply your dynamic client with the wsdl. Then 
you should choose one of the services defined in it and one of the 
operations of the chosen service. Once your dynamic web service client 
has that information it can compose the SOAP message using axiom. You 
should use some user interface to supply your client with the needed 
data. In the most common case - using http transport - axis2 will 
create a http post request, utilizing apache commons-httpclient and 
will put the SOAP message in the http body (no so called proxy is 
involved). That's the picture in general... if you have any specific 
question - ask.
   If you need to do sth different then probably everything above is 
an absolute nonsense and I'm sorry for wasting your time...


   Best wishes!
   Stefan

amine MOKHTARI wrote:
I work on a protype. this prototype should provide mecanisms for 
dynamic composition of web services. so, it have to be able to 
construct proxy dynamicly in memory. this proxy is slit, it contain 
all information needed for invoking one operation. for this purpose, 
i need a mecanisms for manipulate a parameters (simple or complex 
type in the same way.) of operation   have you suggestion ,?


Stefan Vladov a écrit :
   I'm not sure whether this will help you much and please excuse me 
for any inaccuracy... anyway here's what I think:


   First of all, I haven't heard of any API that will do all the 
work for you, and axis2 is as dynamic as any other ws 
implementation. I haven't used ADB so I have no idea if it could 
help you The wsdl descriptor contains all the information you 
might need in order to send a soap request or parse the response. 
You can easily parse the types defined in it using xmlBeans and then 
be able to construct the xml tree for the message using AXIOM. What 
data is to be populated and how you'll get it is of course your 
business... the important thing is that you have the structure of 
the message. You should have some detailed knowledge on the wsdl 
specification to use this approach because you should make the 
difference for example between invoking a rpc and a literal style 
web service (don't get confused with RPCMessageReceiver in axis2 - 
the services using it are still doc/lit style). Using wsdl4j you can 
get all the information needed from the wsdl. MTOM support is very 
easy, because such date is simply declared as base64Binary or 
hexBinary in the types definitions, but for SwA you should be 
careful, for there will be more than one part in a single message 
defined in the wsdl. Furthermore you should populate the binary data 
accordingly.
   Actually I don't find dynamic clients much useful, apart from 
testing purposes, because there will always be something that it 
will not support and then it won't be generic (which would normally 
be the reason to use it). Besides, according to the web service 
you'll always need some post processing for the result, which won't 
be the same for every web service published in the world...


Best wishes!
Stefan
 
amine MOKHTARI wrote:
Exist it an API that allow to define parameters and their types 
dynamically; or an API that provide a mechanisms for dynamic 
invocation


Paul Fremantle a écrit :

Aha

Well no. Maybe. Yes. Maybe. No.

Actually Axis2 does NOT have the mapping registry (types <->
namespace) that Axis1 has, because Axis2 is loosely coupled with the
XML data binding. ADB has a generic mapper, but you have to provide
the namespace, and it won't map to more than one namespace without
doing code gen.

I don't know about XMLBeans - it is a much more powerful project 
so it

may have that support.

Paul

On 7/4/06, amine MOKHTARI <[EMAIL PROTECTED]> wrote:

therefore, axis2 gives the mechanisms to define parameters and their
types for invoking an operation belonging has web services ???

Paul Fremantle a écrit :
> Sure, Axis2 has dynamic support. You need to create the XML 
body of

> the message and pass it as an OMElement. You can also use STAX and
> then use a STAXOMBuilder to create the OMElement.
>
> Once you have the OMElement you can use ServiceClient or
> OperationClient to invoke the service.
>
> Paul
>
> On 7/4/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>> yes , ServiceClient has a constructor for doing that.
>>
>> amine MOKHTARI wrote:
>>
>> > Hello,My question is simple.   is it axis2 allow dynamic
>> > invocation of web services ???
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> 
___ 


>>
>> > Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! 
Mail et

>> > son inte

Re: Message transformation

2006-07-06 Thread Paul Fremantle

Hi

Apache Synapse helps you do this
(http://incubator.apache.org/synapse). The latest builds have a model
called "proxy services" which allow you to define a new service that
proxies an existing service. In addition you can specify WSDL files
for these services which will be exposed via ?wsdl.

You can use XSLT, Javascript or Java to transform the requests and responses.

Paul



On 7/6/06, Bengali Bengali <[EMAIL PROTECTED]> wrote:


Hi,
 I have multiple business services interfaces that I would like to expose
with Xfire as
web services. The problem is that I need to transform the input and output
parameters
of the interface to/from some "external" formats (I have the respective XML
schemas
for the external formats)
I would like Axis2 to use the external XML schemas in the types section of
the generated WSDL.

Can Axis2 handle such requirements ? How would you perform such scenario ?

Actually one solution that I thought would be to write a web service that
accepts a xsd:string
and returns a xsd:string and then add a router + transformer that would
transform the message
from the external format to an internal object and invoke the correct
business services using
the XML namespace of the incoming message. The main problem with this
solution is
that my web service is not self descriptive anymore and the WSDL does not
give any information
on the service.

Thanks in advance,
Luc



--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [axis2] namespace question in wsdl

2006-07-06 Thread Anne Thomas Manes

Your response message does not match your schema definition.
- Your schema does not specify elementFormDefault="qualified";
therefore, all local elements must be unqualified.
- Your response message defines a default namespace; therefore, all
non-explicitly qualified elements are qualified by the default
namespace.

You have a number of options:

1. Add elementFormDefault="qualified" to your schema (best option).

2. Don't change the schema, but specify an explicit namespace in your
response message rather than a default namespace, e.g.:


http://schemas.xmlsoap.org/soap/envelope/";>


http://swaMaragatoNS/types";>
FRAMEX_ENTITY_NOTFOUND:
Entidade do tipo class
br.com.atlantico.maragato.nucleogerencia.model.ElementoGerenciadoTO
com id 9.999 não pode ser
achada
-1




2. Don't change the schema, and don't specify an explicit namespace in
your response message, but override the default namespace in the local
elements, e.g.:


http://schemas.xmlsoap.org/soap/envelope/";>


http://swaMaragatoNS/types";>
FRAMEX_ENTITY_NOTFOUND:
Entidade do tipo class
br.com.atlantico.maragato.nucleogerencia.model.ElementoGerenciadoTO
com id 9.999 não pode ser
achada
-1




Anne

On 7/6/06, robert lazarski <[EMAIL PROTECTED]> wrote:

I've agot a wsdl that's giving me some problems, can someone give a
look at it for me? It seems to validate using eclipse's validator.

I have two namespaces that I'm having a hard time with - tns and ns2 .
When validating a response on the client side, I'm getting:

Error Message: Expected element 'errorMessage' instead of
'[EMAIL PROTECTED]://swaMaragatoNS/types' here in element
[EMAIL PROTECTED]://swaMaragatoNS/types

Location of invalid XML: http://swaMaragatoNS/types";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>FRAMEX_ENTITY_NOTFOUND:
Entidade do tipo class
br.com.atlantico.maragato.nucleogerencia.model.ElementoGerenciadoTO
com id 9.999 não pode ser achada

Here's the soap message the client is getting:

http://schemas.xmlsoap.org/soap/envelope/";>http://swaMaragatoNS/types";>FRAMEX_ENTITY_NOTFOUND:
Entidade do tipo class
br.com.atlantico.maragato.nucleogerencia.model.ElementoGerenciadoTO
com id 9.999 não pode ser
achada-1

My wsdl is attached. Please help!
Robert
http://www.braziloutsource.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: Exception in returning SOAP Fault.

2006-07-06 Thread JayG

I'm having the same problem. I can return values from the generated skeleton
code, but trying to throw an excepion causes an OMException. The exception
I'm throwing was created by wsdl2java and maps to the fault I declared in
the WSDL. It looks like it should be very straighforward (the exception was
already created and declared for me, I'm just newing one and throwing it),
but it just doesn't work. My stack trace looks slightly different.

org.apache.axiom.om.OMException
at
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
at
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
at
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
at
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
...
-- 
View this message in context: 
http://www.nabble.com/Exception-in-returning-SOAP-Fault.-tf1626630.html#a5205008
Sent from the Axis - User forum at Nabble.com.


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



[Axis2] Manipulate WSDL documents.

2006-07-06 Thread Javier V

Hello.

I want to define in a "repository" all my own services, whrere some of them 
will be
finally "web services", and other will be invocated in other ways (directly 
how Java class,

RMI, JMS, ).

I want to standardize the input/output of all my services and keep a 
definition service
of each one into a repository, and create a little framework to manage 
services through that repository information.


I have thought to do it using a WSDL document for each one of my own service 
(although

I know some parts of the WDSL only can be applied to Web services).

1) How I don't want to reinvent the wheel, how can I manipulate the WSDL 
documents

   in Java?

2) Any other solution to define the repository?

Any other ideas will be appreciated.

Thanks in advance,

Janfry

_
Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con 
MSN Entretenimiento. http://entretenimiento.msn.es/



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



Re: [Axis2] Can not output XML declaration, after other output has already been done

2006-07-06 Thread John Ferron


Ajith
 
Based off the stack trace (which I did forget in the previous email), no, it is on sending:
 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223)org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)com.alliantenergy.soap.SoapClient.sendRecieve(SoapClient.java:135)com.alliantenergy.soap.SoapClient.parseXMLMessage(SoapClient.java:90)com.alliantenergy.soap.SoapClient.postSoapMessage(SoapClient.java:41)org.apache.jsp.ProcessSOAPMessage_jsp._jspService(ProcessSOAPMessage_jsp.java:139)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)javax.servlet.http.HttpServlet.service(HttpServlet.java:853)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)javax.servlet.http.HttpServlet.service(HttpServlet.java:853)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)java.lang.Thread.run(Thread.java:536)
John>>> [EMAIL PROTECTED] 07/06/06 10:44 AM >>>
A quick clarification!Does the problem occur after receiving a response ?AjithOn 7/6/06, John Ferron <[EMAIL PROTECTED]> wrote:>>> All,>> I'm getting the following nested exception:>>  Can not output XML declaration, after other output has already been done.;> nested exception is:> javax.xml.stream.XMLStreamException: Can not output> XML declaration, after other output has already been done.; nested exception> is:> org.apache.axis2.AxisFault: Can not output XML declaration, after> other output has already been done.; nested exception is:> javax.xml.stream.XMLStreamException: Can not output> XML declaration, after other output has already been done.; nested exception> is:> org.apache.axis2.AxisFault: Can not output XML declaration, after> other output has already been done.; nested exception is:> javax.xml.stream.XMLStreamException: Can not output> XML declaration, after other output has already been done.; nested exception> is:> org.apache.axis2.AxisFault: Can not output XML declaration, after> other output has al

Re: Newbie question: wss4j/wse interop issue

2006-07-06 Thread Ruchith Fernando

Hi,

Which version of WSS4J are you using?

Thanks,
Ruchith

On 6/30/06, Layne Shepherd <[EMAIL PROTECTED]> wrote:

I have axis 1.4 running on tomcat with both java and .net clients
connecting.  Both clients are sending similar envelopes, but the .net client
is failing with " WSDoAllReceiver: security processing failed (actions
mismatch)".  I can't for the life of me figure out what the difference is
between the headers of the java and .net client.  Can anyone help??
PLEASE

Following are 2 sample headers, 1 from a java client, 1 from .net client and
my server-config.wsdd.

Sample header from java client:

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

http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0">123
http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0">uuid:3d47f93f-a8a5-4d4f-a151-572c11074e5b
http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0">
http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/03/addressing/
role/anonymous
http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0">http://web1:8080/axis/services/APIService
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd">
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
2006-06-30T00:17:42.644Z
2006-06-30T00:22:42.644Z
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
admin
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token
-profile-1.0#PasswordText">Docu$ign
H9dK2F+YN32eHe2kYC0rkw==
2006-06-30T00:17:42.644Z
d3187d84-ab71-4018-95dd-2fae60e40cfa



Sample .net client header:
.net version

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
 
  
123  
  
uuid:579fa771-2604-4005-8469-5670df96e01f  
  
   
http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous

  
  
http://web1:8080/axis/services/APIService  
  
   

2006-06-28T00:12:29Z

2006-06-28T00:17:29Z
   
   

18a868b0-8c54-4595-b69c-50a6ff0b3a4a
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token
-profile-1.0#PasswordText">
docusign

/MZLURTeL5W4GEiOr3CUUg==

2006-06-28T00:12:29Z

0c7f4830-6559-4ba8-8cad-8c0e61d67e71
   
  
 

Server-config.wsdd:


http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  








  

  
  


  

  
  
  
  
  



http://xml.apache.org/axis/wsdd/
  
  


  
  

  
  


  

http://www.docusign.net/API/2.2"; />

http://www.docusign.net/API/2.2"; />







http://www.docusign.net/API/2.2";
qname="ns:>CreateAndSendEnvelope"
type="java:net.docusign.www.API._2_2.CreateAndSendEnvelope"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
http://www.docusign.net/API/2.2";
qname="ns:Document"
type="java:net.docusign.www.API._2_2.Document"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
http://www.docusign.net/API/2.2";
qname="ns:RecipientSignatureInfo"
type="java:net.docusign.www.API._2_2.RecipientSignatureInfo"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
http://www.docusign.net/API/2.2";
qname="ns:ArrayOfTab"
type="java:net.docusign.www.API._2_2.Tab[]"
innerType="cmp-ns:Tab"
xmlns:cmp-ns="http://www.docusign.net/API/2.2";
encodingStyle=""
/>
http://www.docusign.net/API/2.2";
qname="ns:TabTypeCode"
type="java:net.docusign.www.API._2_2.TabTypeCode"
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
encodingStyle=""
/>
http://www.docusign.net/API/2.2";
qname="ns:CustomField"
type="java:net.docusign.www.API._2_2.CustomField"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializ

Re: Urgent Help - Newbie

2006-07-06 Thread Bruno Negrao

ERRATA: the contact objects go inside the
... tags.

sorry.

I need to create a contact object for each
 returned from the
server.

thank you,
bruno

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



Re: Programmble Deployment Of Modules

2006-07-06 Thread Ruchith Fernando

Hi Angel,

It is possible to deploy a module programmatically without touching
the configuration files at the client side.

Please have a look at this [1]

Note that you must drop the .mar file in the sample place where you
have the axis2* jars in your classpath.

At the end of this [2] you can find a few guidelines to specify
rampart configuration without the use of axis2.xml file.

Thanks,
Ruchith

[1] http://www.wso2.net/kb/182
[2] http://marc.theaimsgroup.com/?l=axis-dev&m=114732539613452&w=2

On 7/4/06, Angel Cholchev <[EMAIL PROTECTED]> wrote:

Hello,
I need to deploy a the rampart security Module programmly. I 've bin
wandering what to do. I can try put the .mar files in my classpath and
try deploying the with DeployEngine or a can add the sources of the
Rampart module to my project and try invoking the

public void init(ConfigurationContext configContext, AxisModule module) throws 
AxisFault;//Initialize the module
public void engageNotify(AxisDescription axisDescription) throws AxisFault;


My tries so far with both opportunities have been unsuccessful due to
the lack of documentation and java docs.
thanks in advance
 Angel

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





--
www.ruchith.org

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



Re: Urgent Help - Newbie

2006-07-06 Thread Bruno Negrao

Guys, thank you very much for the explanations.

I'm already using tcpmon, very helpful. Bellow is the message sent
from the server, the one I have to deserialize. The method I called
was "AgendaPesquisa". It's a method to search in a contacts catalog
for a contact(a person) with some characterisctic. The server then
returns a list of contacts that matched the search. The contact
objects are contained inside the  ...
 tags.
thank you for any help.

HTTP/1.0 200 OK
Content-length: 1750


  http://schemas.xmlsoap.org/soap/envelope/";>
 

   0
   
  C
  1920
  1
  Eu
  1900
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   
   
  C
  1931
  1
  Bla2
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   

 
  

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



Re: Axis2 / Axis RPC

2006-07-06 Thread Kinichiro Inoguchi
Hi,

If you use Axis2 1.0 release version, it will work.

RPCMessageReceiver of Nightly Builds have problem that returns
"broken" qualified response.
I created JIRA for this issue today.

generated stub client send message like this,
  
 http:///xsd";>
from client app
 
  

RPCMessageReceiver returns message like this,
  
 http:///xsd";>
from client app
 
  

 is NOT qualified with prefix "ns".
your error message "Unexpected subelement return" of "return" means
this.

> claims
> that this error message appears because axis2 does not support RPC
> Bindings.

No, this means Axis2 does not support RPC/Encoded,
As Anne mentioned before, RPC/literal is supported.

Regards,
kinichiro

--- M S <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Basically what I'm trying to do is to create a simple Web Service
> that will
> receive a String and retun the same string, i.e. basically an "echo"
> web
> service. I tried using the sample on the Axis2 documentation page
> with
> OMElement - it works fine.
> 
> My problem is that I want to use String instead of OMElement on both
> sides
> (server as well as client). Apparently, I cant do this unless I use
> the RPC
> 
> So what I have is a services.xml that looks like this:
>  - <#> 
>  - <#> 
>
>   
> locked="*false*">MyService2
>   
> 
> A MyService2.java that looks like this:
> 
> public class MyService2 {
> public String echo(String echostring) {
> return echostring;
> }
> 
> }
> 
> I can deploy this using axis2.war on JBoss. It deploys fine, and I
> get the
> following WSDL:
> 
> http://schemas.xmlsoap.org/wsdl/";
> xmlns:axis2="http://ws.apache.org/axis2"; xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/"; xmlns:ns0="http:///xsd";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:ns1="
> http://org.apache.axis2/xsd";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; targetNamespace="
> http://ws.apache.org/axis2";> xmlns:stn_3="http:///xsd";
> targetNamespace="http:///xsd"; elementFormDefault="qualified"
> attributeFormDefault="qualified">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  name="part1"
> /> element="ns0:echoResponse" name="part1"
> /> name="MyService2PortType"> message="axis2:echoMessage" /> message="axis2:echoResponse"
> /> type="axis2:MyService2PortType"
> name="MyService2SOAP11Binding"> style="document" transport="http://schemas.xmlsoap.org/soap/http";
> /> soapAction="urn:echo" /> /> /> type="axis2:MyService2PortType"
> name="MyService2SOAP12Binding"> transport="
> http://schemas.xmlsoap.org/soap/http"; /> name="echo"> /> /> /> type="axis2:MyService2PortType"
> name="MyService2HttpBinding"> verb="POST" /> location="echo"
> /> /> /> name="MyService2"> name="MyService2SOAP11port_http">http://localhost:8080/axis2/services/MyService2";
> /> binding="axis2:MyService2SOAP12Binding"
> name="MyService2SOAP12port_http">http://localhost:8080/axis2/services/MyService2";
> /> binding="axis2:MyService2HttpBinding"
> name="MyService2Httpport0">http://localhost:8080/axis2/rest/MyService2";
> />
> I then try to use WSDL2Java to create client stubs based on this
> WSDL. It
> does generate them, but when I try to run the client I get the
> following
> error:
> 
> 
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.RuntimeException: Unexpected subelement return
> at
> org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:665)
> at
> org.apache.axis2.MyService2Stub.echo(MyService2Stub.java:144)
> at org.apache.axis2.Client.main(Client.java:16)
> Caused by: java.lang.RuntimeException: Unexpected subelement return
> at
>
org.apache.axis2.MyService2Stub$EchoResponse$Factory.parse(MyService2Stub.java:419)
> at
> org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:657)
> ... 2 more
> I googled this and this page (
>
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200605.mbox/[EMAIL 
PROTECTED])
> claims
> that this error message appears because axis2 does not support RPC
> Bindings.
> 
> I'm confused - how do I generate a client for this WSDL?
> 


__
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]



Message transformation

2006-07-06 Thread Bengali Bengali
Hi, I have multiple business services 
interfaces that I would like to expose with Xfire as 
web services. The problem is that I need to 
transform the input and output parameters
of the interface to/from some "external" formats (I 
have the respective XML schemas
for the external formats)
I would like Axis2 to use the external XML schemas 
in the types section of the generated WSDL.
 
Can Axis2 handle such requirements ? How would you 
perform such scenario ?
 
Actually one solution that I thought would be to 
write a web service that accepts a xsd:string
and returns a xsd:string and then add a router + 
transformer that would transform the message
from the external format to an internal object and 
invoke the correct business services using
the XML namespace of the incoming message. The main 
problem with this solution is
that my web service is not self descriptive 
anymore and the WSDL does not give any informationon the service.
 
Thanks in advance,
Luc



Re: [Axis2] Can not output XML declaration, after other output has already been done

2006-07-06 Thread Ajith Ranabahu

A quick clarification!
Does the problem occur after receiving a response ?

Ajith

On 7/6/06, John Ferron <[EMAIL PROTECTED]> wrote:



All,

I'm getting the following nested exception:

 Can not output XML declaration, after other output has already been done.;
nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.; nested exception
is:
org.apache.axis2.AxisFault: Can not output XML declaration, after
other output has already been done.; nested exception is:
javax.xml.stream.XMLStreamException: Can not output
XML declaration, after other output has already been done.

The following method that sends the data is as follows:  The request element
that I am passing through to this method is the SOAP envelope which has the
complete SOAP message that I want to send.

private void sendRecieve(String urlStr, OMElement requestElement) throws
Exception {
  URL url = null;
  OMElement responseElement = null;
  try {
   url = new URL(urlStr);
   log.info("URL: " + urlStr);
  } catch (MalformedURLException e) {
   StringFunctions.exceptionToString(e);
  }

  Options options = new Options();
  options.setTo(new EndpointReference(url.toString()));
  options.setProperty(MessageContextConstants.CHUNKED,
Constants.VALUE_FALSE);

  ServiceClient sender = new ServiceClient();
  sender.setOptions(options);
  log.info("Sending: ");
  log.info(requestElement.toStringWithConsume());
  responseElement = sender.sendReceive(requestElement);
  if (responseElement == null) {
   log.info("Null response");
  } else {
   log.info(responseElement.toStringWithConsume());
  }
 }

Any help would be greatly appreciated

John



--
Ajith Ranabahu

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



[Axis2] Can not output XML declaration, after other output has already been done

2006-07-06 Thread John Ferron


All,
 
I'm getting the following nested exception:
 
 Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.; nested exception is:     org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.; nested exception is:     javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.
 
The following method that sends the data is as follows:  The request element that I am passing through to this method is the SOAP envelope which has the complete SOAP message that I want to send.
 
private void sendRecieve(String urlStr, OMElement requestElement) throws Exception {  URL url = "">  OMElement responseElement = null;  try {   url = "" URL(urlStr);   log.info("URL: " + urlStr);  } catch (MalformedURLException e) {   StringFunctions.exceptionToString(e);  }
 
  Options options = new Options();  options.setTo(new EndpointReference(url.toString()));  options.setProperty(MessageContextConstants.CHUNKED, Constants.VALUE_FALSE);
 
  ServiceClient sender = new ServiceClient();  sender.setOptions(options);  log.info("Sending: ");  log.info(requestElement.toStringWithConsume());  responseElement = sender.sendReceive(requestElement);  if (responseElement == null) {   log.info("Null response");  } else {   log.info(responseElement.toStringWithConsume());  } }
 
Any help would be greatly appreciated
 
John


Help on AXIS generated code

2006-07-06 Thread mhua

Folks, 

I just started to use AXIS 1.6b in Redhat Linux. After I generated C++ code
using WSDL2WS tool, I got the following issues/questions: 

1. For all Axis_DeSerialize methods, the fileds which are xsd__string were
generated to be assigned to xsd__string *. For example, in this code
segment, getElementAsString returns xsd__string, but the generated code
tried to assign xsd__string to xsd__string *. 

xsd__string* p_beanOp = (pIWSDZ->getElementAsString("beanOp",0)); 
param->beanOp = *p_beanOp; 

2. The same problem as mentioned in 1 also happens to xsd__datetime fields. 

3. Is there a way to get character fields generated as std::string instead
of xsd__string? More generally, can thecode be generated using standard C++
types instead of xsd__ types? 

4. Is there an option in WSDLWS to add namespaces to generated code? 

Please let me know if you have the answers/information about my
issues/questions. All your help is highly appreciated. 

Thanks. 
Ming 


-- 
View this message in context: 
http://www.nabble.com/Help-on-AXIS-generated-code-tf1901255.html#a5201493
Sent from the Axis - User forum at Nabble.com.


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



Re: how to specify a specific bean with WSDL2Java.bat?

2006-07-06 Thread Nicolas Urien
Please help me.This is the problem:I have operations on my web service which return a complex type, ie a bean.When I generate my client stubs, it always generate a new bean that I have to handle with the existing bean!What I would like to do is to tell WSDL2Java to use the existing bean and not generate a new one.I have to use AXIS1 version WSDL2Java .Here are the arguments of my command (it runs within eclipse) :-v -o ${project_loc}/src/ -c fr.acoss.ancre.acces.dao.ws.WebServiceAncre -Nurn:WebServiceAncre=fr.acoss.ancre.acces.dao.ws.client http://localhost:8080/axis2/services/WebServiceAncre?wsdlThanks in advance for help- Original Message From: Davanum Srinivas <[EMAIL PROTECTED]>To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>Sent: Tuesday, July 4, 2006 8:56:39 AMSubject: Re: how to specify a specific bean with WSDL2Java.bat?latest nightly?-- dimsOn 7/4/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:>>> Hi,>> I have already checked them. Since I couldn't find any relevant option, I> have made this post.>> Could someone help me please?>> cheers>>> - Original Message > From: Davanum Srinivas <[EMAIL PROTECTED]>> To:
 axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>> Sent: Monday, July 3, 2006 11:14:02 PM> Subject: Re: how to specify a specific bean with WSDL2Java.bat?>>> check the parameters of wsdl2java command line. (unpack)>> thanks,> dims>> On 7/3/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:> >> >> > Hi,> >> > I have an operation makeCoffee() on a web service which returns a java> bean> > (mybean)> > The problem is that the generated client stub returns myStub.mybean and> I'd> > rather have it return mybean instead.> >> > Is there a way to tell WSDL2Java.bat to simply generate mybean as the> return> > of makeCoffee()?> >> > cheers>  --> Davanum Srinivas : http://people.apache.org/~dims/>> -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>>-- Davanum Srinivas : http://people.apache.org/~dims/-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2] Simple question about Axis2

2006-07-06 Thread Anne Thomas Manes

No. JAX-WS support is still in development.

On 7/6/06, Loïc MAZE <[EMAIL PROTECTED]> wrote:



Hi,

I just would like to know if Axis2 1.0 is JAX-RPC 1.1 and/or JAX-WS
compliant or not. It was not the case in the 0.95 version.
Thanks in advance.


Best regards,
Loïc


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



Re: Need Help: Axis 1.3 Array Problem.

2006-07-06 Thread Anne Thomas Manes

If you use WSDL First with Axis 1.4, it should work.

I recommend using unwrapped arrays -- i.e., don't define an array
type, just define the element as a repeating element
(maxOccurs="unbounded").

Anne

On 7/6/06, Amit Andhale <[EMAIL PROTECTED]> wrote:


Thanks Anne!
I faced this input parameter problem with "DOCUMENT" style. So I dropped
that idea and used "WRAPPED" style.
Is there any other way other than "WSDL First" approach?
Even if I use WSDL First approach and use Axis 1.3/1.4, will this overcome
my problem of getting "Zero Length Inner Array"?

Amit




On 7/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
Note that if you do DOCUMENT style, your method can take only one
parameter (you must wrap your input parameters into a bean).

As a better approach, I recommend that you adopt a WSDL First
approach. Define the WSDL as you'd like to see it, then generate your
server from it.

Anne

On 7/6/06, Amit Andhale < [EMAIL PROTECTED]> wrote:
>
> Hi,
> Thanks for prompt reply!
> Yes! I do have "style=WRAPPED" in my WSDL.
> I have not checked with "DOCUMENT" style. I will check it and post my
reply
> soon.
>
> Could you please tell me what changes you have made on .NET side Proxy
> class?
> This is very important task for me. And for the first time I am working on
> Axis web service.
>
>
> Amit
>
>
>
>
> On 7/6/06, Stanley Stanev <[EMAIL PROTECTED]> wrote:
> >
> >
> > Amit,
> >
> > we have solved this by changing a bit the generated proxy classes on the
> .NET side, not good as it requires a very small change, but no way you can
> fix this, bad for Axis 1.x
> >
 > > also, I bet you have in your WSDD style="wrapped" when you describe
your
> service
> >
> > can you try with style="document", what is the result? what is the SOAP
in
 > this case?
> >
> > thanks,
> >
> > Stanley Stanev
> >
> >
> > Amit Andhale wrote:
> >
> >
> > Hi John,
> > Did your problem get solved using Axis2 or XFire?
> >
> > Amit
> >
> >
> > On 7/5/06, Amit Andhale <[EMAIL PROTECTED] > wrote:
> > >
> > > Thanks John! I also tried out removing ArrayMapping from WSDD. But
issue
> still persists.
> > >
> > >
> > >
> > > On 7/5/06, john andersen <[EMAIL PROTECTED] > wrote:
> > > >
 > > > > I ran into the exact same issue with both Axis 1.4 and Axis 1.3 but
I
> used a gSOAP client instead of .NET - the array member tags were set  to
the
> name of the enclosing array.  This problem does not exist in Axis2.
Unless
> this is a valid way to represent an array in XML, this seems to be an Axis
> 1.3/1.4 issue.
> > > >
> > > > Can this be a configuration issue?  I have added/removed
ArrayMappings
> in the wsdd and have no idea what else I can poke to alter this behavior.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 7/5/06, Amit Andhale < [EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > >
> > > > Hi Anne,
> > > > I rebooted the server and redeployed the service.
> > > > I am still getting the SOAP Response in following fashion,
> > > >
> > > >
> > > > 
> > > > 
> > > >

>   # WRONG
> > > >

>   # WRONG
> > > > 
> > > >   
> > > >
> > > >
> > > > Please find actual SOAP response below:
> > >
> >
> >
>
>

-
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] Simple question about Axis2

2006-07-06 Thread Loïc MAZE



Hi,
 
I just would like to know if Axis2 1.0 is JAX-RPC 
1.1 and/or JAX-WS compliant or not. It was not the case in the 0.95 
version.
Thanks in advance.
 

Best 
regards,Loïc


MTOM not supported in generated client

2006-07-06 Thread Tech Savvy
Hi,I have a simple "Hello World" web service basically takes a String parameter "name" and return  "Hello, " + name. I deployed the webservice to axis2 and run wsdl2java to generate the client class. I look at the source of the generated client, and find the parameter "optimizeContent" is not used in the toEnvelop() method. Will this feature be supported soon?



WSDL2Java proxy gen question re: attributes (Unexpected subelement error)

2006-07-06 Thread John Campbell

Consuming a .net web service (.net 2.0), created a stub using
WSDL2Java (axis2 1.0).  Part of the data returned uses attributes.
Relevant schema looks like:


   
   
 

Data returned looks good:



The Problem: Examining the stub generated code, it looks like the stub
checks and gets the attributes but then looks for "Name" and "Value"
elements, too.  Since they are not there the stub throws a "Unexpected
subelement" error.

If I simply comment out the section of code that is looking for the
"Name" and "Value" elements, everything works fine.

Any suggestions on avoiding this problem?  The schema doesn't seem to
indicate that a element should be expected, why does the stub look for
one?  Thanks in advance!

[Full WSDL and XML Schemas to follow]

---WSDL-


http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:import1="urn:data:v1" xmlns:import0="urn:messages:v1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
name="ReportExpertService" targetNamespace="urn:service:v1"
xmlns="http://schemas.xmlsoap.org/wsdl/";>
 http://schemas.xmlsoap.org/wsdl/"; />
 
   
 
 
   
 
 
   http://schemas.xmlsoap.org/wsdl/"; />
   
 
 
   http://schemas.xmlsoap.org/wsdl/"; />
   
 
 
   http://schemas.xmlsoap.org/wsdl/"; />
   
 http://schemas.xmlsoap.org/wsdl/"; />
 
 
   
 
 
   http://schemas.xmlsoap.org/soap/http"; />
   
 
 
   
 
 
   
 
   
 
 
   
 
   
 

--RXReportFactors.xsd---

http://www.w3.org/2001/XMLSchema";>

 
   
 
 
 
   
 

 
   
 
   
 

 
   
 
   
 

 
   
   
 

--RXMessages.xsd--

http://www.w3.org/2001/XMLSchema";
   xmlns:importns="urn:data:v1">
 
 
   
 
   
 
   
   
 
   
 
   
   
 
   
 


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



Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai

i am using

java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

in linux environment..
Thank you for all your help, i will give it another try tomorrow. Greatly 
appreciated


Wan


From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 06:37:59 -0700 (PDT)

I've never tried Axis2 with Jetty, sorry.
Can you try to using tomcat5 ?
I'm using SDK 1.4.2, tomcat 5.0, and Axis2 on WindowsXP.

About listening port, yes, I meant only server computer.

Regards,
kinichiro

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

>
> actually, i forgot to mention that i am using Jetty..is there any
> different
> in setting?
> and for listening to the port, we consider only for the server
> computer
> task, or the system?
>
> sorry for asking such a question, i am still only a trainnee, have
> not much
> experiences.
>
> Kind regards,
> Wan
>
> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 06:03:28 -0700 (PDT)
> >
> >SOAPMonitor seems using tcp port 5100.
> >Is there any program in your server grasp tcp port 5100 ?
> >How about checking with netstat -p tcp or something like that ?
> >
> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >
> > > there is still the same error when i try to engage the
> soapmonitor
> > > module
> > > via the axis administration page.
> > >
> > > but when i access soapmonitor applet through the web browser, i
> am be
> > > able
> > > to see the applet but and see it in start mode, but when i make a
> > > call from
> > > client to server the soapmonitor applet remain unchange instead
> of
> > > capture
> > > something.
> > >
> > > the call between client-server is completed without seeing any
> soap
> > > msg on
> > > the applet.
> > >
> > > Wan
> > >
> > >
> > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >Date: Thu, 6 Jul 2006 09:14:50 -0300
> > > >
> > > >Let me try to understand where you're at now. You have the
> phases
> > > >working correctly, ie, no more errors. And you can press the
> start
> > > >button of the applet. However, you have no messages in the
> applet.
> > > Is
> > > >this correct?
> > > >
> > > >My guess is that you're not calling the WAR you think you are,
> but
> > > >that's just a guess.
> > > >
> > > >Put this file in your WEB-INF/classes , which will print the
> axis2
> > > >debug messages to stdout . In tomcat, that would mean
> catalina.out .
> > > >You need to have both commons-logging.jar and log4j.jar in
> > > WEB-INF/lib
> > > >.  Then send us the ouput and maybe we can help.
> > > >
> > > >Robert
> > > >http://www.braziloutsource.com/
> > > >
> > > >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >>i don't know how is this happened? but there is nothing appear
> on
> > > my
> > > >>applet.
> > > >>
> > > >>Wan
> > > >>
> > > >> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > >> >Reply-To: axis-user@ws.apache.org
> > > >> >To: axis-user@ws.apache.org
> > > >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >> >Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
> > > >> >
> > > >> >Yes,
> > > >> >just call service, message would be appeared on applet.
> > > >> >I saw it's working on axis2 1.0 release and nightly builds,
> both.
> > > >> >I captured SOAPMonitor window when I call version service via
> > > REST.
> > > >> >
> > > >> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >> >
> > > >> > >
> > > >> > > yes, i can see the start and stop button and it's now
> started.
> > > >> > >
> > > >> > > so can i just make the client call to server, and then
> soap
> > > should be
> > > >> > > appear
> > > >> > > right?
> > > >> > >
> > > >> > > nothing appear on my applet.
> > > >> > >
> > > >> > > Wan
> > > >> > >
> > > >> > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > >> > > >Reply-To: axis-user@ws.apache.org
> > > >> > > >To: axis-user@ws.apache.org
> > > >> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >> > > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> > > >> > > >
> > > >> > > >Hi, Wan.
> > > >> > > >
> > > >> > > >I don't think you need to engage anything, because I
> didn't.
> > > >> > > >Does applet started ?
> > > >> > > >You can start or stop soap monitor by button on the under
> > > left.
> > > >> > > >Can you see "The SOAP Monitor is Started" message on your
> > > applet ?
> > > >> > > >
> > > >> > > >And try
> > > >> > > >http://localhost:8080/axis2/rest/version/getVersion
> > > >> > > >with another browser.
> > > >> > > >
> > > >> > > >I could see soap monitor catch SOAP message.
> > > >

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Kinichiro Inoguchi
I've never tried Axis2 with Jetty, sorry.
Can you try to using tomcat5 ?
I'm using SDK 1.4.2, tomcat 5.0, and Axis2 on WindowsXP.

About listening port, yes, I meant only server computer.

Regards,
kinichiro

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

> 
> actually, i forgot to mention that i am using Jetty..is there any
> different 
> in setting?
> and for listening to the port, we consider only for the server
> computer 
> task, or the system?
> 
> sorry for asking such a question, i am still only a trainnee, have
> not much 
> experiences.
> 
> Kind regards,
> Wan
> 
> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 06:03:28 -0700 (PDT)
> >
> >SOAPMonitor seems using tcp port 5100.
> >Is there any program in your server grasp tcp port 5100 ?
> >How about checking with netstat -p tcp or something like that ?
> >
> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >
> > > there is still the same error when i try to engage the
> soapmonitor
> > > module
> > > via the axis administration page.
> > >
> > > but when i access soapmonitor applet through the web browser, i
> am be
> > > able
> > > to see the applet but and see it in start mode, but when i make a
> > > call from
> > > client to server the soapmonitor applet remain unchange instead
> of
> > > capture
> > > something.
> > >
> > > the call between client-server is completed without seeing any
> soap
> > > msg on
> > > the applet.
> > >
> > > Wan
> > >
> > >
> > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >Date: Thu, 6 Jul 2006 09:14:50 -0300
> > > >
> > > >Let me try to understand where you're at now. You have the
> phases
> > > >working correctly, ie, no more errors. And you can press the
> start
> > > >button of the applet. However, you have no messages in the
> applet.
> > > Is
> > > >this correct?
> > > >
> > > >My guess is that you're not calling the WAR you think you are,
> but
> > > >that's just a guess.
> > > >
> > > >Put this file in your WEB-INF/classes , which will print the
> axis2
> > > >debug messages to stdout . In tomcat, that would mean
> catalina.out .
> > > >You need to have both commons-logging.jar and log4j.jar in
> > > WEB-INF/lib
> > > >.  Then send us the ouput and maybe we can help.
> > > >
> > > >Robert
> > > >http://www.braziloutsource.com/
> > > >
> > > >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >>i don't know how is this happened? but there is nothing appear
> on
> > > my
> > > >>applet.
> > > >>
> > > >>Wan
> > > >>
> > > >> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > >> >Reply-To: axis-user@ws.apache.org
> > > >> >To: axis-user@ws.apache.org
> > > >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >> >Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
> > > >> >
> > > >> >Yes,
> > > >> >just call service, message would be appeared on applet.
> > > >> >I saw it's working on axis2 1.0 release and nightly builds,
> both.
> > > >> >I captured SOAPMonitor window when I call version service via
> > > REST.
> > > >> >
> > > >> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >> >
> > > >> > >
> > > >> > > yes, i can see the start and stop button and it's now
> started.
> > > >> > >
> > > >> > > so can i just make the client call to server, and then
> soap
> > > should be
> > > >> > > appear
> > > >> > > right?
> > > >> > >
> > > >> > > nothing appear on my applet.
> > > >> > >
> > > >> > > Wan
> > > >> > >
> > > >> > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > >> > > >Reply-To: axis-user@ws.apache.org
> > > >> > > >To: axis-user@ws.apache.org
> > > >> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >> > > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> > > >> > > >
> > > >> > > >Hi, Wan.
> > > >> > > >
> > > >> > > >I don't think you need to engage anything, because I
> didn't.
> > > >> > > >Does applet started ?
> > > >> > > >You can start or stop soap monitor by button on the under
> > > left.
> > > >> > > >Can you see "The SOAP Monitor is Started" message on your
> > > applet ?
> > > >> > > >
> > > >> > > >And try
> > > >> > > >http://localhost:8080/axis2/rest/version/getVersion
> > > >> > > >with another browser.
> > > >> > > >
> > > >> > > >I could see soap monitor catch SOAP message.
> > > >> > > >
> > > >> > > >Regards,
> > > >> > > >kinichiro
> > > >> > > >
> > > >> > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >> > > >
> > > >> > > > > dear kinichiro,
> > > >> > > > >
> > > >> > > > >  i have tried, i can see the SOAPMonitor applet
> but
> > > the
> > > >> > > > > SOAPMonitor
> > > >> > > > > doesn't catch any message and when i try to engage the
> > > module
> > > >> > > through
> > > >> > > > > the
> > > >> > > > > administration page. I 

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai


actually, i forgot to mention that i am using Jetty..is there any different 
in setting?
and for listening to the port, we consider only for the server computer 
task, or the system?


sorry for asking such a question, i am still only a trainnee, have not much 
experiences.


Kind regards,
Wan


From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 06:03:28 -0700 (PDT)

SOAPMonitor seems using tcp port 5100.
Is there any program in your server grasp tcp port 5100 ?
How about checking with netstat -p tcp or something like that ?

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

> there is still the same error when i try to engage the soapmonitor
> module
> via the axis administration page.
>
> but when i access soapmonitor applet through the web browser, i am be
> able
> to see the applet but and see it in start mode, but when i make a
> call from
> client to server the soapmonitor applet remain unchange instead of
> capture
> something.
>
> the call between client-server is completed without seeing any soap
> msg on
> the applet.
>
> Wan
>
>
> >From: "robert lazarski" <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 09:14:50 -0300
> >
> >Let me try to understand where you're at now. You have the phases
> >working correctly, ie, no more errors. And you can press the start
> >button of the applet. However, you have no messages in the applet.
> Is
> >this correct?
> >
> >My guess is that you're not calling the WAR you think you are, but
> >that's just a guess.
> >
> >Put this file in your WEB-INF/classes , which will print the axis2
> >debug messages to stdout . In tomcat, that would mean catalina.out .
> >You need to have both commons-logging.jar and log4j.jar in
> WEB-INF/lib
> >.  Then send us the ouput and maybe we can help.
> >
> >Robert
> >http://www.braziloutsource.com/
> >
> >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >>
> >>i don't know how is this happened? but there is nothing appear on
> my
> >>applet.
> >>
> >>Wan
> >>
> >> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> >Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
> >> >
> >> >Yes,
> >> >just call service, message would be appeared on applet.
> >> >I saw it's working on axis2 1.0 release and nightly builds, both.
> >> >I captured SOAPMonitor window when I call version service via
> REST.
> >> >
> >> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> >
> >> > >
> >> > > yes, i can see the start and stop button and it's now started.
> >> > >
> >> > > so can i just make the client call to server, and then soap
> should be
> >> > > appear
> >> > > right?
> >> > >
> >> > > nothing appear on my applet.
> >> > >
> >> > > Wan
> >> > >
> >> > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> > > >Reply-To: axis-user@ws.apache.org
> >> > > >To: axis-user@ws.apache.org
> >> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> > > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> >> > > >
> >> > > >Hi, Wan.
> >> > > >
> >> > > >I don't think you need to engage anything, because I didn't.
> >> > > >Does applet started ?
> >> > > >You can start or stop soap monitor by button on the under
> left.
> >> > > >Can you see "The SOAP Monitor is Started" message on your
> applet ?
> >> > > >
> >> > > >And try
> >> > > >http://localhost:8080/axis2/rest/version/getVersion
> >> > > >with another browser.
> >> > > >
> >> > > >I could see soap monitor catch SOAP message.
> >> > > >
> >> > > >Regards,
> >> > > >kinichiro
> >> > > >
> >> > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> > > >
> >> > > > > dear kinichiro,
> >> > > > >
> >> > > > >  i have tried, i can see the SOAPMonitor applet but
> the
> >> > > > > SOAPMonitor
> >> > > > > doesn't catch any message and when i try to engage the
> module
> >> > > through
> >> > > > > the
> >> > > > > administration page. I got this:
> >> > > > >
> >> > > > > Invalid phases please recheck axis2.xml soapmonitorPhase
> for the
> >> > > > > handler
> >> > > > > InFlowSOAPMonitorHandler
> >> > > > >
> >> > > > >i don't know what's wrong. I have used your code,
> compare with
> >> > > > > mine, make
> >> > > > > some change but still got the same result.
> >> > > > >
> >> > > > >   regards,
> >> > > > >   Wan
> >> > > > >
> >> > > > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> > > > > >Reply-To: axis-user@ws.apache.org
> >> > > > > >To: axis-user@ws.apache.org
> >> > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> > > > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> >> > > > > >
> >> > > > > >Hi Wan,
> >> > > > > >
> >> > > > > >Try my files.
> >> > > > > >1. copy web.xml to your tomcat/webapp

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai

thank you so much, i will try..

Wan



From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 06:03:28 -0700 (PDT)

SOAPMonitor seems using tcp port 5100.
Is there any program in your server grasp tcp port 5100 ?
How about checking with netstat -p tcp or something like that ?

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

> there is still the same error when i try to engage the soapmonitor
> module
> via the axis administration page.
>
> but when i access soapmonitor applet through the web browser, i am be
> able
> to see the applet but and see it in start mode, but when i make a
> call from
> client to server the soapmonitor applet remain unchange instead of
> capture
> something.
>
> the call between client-server is completed without seeing any soap
> msg on
> the applet.
>
> Wan
>
>
> >From: "robert lazarski" <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 09:14:50 -0300
> >
> >Let me try to understand where you're at now. You have the phases
> >working correctly, ie, no more errors. And you can press the start
> >button of the applet. However, you have no messages in the applet.
> Is
> >this correct?
> >
> >My guess is that you're not calling the WAR you think you are, but
> >that's just a guess.
> >
> >Put this file in your WEB-INF/classes , which will print the axis2
> >debug messages to stdout . In tomcat, that would mean catalina.out .
> >You need to have both commons-logging.jar and log4j.jar in
> WEB-INF/lib
> >.  Then send us the ouput and maybe we can help.
> >
> >Robert
> >http://www.braziloutsource.com/
> >
> >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >>
> >>i don't know how is this happened? but there is nothing appear on
> my
> >>applet.
> >>
> >>Wan
> >>
> >> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> >Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
> >> >
> >> >Yes,
> >> >just call service, message would be appeared on applet.
> >> >I saw it's working on axis2 1.0 release and nightly builds, both.
> >> >I captured SOAPMonitor window when I call version service via
> REST.
> >> >
> >> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> >
> >> > >
> >> > > yes, i can see the start and stop button and it's now started.
> >> > >
> >> > > so can i just make the client call to server, and then soap
> should be
> >> > > appear
> >> > > right?
> >> > >
> >> > > nothing appear on my applet.
> >> > >
> >> > > Wan
> >> > >
> >> > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> > > >Reply-To: axis-user@ws.apache.org
> >> > > >To: axis-user@ws.apache.org
> >> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> > > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> >> > > >
> >> > > >Hi, Wan.
> >> > > >
> >> > > >I don't think you need to engage anything, because I didn't.
> >> > > >Does applet started ?
> >> > > >You can start or stop soap monitor by button on the under
> left.
> >> > > >Can you see "The SOAP Monitor is Started" message on your
> applet ?
> >> > > >
> >> > > >And try
> >> > > >http://localhost:8080/axis2/rest/version/getVersion
> >> > > >with another browser.
> >> > > >
> >> > > >I could see soap monitor catch SOAP message.
> >> > > >
> >> > > >Regards,
> >> > > >kinichiro
> >> > > >
> >> > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> > > >
> >> > > > > dear kinichiro,
> >> > > > >
> >> > > > >  i have tried, i can see the SOAPMonitor applet but
> the
> >> > > > > SOAPMonitor
> >> > > > > doesn't catch any message and when i try to engage the
> module
> >> > > through
> >> > > > > the
> >> > > > > administration page. I got this:
> >> > > > >
> >> > > > > Invalid phases please recheck axis2.xml soapmonitorPhase
> for the
> >> > > > > handler
> >> > > > > InFlowSOAPMonitorHandler
> >> > > > >
> >> > > > >i don't know what's wrong. I have used your code,
> compare with
> >> > > > > mine, make
> >> > > > > some change but still got the same result.
> >> > > > >
> >> > > > >   regards,
> >> > > > >   Wan
> >> > > > >
> >> > > > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> > > > > >Reply-To: axis-user@ws.apache.org
> >> > > > > >To: axis-user@ws.apache.org
> >> > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> > > > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> >> > > > > >
> >> > > > > >Hi Wan,
> >> > > > > >
> >> > > > > >Try my files.
> >> > > > > >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> >> > > > > >2. copy axis2.xml to your
> tomcat/webapps/axis2/WEB-INF/conf/
> >> > > > > >3. extract soapmonitorapplet.zip to your
> tomcat/webapps/axis2/
> >> > > > > >4. access soapmonitor
> http://localhost:8080/axis2/SOAPMonitor
> >> > 

Re: Axis2 / Axis RPC

2006-07-06 Thread M S
Hi,

Basically what I'm trying to do is to create a simple Web Service that
will receive a String and retun the same string, i.e. basically an
"echo" web service. I tried using the sample on the Axis2 documentation
page with OMElement - it works fine. 

My problem is that I want to use String instead of OMElement on both
sides (server as well as client). Apparently, I cant do this unless I
use the RPC

So what I have is a services.xml that looks like this: 

- 


- 


   
  operation>

  MyService2parameter
> 

  service>

A MyService2.java that looks like this:

public class MyService2 {
    public String echo(String echostring) {
    return echostring;
    }

}

I can deploy this using axis2.war on JBoss. It deploys fine, and I get the following WSDL:


http://schemas.xmlsoap.org/wsdl/"
xmlns:axis2="http://ws.apache.org/axis2"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http:///xsd"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://ws.apache.org/axis2">http:///xsd" targetNamespace="http:///xsd"
elementFormDefault="qualified"
attributeFormDefault="qualified">

















http://schemas.xmlsoap.org/soap/http"
/>http://schemas.xmlsoap.org/soap/http"
/>http://localhost:8080/axis2/services/MyService2"
/>http://localhost:8080/axis2/services/MyService2"
/>http://localhost:8080/axis2/rest/MyService2"
/>

I then try to use WSDL2Java to create client stubs based on this WSDL.
It does generate them, but when I try to run the client I get the
following error: 

Exception in thread "main" java.lang.RuntimeException:java.lang.RuntimeException: Unexpected subelement returnat org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:665)at 
org.apache.axis2.MyService2Stub.echo(MyService2Stub.java:144)at org.apache.axis2.Client.main(Client.java:16)Caused by: java.lang.RuntimeException: Unexpected subelement returnatorg.apache.axis2.MyService2Stub$EchoResponse$Factory.parse
(MyService2Stub.java:419)at org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:657)... 2 moreI googled this and this page (
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200605.mbox/[EMAIL PROTECTED]) claims that this error message appears because axis2 does not support RPC Bindings.I'm confused - how do I generate a client for this WSDL?





Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Kinichiro Inoguchi
SOAPMonitor seems using tcp port 5100.
Is there any program in your server grasp tcp port 5100 ?
How about checking with netstat -p tcp or something like that ?

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

> there is still the same error when i try to engage the soapmonitor
> module 
> via the axis administration page.
> 
> but when i access soapmonitor applet through the web browser, i am be
> able 
> to see the applet but and see it in start mode, but when i make a
> call from 
> client to server the soapmonitor applet remain unchange instead of
> capture 
> something.
> 
> the call between client-server is completed without seeing any soap
> msg on 
> the applet.
> 
> Wan
> 
> 
> >From: "robert lazarski" <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 09:14:50 -0300
> >
> >Let me try to understand where you're at now. You have the phases
> >working correctly, ie, no more errors. And you can press the start
> >button of the applet. However, you have no messages in the applet.
> Is
> >this correct?
> >
> >My guess is that you're not calling the WAR you think you are, but
> >that's just a guess.
> >
> >Put this file in your WEB-INF/classes , which will print the axis2
> >debug messages to stdout . In tomcat, that would mean catalina.out .
> >You need to have both commons-logging.jar and log4j.jar in
> WEB-INF/lib
> >.  Then send us the ouput and maybe we can help.
> >
> >Robert
> >http://www.braziloutsource.com/
> >
> >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >>
> >>i don't know how is this happened? but there is nothing appear on
> my 
> >>applet.
> >>
> >>Wan
> >>
> >> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> >Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
> >> >
> >> >Yes,
> >> >just call service, message would be appeared on applet.
> >> >I saw it's working on axis2 1.0 release and nightly builds, both.
> >> >I captured SOAPMonitor window when I call version service via
> REST.
> >> >
> >> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> >
> >> > >
> >> > > yes, i can see the start and stop button and it's now started.
> >> > >
> >> > > so can i just make the client call to server, and then soap
> should be
> >> > > appear
> >> > > right?
> >> > >
> >> > > nothing appear on my applet.
> >> > >
> >> > > Wan
> >> > >
> >> > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> > > >Reply-To: axis-user@ws.apache.org
> >> > > >To: axis-user@ws.apache.org
> >> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> > > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> >> > > >
> >> > > >Hi, Wan.
> >> > > >
> >> > > >I don't think you need to engage anything, because I didn't.
> >> > > >Does applet started ?
> >> > > >You can start or stop soap monitor by button on the under
> left.
> >> > > >Can you see "The SOAP Monitor is Started" message on your
> applet ?
> >> > > >
> >> > > >And try
> >> > > >http://localhost:8080/axis2/rest/version/getVersion
> >> > > >with another browser.
> >> > > >
> >> > > >I could see soap monitor catch SOAP message.
> >> > > >
> >> > > >Regards,
> >> > > >kinichiro
> >> > > >
> >> > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> > > >
> >> > > > > dear kinichiro,
> >> > > > >
> >> > > > >  i have tried, i can see the SOAPMonitor applet but
> the
> >> > > > > SOAPMonitor
> >> > > > > doesn't catch any message and when i try to engage the
> module
> >> > > through
> >> > > > > the
> >> > > > > administration page. I got this:
> >> > > > >
> >> > > > > Invalid phases please recheck axis2.xml soapmonitorPhase
> for the
> >> > > > > handler
> >> > > > > InFlowSOAPMonitorHandler
> >> > > > >
> >> > > > >i don't know what's wrong. I have used your code,
> compare with
> >> > > > > mine, make
> >> > > > > some change but still got the same result.
> >> > > > >
> >> > > > >   regards,
> >> > > > >   Wan
> >> > > > >
> >> > > > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >> > > > > >Reply-To: axis-user@ws.apache.org
> >> > > > > >To: axis-user@ws.apache.org
> >> > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> > > > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> >> > > > > >
> >> > > > > >Hi Wan,
> >> > > > > >
> >> > > > > >Try my files.
> >> > > > > >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> >> > > > > >2. copy axis2.xml to your
> tomcat/webapps/axis2/WEB-INF/conf/
> >> > > > > >3. extract soapmonitorapplet.zip to your
> tomcat/webapps/axis2/
> >> > > > > >4. access soapmonitor
> http://localhost:8080/axis2/SOAPMonitor
> >> > > > > >
> >> > > > > >Regards,
> >> > > > > >kinichiro
> >> > > > > >
> >> > > > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> > > > > >
> >> > > > > > >
> >> > > > > > > Robert,
> >> > > > > > >
> >> > > > > > > can yo

Re: Urgent Help - Newbie

2006-07-06 Thread robert lazarski

You do not need a WSDL, but in situations like these it is helpful
because seemingly your only reference how to make the call is in perl
. Now if you're familair with how the perl code is doing things,
that'll help.

First advice: use axis2 . At least in my case you're more likely to
get help. Those deserializing errors don't happen in axis2 - or at
least are rare.

Looking at your the envelope, it's in português. Vou tentar ajudar!

Download the axis2-std-SNAPSHOT-src.zip  and
axis2-std-SNAPSHOT-bin.zip from the nightlies here:

http://people.apache.org/dist/axis2/nightly/

Now you don't need a server, just a client. In the source dir, follow
this example , ignoring the server as you just want to the client -
try testEchoBean()  .

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

For debugging, you're going to need something like tcpmon to see what
you are sending in case you get errors.

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

On 7/6/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:

I don't have it. Would I need it? the server is not java.
There's a soap client here running in perl using SOAP::Lite that doesn't
need any bureaucracy.
Now i can send a post that the server successfully answers. But I cannot
deserialize it. The answer the server sends is a list of Person objects (in
xml, of course).

What't the problem in deserializing it? is the an not-bureaucratic java
class I can use to deserialize it? would I ever need a DTD or WSDL
available? (in perl i don't need nothing of these...)

thank you,
 bruno


On 7/6/06, robert lazarski <[EMAIL PROTECTED]> wrote:
>
 You can use jmeter to send this exact message, and then you'll have a
response.

How to do that programatically is a much bigger question. Do you have a wsdl
?

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

On 7/5/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm new to SOAP and I need (quickly) to access a SOAP server. I need to
use
> the axis classes to create a SOAP post just like this one bellow and I
dont
> know how to do it:
>
>  POST /pfappspabxutils HTTP/1.1
> TE: deflate,gzip;q=0.3
> Connection: TE, close
 > Accept: text/xml
> Accept: multipart/*
>  Accept: application/soap
> Host: pfdesenv.planetarium.com.br:8080
> User-Agent: SOAP::Lite/Perl/0.67
> Content-Length: 1116
> Content-Type: text/xml; charset=utf-8
> SOAPAction: "
> http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa "
>
> 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> soap:encodingStyle="
> http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  http://172.16.10.103:8080/AgendaPesquisa ">
> C
> 
> 
> 
> 
> 
>  
> 
>  
> 
> 
>  
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
>   
>
>
>  Can someone just write a sample code of how to do this and send to me?
>
> Thank you very much,
> bruno
>

-
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 / Axis RPC

2006-07-06 Thread Anne Thomas Manes

Axis2 doesn't support SOAP encoding, but it does support RPC/literal.

Could you please provide a little more information about what you're
doing? I thought you said that the service was implemented using
Axis2.

Also, please post the WSDL.

Anne

On 7/6/06, M S <[EMAIL PROTECTED]> wrote:

 I tried to make my own by generating the stub files using
WSDL2Java from the WSDL generated by Axis.

Everything seems fine, I deploy it, etc. but when I try to run the client
I get the following:


Exception in thread "main" java.lang.RuntimeException:
java.lang.RuntimeException: Unexpected subelement return
 at
org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:665)
 at org.apache.axis2.MyService2Stub.echo
(MyService2Stub.java:144)
 at org.apache.axis2.Client.main(Client.java:16)
Caused by: java.lang.RuntimeException: Unexpected subelement return
 at
org.apache.axis2.MyService2Stub$EchoResponse$Factory.parse
(MyService2Stub.java:419)
 at
org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:657)
 ... 2 more


I googled it and according to

http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200605.mbox/[EMAIL 
PROTECTED]
this is because axis does not support RPC bindings.



On 7/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
 Why were you unable to generate a client using Axis2?
See
http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html.

Anne

 On 7/6/06, M S <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I am a newbie trying to create a RPC-based Web Service. I created this
> using Axis2 (latest nightly build dated 5th July). The problem is that I
> cannot use WSDL2Java to generate the Client stubs. So what I did is to use
> the old Axis (1.4 from 22nd April) to do this.
>
>  For some reason I don't get it to work. My Client code looks like this:
>
>  package org.apache.ws.axis;
>
>  import javax.xml.namespace.*;
>  import javax.xml.rpc.*;
>  import java.rmi.*;
>  import java.net.*;
>
>  public class Client2 {
>
>  public Client2() {}
>
>  interface MyPrimeHandler extends Remote {
>  public String echo(String echostring) throws RemoteException;
>  }
>
>  public void invokeService() {
>  String msg = "Det funkar";
>  try {
>  String wsdlLoc =
> "http://localhost:8080/axis2/services/MyService2?wsdl ";
>  QName serviceName = new
> QName("http://localhost:8080/axis2/services/MyService2";,
> "MyService2");
>  ServiceFactory sFactory = ServiceFactory.newInstance();
>  Service service = sFactory.createService(new URL(wsdlLoc),
> serviceName);
>  MyPrimeHandler mp =
> (MyPrimeHandler)service.getPort(MyPrimeHandler.class);
>  String resp = mp.echo(msg);
>  System.out.println(resp);
>  }
>
>  catch (Exception e) { e.printStackTrace();}
>  }
>
>  public static void main(String[] args) {
>  Client2 cl2 = new Client2();
>  cl2.invokeService();
>  }
>
>  }
>
>  The exception that I get is:
>
>  - Unable to find required classes (javax.activation.DataHandler and
> javax.mail.internet.MimeMultipart ). Attachment support
is
> disabled.
>  javax.xml.rpc.ServiceException: Error processing WSDL document:
>  javax.xml.rpc.ServiceException: Error processing WSDL document:
>  javax.xml.rpc.ServiceException : Cannot find service:
>
{http://localhost:8080/axis2/services/MyService2}MyService2
>  at
> org.apache.axis.client.Service.initService
(Service.java:250)
>  at org.apache.axis.client.Service.(Service.java:165)
>  at
>
org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)
>  at
> org.apache.ws.axis.Client2.invokeService(Client2.java:22)
>  at org.apache.ws.axis.Client2.main(Client2.java:33)
>
>
>  I have checked and the EPR exists at the specified URL above.
>
 >  Does anyone have an idea on how I should solve this problem? Or am I
> barking up the wrong tree? Perhaps there is some other way generating
client
> stubs with Axis2? Any help would be appreciated.
>
>  Regards
>
>

-
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 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai


i don't know if this useful or not



From: "robert lazarski" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 09:14:50 -0300

Let me try to understand where you're at now. You have the phases
working correctly, ie, no more errors. And you can press the start
button of the applet. However, you have no messages in the applet. Is
this correct?

My guess is that you're not calling the WAR you think you are, but
that's just a guess.

Put this file in your WEB-INF/classes , which will print the axis2
debug messages to stdout . In tomcat, that would mean catalina.out .
You need to have both commons-logging.jar and log4j.jar in WEB-INF/lib
.  Then send us the ouput and maybe we can help.

Robert
http://www.braziloutsource.com/

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


i don't know how is this happened? but there is nothing appear on my 
applet.


Wan

>From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
>
>Yes,
>just call service, message would be appeared on applet.
>I saw it's working on axis2 1.0 release and nightly builds, both.
>I captured SOAPMonitor window when I call version service via REST.
>
>--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>
> >
> > yes, i can see the start and stop button and it's now started.
> >
> > so can i just make the client call to server, and then soap should be
> > appear
> > right?
> >
> > nothing appear on my applet.
> >
> > Wan
> >
> > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> > >
> > >Hi, Wan.
> > >
> > >I don't think you need to engage anything, because I didn't.
> > >Does applet started ?
> > >You can start or stop soap monitor by button on the under left.
> > >Can you see "The SOAP Monitor is Started" message on your applet ?
> > >
> > >And try
> > >http://localhost:8080/axis2/rest/version/getVersion
> > >with another browser.
> > >
> > >I could see soap monitor catch SOAP message.
> > >
> > >Regards,
> > >kinichiro
> > >
> > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > >
> > > > dear kinichiro,
> > > >
> > > >  i have tried, i can see the SOAPMonitor applet but the
> > > > SOAPMonitor
> > > > doesn't catch any message and when i try to engage the module
> > through
> > > > the
> > > > administration page. I got this:
> > > >
> > > > Invalid phases please recheck axis2.xml soapmonitorPhase for the
> > > > handler
> > > > InFlowSOAPMonitorHandler
> > > >
> > > >i don't know what's wrong. I have used your code, compare with
> > > > mine, make
> > > > some change but still got the same result.
> > > >
> > > >   regards,
> > > >   Wan
> > > >
> > > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > > >Reply-To: axis-user@ws.apache.org
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> > > > >
> > > > >Hi Wan,
> > > > >
> > > > >Try my files.
> > > > >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> > > > >2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
> > > > >3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
> > > > >4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor
> > > > >
> > > > >Regards,
> > > > >kinichiro
> > > > >
> > > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > >
> > > > > > Robert,
> > > > > >
> > > > > > can you please send the file which is running properly..for
> > me,
> > > > > > because i
> > > > > > have try install the newest nightly build and run, i got the
> > same
> > > > > > result. I
> > > > > > think it's probably because of i did something wrong on the
> > > > > > configuration.
> > > > > > Your file could help me as example.
> > > > > >
> > > > > > greatly appreciated,
> > > > > >
> > > > > > Wan
> > > > > >
> > > > > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > >To: axis-user@ws.apache.org
> > > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > > > >Date: Thu, 6 Jul 2006 06:55:39 -0300
> > > > > > >
> > > > > > >Nothings changed, IIRC, with the soap monitor since the 1.0
> > > > release.
> > > > > > >So far everyone that had problems eventually got it to work.
> > The
> > > > > > only
> > > > > > >thing I can think of is that perhaps you copy and pasted the
> > > > phases
> > > > > > >from the tutorial in its entirety. Its possible the format
> > of
> > > > the
> > > > > > >phases changed slightly. So I recommend the following:
> > > > > > >
> > > > > > >1) Just copy the  into its
> > > > proper
> > > > > > >place, using the ori

Re: Urgent Help - Newbie

2006-07-06 Thread Anne Thomas Manes

A WSDL file is always a useful thing to have when exchanging SOAP
messages. It tells you exactly what the messages are supposed to look
like. It has nothing to do with whether or not the server is written
in Java. The reason you want the WSDL is to allow any client to talk
to the service, regardless of the type of language you want to use.

If you had a WSDL file, you could generate the Java client using
WSDL2Java. It would automatically generate a proxy that maps the XML
types to Java types, and automatically constructs/parses the incoming
and outgoing SOAP messages.

Perl is a dandy language for string manipulation, therefore it's
pretty trivial to construct and parse XML. Java is not so good at
string manipulation, so it's easier if you can convert the XML to Java
objects. But if you prefer, you can use JAXP to construct/parse the
SOAP messages programmatically. But without a WSDL, you'll have a lot
more difficulty processing the return message. (Did they give you a
sample of a return message?)

Java is a strongly typed language, therefore it really wants to know
what type of data it is receiving. The sample document--in which all
elements are null-- gives no clue regarding the types of each of the
elements. If you can't get a WSDL--or at least an XML Schema of the
message formats--I guess you can just treat them all as strings.

Anne



On 7/6/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:

I don't have it. Would I need it? the server is not java.
There's a soap client here running in perl using SOAP::Lite that doesn't
need any bureaucracy.
Now i can send a post that the server successfully answers. But I cannot
deserialize it. The answer the server sends is a list of Person objects (in
xml, of course).

What't the problem in deserializing it? is the an not-bureaucratic java
class I can use to deserialize it? would I ever need a DTD or WSDL
available? (in perl i don't need nothing of these...)

thank you,
 bruno


On 7/6/06, robert lazarski <[EMAIL PROTECTED]> wrote:
> You can use jmeter to send this exact message, and then you'll have a
response.
>
> How to do that programatically is a much bigger question. Do you have a
wsdl ?
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 7/5/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> >
> > I'm new to SOAP and I need (quickly) to access a SOAP server. I need to
use
> > the axis classes to create a SOAP post just like this one bellow and I
dont
> > know how to do it:
> >
> >  POST /pfappspabxutils HTTP/1.1
> > TE: deflate,gzip;q=0.3
> > Connection: TE, close
> > Accept: text/xml
> > Accept: multipart/*
> >  Accept: application/soap
> > Host: pfdesenv.planetarium.com.br:8080
> > User-Agent: SOAP::Lite/Perl/0.67
> > Content-Length: 1116
> > Content-Type: text/xml; charset=utf-8
> > SOAPAction: "
> > http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa
"
> >
> > 
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> > xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > soap:encodingStyle="
> > http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";>
> >   
> >  http://172.16.10.103:8080/AgendaPesquisa ">
> > C
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> >  
> > 
> > 
> >  
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> >   
> >
> >
> >  Can someone just write a sample code of how to do this and send to me?
> >
> > Thank you very much,
> > bruno
> >
>
>
-
> 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 / Axis RPC

2006-07-06 Thread M S
 I tried to make my own by generating the stub files usingWSDL2Java from the WSDL generated by Axis.Everything seems fine, I deploy it, etc. but when I try to run the clientI get the following:
Exception in thread "main" java.lang.RuntimeException:java.lang.RuntimeException: Unexpected subelement returnat org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:665)at org.apache.axis2.MyService2Stub.echo
(MyService2Stub.java:144)at org.apache.axis2.Client.main(Client.java:16)Caused by: java.lang.RuntimeException: Unexpected subelement returnatorg.apache.axis2.MyService2Stub$EchoResponse$Factory.parse
(MyService2Stub.java:419)at org.apache.axis2.MyService2Stub.fromOM(MyService2Stub.java:657)... 2 moreI googled it and according to
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200605.mbox/[EMAIL PROTECTED]this is because axis does not support RPC bindings. 
On 7/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Why were you unable to generate a client using Axis2?See http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html.Anne
On 7/6/06, M S <[EMAIL PROTECTED]> wrote:> Hi,>>  I am a newbie trying to create a RPC-based Web Service. I created this> using Axis2 (latest nightly build dated 5th July). The problem is that I
> cannot use WSDL2Java to generate the Client stubs. So what I did is to use> the old Axis (1.4 from 22nd April) to do this.>>  For some reason I don't get it to work. My Client code looks like this:
>>  package org.apache.ws.axis;>>  import javax.xml.namespace.*;>  import javax.xml.rpc.*;>  import java.rmi.*;>  import java.net.*;>>  public class Client2 {
>>  public Client2() {}>>  interface MyPrimeHandler extends Remote {>  public String echo(String echostring) throws RemoteException;>  }>>  public void invokeService() {
>  String msg = "Det funkar";>  try {>  String wsdlLoc => "http://localhost:8080/axis2/services/MyService2?wsdl
";>  QName serviceName = new> QName("http://localhost:8080/axis2/services/MyService2",> "MyService2");
>  ServiceFactory
sFactory = ServiceFactory.newInstance();>  Service
service = sFactory.createService(new URL(wsdlLoc),> serviceName);>  MyPrimeHandler mp => (MyPrimeHandler)service.getPort(MyPrimeHandler.class);>  String resp = mp.echo(msg);
>  System.out.println(resp);>  }>>  catch (Exception e) { e.printStackTrace();}>  }>>  public static void main(String[] args) {>  Client2 cl2 = new Client2();
>  cl2.invokeService();>  }>>  }>>  The exception that I get is:>>  - Unable to find required classes (javax.activation.DataHandler and> javax.mail.internet.MimeMultipart
). Attachment support is> disabled.>  javax.xml.rpc.ServiceException: Error processing WSDL document:>  javax.xml.rpc.ServiceException: Error processing WSDL document:>  javax.xml.rpc.ServiceException
: Cannot find service:> {http://localhost:8080/axis2/services/MyService2}MyService2>  at> org.apache.axis.client.Service.initService
(Service.java:250)>  at org.apache.axis.client.Service.(Service.java:165)>  at> org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)>  at> 
org.apache.ws.axis.Client2.invokeService(Client2.java:22)>  at org.apache.ws.axis.Client2.main(Client2.java:33)>>>  I have checked and the EPR exists at the specified URL above.>
>  Does anyone have an idea on how I should solve this problem? Or am I> barking up the wrong tree? Perhaps there is some other way generating client> stubs with Axis2? Any help would be appreciated.>
>  Regards>>-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Need Help: Axis 1.3 Array Problem.

2006-07-06 Thread Amit Andhale
Thanks Anne!
I faced this input parameter problem with "DOCUMENT" style. So I dropped that idea and used "WRAPPED" style.
Is there any other way other than "WSDL First" approach?
Even if I use WSDL First approach and use Axis 1.3/1.4, will this overcome my problem of getting "Zero Length Inner Array"?
 
Amit
 
 
On 7/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Note that if you do DOCUMENT style, your method can take only oneparameter (you must wrap your input parameters into a bean).
As a better approach, I recommend that you adopt a WSDL Firstapproach. Define the WSDL as you'd like to see it, then generate yourserver from it.AnneOn 7/6/06, Amit Andhale <
[EMAIL PROTECTED]> wrote:>> Hi,> Thanks for prompt reply!> Yes! I do have "style=WRAPPED" in my WSDL.> I have not checked with "DOCUMENT" style. I will check it and post my reply
> soon.>> Could you please tell me what changes you have made on .NET side Proxy> class?> This is very important task for me. And for the first time I am working on> Axis web service.
>>> Amit> On 7/6/06, Stanley Stanev <[EMAIL PROTECTED]> wrote:> >> >> > Amit,> >
> > we have solved this by changing a bit the generated proxy classes on the> .NET side, not good as it requires a very small change, but no way you can> fix this, bad for Axis 1.x> >
> > also, I bet you have in your WSDD style="wrapped" when you describe your> service> >> > can you try with style="document", what is the result? what is the SOAP in
> this case?> >> > thanks,> >> > Stanley Stanev> >> >> > Amit Andhale wrote:> >> >> > Hi John,> > Did your problem get solved using Axis2 or XFire?
> >> > Amit> >> >> > On 7/5/06, Amit Andhale <[EMAIL PROTECTED] > wrote:> > >> > > Thanks John! I also tried out removing ArrayMapping from WSDD. But issue
> still persists.> > >> > >> > >> > > On 7/5/06, john andersen <[EMAIL PROTECTED] > wrote:> > > >
> > > > I ran into the exact same issue with both Axis 1.4 and Axis 1.3 but I> used a gSOAP client instead of .NET - the array member tags were set  to the> name of the enclosing array.  This problem does not exist in Axis2.  Unless
> this is a valid way to represent an array in XML, this seems to be an Axis> 1.3/1.4 issue.> > > >> > > > Can this be a configuration issue?  I have added/removed ArrayMappings
> in the wsdd and have no idea what else I can poke to alter this behavior.> > > >> > > >> > > >> > > >> > > >> > > > On 7/5/06, Amit Andhale <
[EMAIL PROTECTED] > wrote:> > > >> > > >> > > >> > > > Hi Anne,> > > > I rebooted the server and redeployed the service.
> > > > I am still getting the SOAP Response in following fashion,> > > >> > > >> > > > > > > > 
> > > >   >   # WRONG> > > >   >   # WRONG> > > > 
> > > >   > > > >> > > >> > > > Please find actual SOAP response below:> > >> >> >>>
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]


Re: Axis2 / Axis RPC

2006-07-06 Thread Anne Thomas Manes

Why were you unable to generate a client using Axis2?
See http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html.

Anne

On 7/6/06, M S <[EMAIL PROTECTED]> wrote:

Hi,

 I am a newbie trying to create a RPC-based Web Service. I created this
using Axis2 (latest nightly build dated 5th July). The problem is that I
cannot use WSDL2Java to generate the Client stubs. So what I did is to use
the old Axis (1.4 from 22nd April) to do this.

 For some reason I don't get it to work. My Client code looks like this:

 package org.apache.ws.axis;

 import javax.xml.namespace.*;
 import javax.xml.rpc.*;
 import java.rmi.*;
 import java.net.*;

 public class Client2 {

 public Client2() {}

 interface MyPrimeHandler extends Remote {
 public String echo(String echostring) throws RemoteException;
 }

 public void invokeService() {
 String msg = "Det funkar";
 try {
 String wsdlLoc =
"http://localhost:8080/axis2/services/MyService2?wsdl";;
 QName serviceName = new
QName("http://localhost:8080/axis2/services/MyService2";,
"MyService2");
 ServiceFactory sFactory = ServiceFactory.newInstance();
 Service service = sFactory.createService(new URL(wsdlLoc),
serviceName);
 MyPrimeHandler mp =
(MyPrimeHandler)service.getPort(MyPrimeHandler.class);
 String resp = mp.echo(msg);
 System.out.println(resp);
 }

 catch (Exception e) { e.printStackTrace();}
 }

 public static void main(String[] args) {
 Client2 cl2 = new Client2();
 cl2.invokeService();
 }

 }

 The exception that I get is:

 - Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is
disabled.
 javax.xml.rpc.ServiceException: Error processing WSDL document:
 javax.xml.rpc.ServiceException: Error processing WSDL document:
 javax.xml.rpc.ServiceException: Cannot find service:
{http://localhost:8080/axis2/services/MyService2}MyService2
 at
org.apache.axis.client.Service.initService(Service.java:250)
 at org.apache.axis.client.Service.(Service.java:165)
 at
org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)
 at
org.apache.ws.axis.Client2.invokeService(Client2.java:22)
 at org.apache.ws.axis.Client2.main(Client2.java:33)


 I have checked and the EPR exists at the specified URL above.

 Does anyone have an idea on how I should solve this problem? Or am I
barking up the wrong tree? Perhaps there is some other way generating client
stubs with Axis2? Any help would be appreciated.

 Regards




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



Re: Need Help: Axis 1.3 Array Problem.

2006-07-06 Thread Anne Thomas Manes

Note that if you do DOCUMENT style, your method can take only one
parameter (you must wrap your input parameters into a bean).

As a better approach, I recommend that you adopt a WSDL First
approach. Define the WSDL as you'd like to see it, then generate your
server from it.

Anne

On 7/6/06, Amit Andhale <[EMAIL PROTECTED]> wrote:


Hi,
Thanks for prompt reply!
Yes! I do have "style=WRAPPED" in my WSDL.
I have not checked with "DOCUMENT" style. I will check it and post my reply
soon.

Could you please tell me what changes you have made on .NET side Proxy
class?
This is very important task for me. And for the first time I am working on
Axis web service.


Amit




On 7/6/06, Stanley Stanev <[EMAIL PROTECTED]> wrote:
>
>
> Amit,
>
> we have solved this by changing a bit the generated proxy classes on the
.NET side, not good as it requires a very small change, but no way you can
fix this, bad for Axis 1.x
>
> also, I bet you have in your WSDD style="wrapped" when you describe your
service
>
> can you try with style="document", what is the result? what is the SOAP in
this case?
>
> thanks,
>
> Stanley Stanev
>
>
> Amit Andhale wrote:
>
>
> Hi John,
> Did your problem get solved using Axis2 or XFire?
>
> Amit
>
>
> On 7/5/06, Amit Andhale <[EMAIL PROTECTED] > wrote:
> >
> > Thanks John! I also tried out removing ArrayMapping from WSDD. But issue
still persists.
> >
> >
> >
> > On 7/5/06, john andersen <[EMAIL PROTECTED] > wrote:
> > >
> > > I ran into the exact same issue with both Axis 1.4 and Axis 1.3 but I
used a gSOAP client instead of .NET - the array member tags were set  to the
name of the enclosing array.  This problem does not exist in Axis2.  Unless
this is a valid way to represent an array in XML, this seems to be an Axis
1.3/1.4 issue.
> > >
> > > Can this be a configuration issue?  I have added/removed ArrayMappings
in the wsdd and have no idea what else I can poke to alter this behavior.
> > >
> > >
> > >
> > >
> > >
> > > On 7/5/06, Amit Andhale <[EMAIL PROTECTED] > wrote:
> > >
> > >
> > >
> > > Hi Anne,
> > > I rebooted the server and redeployed the service.
> > > I am still getting the SOAP Response in following fashion,
> > >
> > >
> > > 
> > > 
> > >   
  # WRONG
> > >   
  # WRONG
> > > 
> > >   
> > >
> > >
> > > Please find actual SOAP response below:
> >
>
>




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



Axis2 / Axis RPC

2006-07-06 Thread M S
Hi,

I am a newbie trying to create a RPC-based Web Service. I created this
using Axis2 (latest nightly build dated 5th July). The problem is that
I cannot use WSDL2Java to generate the Client stubs. So what I did is
to use the old Axis (1.4 from 22nd April) to do this. 

For some reason I don't get it to work. My Client code looks like this:

package org.apache.ws.axis;

import javax.xml.namespace.*;
import javax.xml.rpc.*;
import java.rmi.*;
import java.net.*;

public class Client2 {
    
    public Client2() {}
    
    interface MyPrimeHandler extends Remote {
        public String echo(String echostring) throws RemoteException;
    }
    
    public void invokeService() {
        String msg = "Det funkar";
        try {
            String wsdlLoc
= "http://localhost:8080/axis2/services/MyService2?wsdl";
            QName
serviceName = new
QName("http://localhost:8080/axis2/services/MyService2", "MyService2");
            ServiceFactory sFactory = ServiceFactory.newInstance();
            Service
service = sFactory.createService(new URL(wsdlLoc), serviceName);
            MyPrimeHandler
mp = (MyPrimeHandler)service.getPort(MyPrimeHandler.class);
            String resp = mp.echo(msg);
            System.out.println(resp);
        }
        
        catch (Exception e) { e.printStackTrace();}
    }
    
    public static void main(String[] args) {
        Client2 cl2 = new Client2();
        cl2.invokeService();
    }
    
}

The exception that I get is:

- Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
javax.xml.rpc.ServiceException: Error processing WSDL document:  
javax.xml.rpc.ServiceException: Error processing WSDL document:  
javax.xml.rpc.ServiceException: Cannot find service:  {http://localhost:8080/axis2/services/MyService2}MyService2
    at org.apache.axis.client.Service.initService(Service.java:250)
    at org.apache.axis.client.Service.(Service.java:165)
    at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)
    at org.apache.ws.axis.Client2.invokeService(Client2.java:22)
    at org.apache.ws.axis.Client2.main(Client2.java:33)


I have checked and the EPR exists at the specified URL above. 

Does anyone have an idea on how I should solve this problem? Or am I
barking up the wrong tree? Perhaps there is some other way generating
client stubs with Axis2? Any help would be appreciated. 

Regards



Re: Urgent Help - Newbie

2006-07-06 Thread Bruno Negrao
I don't have it. Would I need it? the server is not java.There's a soap client here running in perl using SOAP::Lite that doesn't need any bureaucracy. Now i can send a post that the server successfully answers. But I cannot deserialize it. The answer the server sends is a list of Person objects (in xml, of course).
What't the problem in deserializing it? is the an not-bureaucratic java class I can use to deserialize it? would I ever need a DTD or WSDL available? (in perl i don't need nothing of these...)thank you,
brunoOn 7/6/06, robert lazarski <[EMAIL PROTECTED]> wrote:
You can use jmeter to send this exact message, and then you'll have a response.How to do that programatically is a much bigger question. Do you have a wsdl ?HTH,Robert
http://www.braziloutsource.com/On 7/5/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:> Hi guys,>> I'm new to SOAP and I need (quickly) to access a SOAP server. I need to use
> the axis classes to create a SOAP post just like this one bellow and I dont> know how to do it:>>  POST /pfappspabxutils HTTP/1.1> TE: deflate,gzip;q=0.3> Connection: TE, close
> Accept: text/xml> Accept: multipart/*>  Accept: application/soap> Host: pfdesenv.planetarium.com.br:8080> User-Agent: SOAP::Lite/Perl/0.67
> Content-Length: 1116> Content-Type: text/xml; charset=utf-8> SOAPAction: "> http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa
">> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"> xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"> xmlns:xsd="http://www.w3.org/2001/XMLSchema
"> soap:encodingStyle="> http://schemas.xmlsoap.org/soap/encoding/"> xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">>   >  http://172.16.10.103:8080/AgendaPesquisa
">> C> > > 
> > >  > 
>  > > 
>  > >  > 
> > > > 
> > > > 
> >  >   >>>  Can someone just write a sample code of how to do this and send to me?
>> Thank you very much,> bruno>-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai
there is still the same error when i try to engage the soapmonitor module 
via the axis administration page.


but when i access soapmonitor applet through the web browser, i am be able 
to see the applet but and see it in start mode, but when i make a call from 
client to server the soapmonitor applet remain unchange instead of capture 
something.


the call between client-server is completed without seeing any soap msg on 
the applet.


Wan



From: "robert lazarski" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 09:14:50 -0300

Let me try to understand where you're at now. You have the phases
working correctly, ie, no more errors. And you can press the start
button of the applet. However, you have no messages in the applet. Is
this correct?

My guess is that you're not calling the WAR you think you are, but
that's just a guess.

Put this file in your WEB-INF/classes , which will print the axis2
debug messages to stdout . In tomcat, that would mean catalina.out .
You need to have both commons-logging.jar and log4j.jar in WEB-INF/lib
.  Then send us the ouput and maybe we can help.

Robert
http://www.braziloutsource.com/

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


i don't know how is this happened? but there is nothing appear on my 
applet.


Wan

>From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
>
>Yes,
>just call service, message would be appeared on applet.
>I saw it's working on axis2 1.0 release and nightly builds, both.
>I captured SOAPMonitor window when I call version service via REST.
>
>--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>
> >
> > yes, i can see the start and stop button and it's now started.
> >
> > so can i just make the client call to server, and then soap should be
> > appear
> > right?
> >
> > nothing appear on my applet.
> >
> > Wan
> >
> > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> > >
> > >Hi, Wan.
> > >
> > >I don't think you need to engage anything, because I didn't.
> > >Does applet started ?
> > >You can start or stop soap monitor by button on the under left.
> > >Can you see "The SOAP Monitor is Started" message on your applet ?
> > >
> > >And try
> > >http://localhost:8080/axis2/rest/version/getVersion
> > >with another browser.
> > >
> > >I could see soap monitor catch SOAP message.
> > >
> > >Regards,
> > >kinichiro
> > >
> > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > >
> > > > dear kinichiro,
> > > >
> > > >  i have tried, i can see the SOAPMonitor applet but the
> > > > SOAPMonitor
> > > > doesn't catch any message and when i try to engage the module
> > through
> > > > the
> > > > administration page. I got this:
> > > >
> > > > Invalid phases please recheck axis2.xml soapmonitorPhase for the
> > > > handler
> > > > InFlowSOAPMonitorHandler
> > > >
> > > >i don't know what's wrong. I have used your code, compare with
> > > > mine, make
> > > > some change but still got the same result.
> > > >
> > > >   regards,
> > > >   Wan
> > > >
> > > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > > >Reply-To: axis-user@ws.apache.org
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> > > > >
> > > > >Hi Wan,
> > > > >
> > > > >Try my files.
> > > > >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> > > > >2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
> > > > >3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
> > > > >4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor
> > > > >
> > > > >Regards,
> > > > >kinichiro
> > > > >
> > > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > >
> > > > > > Robert,
> > > > > >
> > > > > > can you please send the file which is running properly..for
> > me,
> > > > > > because i
> > > > > > have try install the newest nightly build and run, i got the
> > same
> > > > > > result. I
> > > > > > think it's probably because of i did something wrong on the
> > > > > > configuration.
> > > > > > Your file could help me as example.
> > > > > >
> > > > > > greatly appreciated,
> > > > > >
> > > > > > Wan
> > > > > >
> > > > > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > >To: axis-user@ws.apache.org
> > > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > > > >Date: Thu, 6 Jul 2006 06:55:39 -0300
> > > > > > >
> > > > > > >Nothings changed, IIRC, with the soap monitor since the 1.0
> > > > release.
> > > > > > >So far everyone that had p

Re: Problem with Document/Literal in a WS with Application scope (Bug?)

2006-07-06 Thread Anne Thomas Manes

Is the DeadLockFault class a bean? If not, then you can't use the bean
[de]serializer.

Anne

On 7/6/06, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:

That solved the problem for the input parameters but it still warns
about typemapping of the DeadLockFault exception.
The deployment descriptor is attached and it has a typemapping with
that class but when throwing the exception in the deployed service, it
generates a general server error instead of throwing a fault.


On 7/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> Specify -y WRAPPED rather than -y DOCUMENT.
>
> Anne
>
> On 7/5/06, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:
> > Hello, we need a singleton service that must be document/literal due
> > to interoperability issues. The Interface used to generate the wsdl
> > (LockManager) and the wsdl generated with the java2wsdl tool are
> > attached. We use the following options in the generation:
> >
> > -l http://localhost:8080/axis/services/LockManagerService -n
> > http://tomas.org/faultolerance/lockmanager/service -y DOCUMENT -u
> > LITERAL aux.LockManager
> >
> > and then we generate the skeleton/stub code with wsdl2java with the
> > following options:
> >
> > -s -S true -W -d "Application" LockManagerService.wsdl
> >
> > Once we have implemented and deployed our service, we make a call to
> > the lock method through the generated stub and it seems to send it
> > well, as you can see in the attached xml file, obtained with tcpmon,
> > but in the server side, the skeleton object gets only the first
> > parameter of the method and all the other parameters are received as
> > null. That behavor does not happen if the service is deployed as
> > Request instead of Application or if it uses RPC/Enconded instead of
> > Document/Literal.
> > Is it a bug with Axis? Are we doing something wrong?
> >
> > --
> > Regards.
> > José Antonio Sánchez
> >
> >
> > -
> > 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]
>
>


--
Saludos.
José Antonio Sánchez


-
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: Urgent Help - Newbie

2006-07-06 Thread robert lazarski

You can use jmeter to send this exact message, and then you'll have a response.

How to do that programatically is a much bigger question. Do you have a wsdl ?

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

On 7/5/06, Bruno Negrao <[EMAIL PROTECTED]> wrote:

Hi guys,

I'm new to SOAP and I need (quickly) to access a SOAP server. I need to use
the axis classes to create a SOAP post just like this one bellow and I dont
know how to do it:

 POST /pfappspabxutils HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Accept: text/xml
Accept: multipart/*
 Accept: application/soap
Host: pfdesenv.planetarium.com.br:8080
User-Agent: SOAP::Lite/Perl/0.67
Content-Length: 1116
Content-Type: text/xml; charset=utf-8
SOAPAction: "
http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa";


   http://www.w3.org/2001/XMLSchema-instance";
xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
soap:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  
 http://172.16.10.103:8080/AgendaPesquisa";>
C





 

 


 

 










 
  
   

 Can someone just write a sample code of how to do this and send to me?

Thank you very much,
bruno



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



Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread robert lazarski

Let me try to understand where you're at now. You have the phases
working correctly, ie, no more errors. And you can press the start
button of the applet. However, you have no messages in the applet. Is
this correct?

My guess is that you're not calling the WAR you think you are, but
that's just a guess.

Put this file in your WEB-INF/classes , which will print the axis2
debug messages to stdout . In tomcat, that would mean catalina.out .
You need to have both commons-logging.jar and log4j.jar in WEB-INF/lib
.  Then send us the ouput and maybe we can help.

Robert
http://www.braziloutsource.com/

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


i don't know how is this happened? but there is nothing appear on my applet.

Wan

>From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)
>
>Yes,
>just call service, message would be appeared on applet.
>I saw it's working on axis2 1.0 release and nightly builds, both.
>I captured SOAPMonitor window when I call version service via REST.
>
>--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>
> >
> > yes, i can see the start and stop button and it's now started.
> >
> > so can i just make the client call to server, and then soap should be
> > appear
> > right?
> >
> > nothing appear on my applet.
> >
> > Wan
> >
> > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> > >
> > >Hi, Wan.
> > >
> > >I don't think you need to engage anything, because I didn't.
> > >Does applet started ?
> > >You can start or stop soap monitor by button on the under left.
> > >Can you see "The SOAP Monitor is Started" message on your applet ?
> > >
> > >And try
> > >http://localhost:8080/axis2/rest/version/getVersion
> > >with another browser.
> > >
> > >I could see soap monitor catch SOAP message.
> > >
> > >Regards,
> > >kinichiro
> > >
> > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > >
> > > > dear kinichiro,
> > > >
> > > >  i have tried, i can see the SOAPMonitor applet but the
> > > > SOAPMonitor
> > > > doesn't catch any message and when i try to engage the module
> > through
> > > > the
> > > > administration page. I got this:
> > > >
> > > > Invalid phases please recheck axis2.xml soapmonitorPhase for the
> > > > handler
> > > > InFlowSOAPMonitorHandler
> > > >
> > > >i don't know what's wrong. I have used your code, compare with
> > > > mine, make
> > > > some change but still got the same result.
> > > >
> > > >   regards,
> > > >   Wan
> > > >
> > > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > > >Reply-To: axis-user@ws.apache.org
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> > > > >
> > > > >Hi Wan,
> > > > >
> > > > >Try my files.
> > > > >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> > > > >2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
> > > > >3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
> > > > >4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor
> > > > >
> > > > >Regards,
> > > > >kinichiro
> > > > >
> > > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > >
> > > > > > Robert,
> > > > > >
> > > > > > can you please send the file which is running properly..for
> > me,
> > > > > > because i
> > > > > > have try install the newest nightly build and run, i got the
> > same
> > > > > > result. I
> > > > > > think it's probably because of i did something wrong on the
> > > > > > configuration.
> > > > > > Your file could help me as example.
> > > > > >
> > > > > > greatly appreciated,
> > > > > >
> > > > > > Wan
> > > > > >
> > > > > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > >To: axis-user@ws.apache.org
> > > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > > > >Date: Thu, 6 Jul 2006 06:55:39 -0300
> > > > > > >
> > > > > > >Nothings changed, IIRC, with the soap monitor since the 1.0
> > > > release.
> > > > > > >So far everyone that had problems eventually got it to work.
> > The
> > > > > > only
> > > > > > >thing I can think of is that perhaps you copy and pasted the
> > > > phases
> > > > > > >from the tutorial in its entirety. Its possible the format
> > of
> > > > the
> > > > > > >phases changed slightly. So I recommend the following:
> > > > > > >
> > > > > > >1) Just copy the  into its
> > > > proper
> > > > > > >place, using the original axis2.xml . And just the   > > > > > >ref="soapmonitor"/> next to where addressing is.
> > > > > > >
> > > > > > >2) If that doesn't work, I really need the DEBUG log info to
> > see
> > > > > > >exactly what's going on. You can 

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai


i don't know how is this happened? but there is nothing appear on my applet.

Wan


From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 04:38:21 -0700 (PDT)

Yes,
just call service, message would be appeared on applet.
I saw it's working on axis2 1.0 release and nightly builds, both.
I captured SOAPMonitor window when I call version service via REST.

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

>
> yes, i can see the start and stop button and it's now started.
>
> so can i just make the client call to server, and then soap should be
> appear
> right?
>
> nothing appear on my applet.
>
> Wan
>
> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)
> >
> >Hi, Wan.
> >
> >I don't think you need to engage anything, because I didn't.
> >Does applet started ?
> >You can start or stop soap monitor by button on the under left.
> >Can you see "The SOAP Monitor is Started" message on your applet ?
> >
> >And try
> >http://localhost:8080/axis2/rest/version/getVersion
> >with another browser.
> >
> >I could see soap monitor catch SOAP message.
> >
> >Regards,
> >kinichiro
> >
> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >
> > > dear kinichiro,
> > >
> > >  i have tried, i can see the SOAPMonitor applet but the
> > > SOAPMonitor
> > > doesn't catch any message and when i try to engage the module
> through
> > > the
> > > administration page. I got this:
> > >
> > > Invalid phases please recheck axis2.xml soapmonitorPhase for the
> > > handler
> > > InFlowSOAPMonitorHandler
> > >
> > >i don't know what's wrong. I have used your code, compare with
> > > mine, make
> > > some change but still got the same result.
> > >
> > >   regards,
> > >   Wan
> > >
> > > >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> > > >
> > > >Hi Wan,
> > > >
> > > >Try my files.
> > > >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> > > >2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
> > > >3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
> > > >4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor
> > > >
> > > >Regards,
> > > >kinichiro
> > > >
> > > >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >
> > > > >
> > > > > Robert,
> > > > >
> > > > > can you please send the file which is running properly..for
> me,
> > > > > because i
> > > > > have try install the newest nightly build and run, i got the
> same
> > > > > result. I
> > > > > think it's probably because of i did something wrong on the
> > > > > configuration.
> > > > > Your file could help me as example.
> > > > >
> > > > > greatly appreciated,
> > > > >
> > > > > Wan
> > > > >
> > > > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > > > >Reply-To: axis-user@ws.apache.org
> > > > > >To: axis-user@ws.apache.org
> > > > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > > > >Date: Thu, 6 Jul 2006 06:55:39 -0300
> > > > > >
> > > > > >Nothings changed, IIRC, with the soap monitor since the 1.0
> > > release.
> > > > > >So far everyone that had problems eventually got it to work.
> The
> > > > > only
> > > > > >thing I can think of is that perhaps you copy and pasted the
> > > phases
> > > > > >from the tutorial in its entirety. Its possible the format
> of
> > > the
> > > > > >phases changed slightly. So I recommend the following:
> > > > > >
> > > > > >1) Just copy the  into its
> > > proper
> > > > > >place, using the original axis2.xml . And just the   > > > > >ref="soapmonitor"/> next to where addressing is.
> > > > > >
> > > > > >2) If that doesn't work, I really need the DEBUG log info to
> see
> > > > > >exactly what's going on. You can enable it via an
> appropriate
> > > > > >log4j.properties under WEB-INF/classes . However...
> > > > > >
> > > > > >3) I myself run nightlies as there have been critical bug
> fixes
> > > in
> > > > > the
> > > > > >areas that I use. Moving to the nightlies in general may
> help
> > > you in
> > > > > >the long run, including my ability to help via comparing my
> > > sytem to
> > > > > >what is happening on yours. If you do that, perhaps I can
> send
> > > my
> > > > > >files to the list and it may start working for you.
> > > > > >
> > > > > >HTH,
> > > > > >Robert
> > > > > >http://www.braziloutsource.com/
> > > > > >
> > > > > >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > > > >>
> > > > > >>Dear Robert,
> > > > > >>
> > > > > >>  I have made sure that axis2-soapmonitor*.mar was in
> my
> > > > > modules
> > > > > >>folder
> > > > > >>as well as axis2-soapmonitor*.jar in

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai


yes, i can see the start and stop button and it's now started.

so can i just make the client call to server, and then soap should be appear 
right?


nothing appear on my applet.

Wan


From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 04:16:05 -0700 (PDT)

Hi, Wan.

I don't think you need to engage anything, because I didn't.
Does applet started ?
You can start or stop soap monitor by button on the under left.
Can you see "The SOAP Monitor is Started" message on your applet ?

And try
http://localhost:8080/axis2/rest/version/getVersion
with another browser.

I could see soap monitor catch SOAP message.

Regards,
kinichiro

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

> dear kinichiro,
>
>  i have tried, i can see the SOAPMonitor applet but the
> SOAPMonitor
> doesn't catch any message and when i try to engage the module through
> the
> administration page. I got this:
>
> Invalid phases please recheck axis2.xml soapmonitorPhase for the
> handler
> InFlowSOAPMonitorHandler
>
>i don't know what's wrong. I have used your code, compare with
> mine, make
> some change but still got the same result.
>
>   regards,
>   Wan
>
> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> >
> >Hi Wan,
> >
> >Try my files.
> >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> >2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
> >3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
> >4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor
> >
> >Regards,
> >kinichiro
> >
> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Robert,
> > >
> > > can you please send the file which is running properly..for me,
> > > because i
> > > have try install the newest nightly build and run, i got the same
> > > result. I
> > > think it's probably because of i did something wrong on the
> > > configuration.
> > > Your file could help me as example.
> > >
> > > greatly appreciated,
> > >
> > > Wan
> > >
> > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >Date: Thu, 6 Jul 2006 06:55:39 -0300
> > > >
> > > >Nothings changed, IIRC, with the soap monitor since the 1.0
> release.
> > > >So far everyone that had problems eventually got it to work. The
> > > only
> > > >thing I can think of is that perhaps you copy and pasted the
> phases
> > > >from the tutorial in its entirety. Its possible the format of
> the
> > > >phases changed slightly. So I recommend the following:
> > > >
> > > >1) Just copy the  into its
> proper
> > > >place, using the original axis2.xml . And just the   > > >ref="soapmonitor"/> next to where addressing is.
> > > >
> > > >2) If that doesn't work, I really need the DEBUG log info to see
> > > >exactly what's going on. You can enable it via an appropriate
> > > >log4j.properties under WEB-INF/classes . However...
> > > >
> > > >3) I myself run nightlies as there have been critical bug fixes
> in
> > > the
> > > >areas that I use. Moving to the nightlies in general may help
> you in
> > > >the long run, including my ability to help via comparing my
> sytem to
> > > >what is happening on yours. If you do that, perhaps I can send
> my
> > > >files to the list and it may start working for you.
> > > >
> > > >HTH,
> > > >Robert
> > > >http://www.braziloutsource.com/
> > > >
> > > >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >>Dear Robert,
> > > >>
> > > >>  I have made sure that axis2-soapmonitor*.mar was in my
> > > modules
> > > >>folder
> > > >>as well as axis2-soapmonitor*.jar in WEB-INF/lib.
> > > >>
> > > >>  so, should i try it with the latest nightly build or is
> there
> > > any
> > > >>other
> > > >>possibility that i might do something wrong? Please comment..
> > > >>
> > > >>   Thank you,
> > > >>   Wan
> > > >>
> > > >> >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > >> >Reply-To: axis-user@ws.apache.org
> > > >> >To: axis-user@ws.apache.org
> > > >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >> >Date: Wed, 5 Jul 2006 10:56:42 -0300
> > > >> >
> > > >> >Looks fine to me. And I just gave the soapmonitor a spin on a
> > > recent
> > > >> >nightly build and its running fine. My guess, however, is
> either
> > > you
> > > >> >don't have the axis2-soapmonitor*.mar in modules or
> > > >> >axis2-soapmonitor*.jar in WEB-INF/lib .
> > > >> >
> > > >> >If all else fails, but axis2 in debug via
> > > >> >WEB-INF/classes/log4j.properties , etc,  and send the ouput
> to
> > > the
> > > >> >list.
> > > >> >
> > > >> >HTH,
> > > >> >Robert
> > > >> >http://www.braziloutsource.com/

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Kinichiro Inoguchi
Hi, Wan.

I don't think you need to engage anything, because I didn't.
Does applet started ?
You can start or stop soap monitor by button on the under left.
Can you see "The SOAP Monitor is Started" message on your applet ?

And try 
http://localhost:8080/axis2/rest/version/getVersion
with another browser.

I could see soap monitor catch SOAP message.

Regards,
kinichiro

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

> dear kinichiro,
> 
>  i have tried, i can see the SOAPMonitor applet but the
> SOAPMonitor 
> doesn't catch any message and when i try to engage the module through
> the 
> administration page. I got this:
> 
> Invalid phases please recheck axis2.xml soapmonitorPhase for the
> handler 
> InFlowSOAPMonitorHandler
> 
>i don't know what's wrong. I have used your code, compare with
> mine, make 
> some change but still got the same result.
> 
>   regards,
>   Wan
> 
> >From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)
> >
> >Hi Wan,
> >
> >Try my files.
> >1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
> >2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
> >3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
> >4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor
> >
> >Regards,
> >kinichiro
> >
> >--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Robert,
> > >
> > > can you please send the file which is running properly..for me,
> > > because i
> > > have try install the newest nightly build and run, i got the same
> > > result. I
> > > think it's probably because of i did something wrong on the
> > > configuration.
> > > Your file could help me as example.
> > >
> > > greatly appreciated,
> > >
> > > Wan
> > >
> > > >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >Date: Thu, 6 Jul 2006 06:55:39 -0300
> > > >
> > > >Nothings changed, IIRC, with the soap monitor since the 1.0
> release.
> > > >So far everyone that had problems eventually got it to work. The
> > > only
> > > >thing I can think of is that perhaps you copy and pasted the
> phases
> > > >from the tutorial in its entirety. Its possible the format of
> the
> > > >phases changed slightly. So I recommend the following:
> > > >
> > > >1) Just copy the  into its
> proper
> > > >place, using the original axis2.xml . And just the   > > >ref="soapmonitor"/> next to where addressing is.
> > > >
> > > >2) If that doesn't work, I really need the DEBUG log info to see
> > > >exactly what's going on. You can enable it via an appropriate
> > > >log4j.properties under WEB-INF/classes . However...
> > > >
> > > >3) I myself run nightlies as there have been critical bug fixes
> in
> > > the
> > > >areas that I use. Moving to the nightlies in general may help
> you in
> > > >the long run, including my ability to help via comparing my
> sytem to
> > > >what is happening on yours. If you do that, perhaps I can send
> my
> > > >files to the list and it may start working for you.
> > > >
> > > >HTH,
> > > >Robert
> > > >http://www.braziloutsource.com/
> > > >
> > > >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >>Dear Robert,
> > > >>
> > > >>  I have made sure that axis2-soapmonitor*.mar was in my
> > > modules
> > > >>folder
> > > >>as well as axis2-soapmonitor*.jar in WEB-INF/lib.
> > > >>
> > > >>  so, should i try it with the latest nightly build or is
> there
> > > any
> > > >>other
> > > >>possibility that i might do something wrong? Please comment..
> > > >>
> > > >>   Thank you,
> > > >>   Wan
> > > >>
> > > >> >From: "robert lazarski" <[EMAIL PROTECTED]>
> > > >> >Reply-To: axis-user@ws.apache.org
> > > >> >To: axis-user@ws.apache.org
> > > >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> > > >> >Date: Wed, 5 Jul 2006 10:56:42 -0300
> > > >> >
> > > >> >Looks fine to me. And I just gave the soapmonitor a spin on a
> > > recent
> > > >> >nightly build and its running fine. My guess, however, is
> either
> > > you
> > > >> >don't have the axis2-soapmonitor*.mar in modules or
> > > >> >axis2-soapmonitor*.jar in WEB-INF/lib .
> > > >> >
> > > >> >If all else fails, but axis2 in debug via
> > > >> >WEB-INF/classes/log4j.properties , etc,  and send the ouput
> to
> > > the
> > > >> >list.
> > > >> >
> > > >> >HTH,
> > > >> >Robert
> > > >> >http://www.braziloutsource.com/
> > > >> >
> > > >> >On 7/5/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> > > >> >>can you see what is wrong with my axis2.xml?
> > > >> >>i have tried so many different configuration.
> > > >> >>
> > > >> >>
> > > >> >> 
> > > >> >> 
> > > >> >> 
> > > >> >>  > > locked="false">true
> > > >> >>  > > locked="false">false
> > > >> >>  > > locked="fa

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai

dear kinichiro,

i have tried, i can see the SOAPMonitor applet but the SOAPMonitor 
doesn't catch any message and when i try to engage the module through the 
administration page. I got this:


Invalid phases please recheck axis2.xml soapmonitorPhase for the handler 
InFlowSOAPMonitorHandler


  i don't know what's wrong. I have used your code, compare with mine, make 
some change but still got the same result.


 regards,
 Wan


From: Kinichiro Inoguchi <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 03:19:20 -0700 (PDT)

Hi Wan,

Try my files.
1. copy web.xml to your tomcat/webapps/axis2/WEB-INF/
2. copy axis2.xml to your tomcat/webapps/axis2/WEB-INF/conf/
3. extract soapmonitorapplet.zip to your tomcat/webapps/axis2/
4. access soapmonitor http://localhost:8080/axis2/SOAPMonitor

Regards,
kinichiro

--- Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

>
> Robert,
>
> can you please send the file which is running properly..for me,
> because i
> have try install the newest nightly build and run, i got the same
> result. I
> think it's probably because of i did something wrong on the
> configuration.
> Your file could help me as example.
>
> greatly appreciated,
>
> Wan
>
> >From: "robert lazarski" <[EMAIL PROTECTED]>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >Date: Thu, 6 Jul 2006 06:55:39 -0300
> >
> >Nothings changed, IIRC, with the soap monitor since the 1.0 release.
> >So far everyone that had problems eventually got it to work. The
> only
> >thing I can think of is that perhaps you copy and pasted the phases
> >from the tutorial in its entirety. Its possible the format of the
> >phases changed slightly. So I recommend the following:
> >
> >1) Just copy the  into its proper
> >place, using the original axis2.xml . And just the   >ref="soapmonitor"/> next to where addressing is.
> >
> >2) If that doesn't work, I really need the DEBUG log info to see
> >exactly what's going on. You can enable it via an appropriate
> >log4j.properties under WEB-INF/classes . However...
> >
> >3) I myself run nightlies as there have been critical bug fixes in
> the
> >areas that I use. Moving to the nightlies in general may help you in
> >the long run, including my ability to help via comparing my sytem to
> >what is happening on yours. If you do that, perhaps I can send my
> >files to the list and it may start working for you.
> >
> >HTH,
> >Robert
> >http://www.braziloutsource.com/
> >
> >On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >>
> >>Dear Robert,
> >>
> >>  I have made sure that axis2-soapmonitor*.mar was in my
> modules
> >>folder
> >>as well as axis2-soapmonitor*.jar in WEB-INF/lib.
> >>
> >>  so, should i try it with the latest nightly build or is there
> any
> >>other
> >>possibility that i might do something wrong? Please comment..
> >>
> >>   Thank you,
> >>   Wan
> >>
> >> >From: "robert lazarski" <[EMAIL PROTECTED]>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
> >> >Date: Wed, 5 Jul 2006 10:56:42 -0300
> >> >
> >> >Looks fine to me. And I just gave the soapmonitor a spin on a
> recent
> >> >nightly build and its running fine. My guess, however, is either
> you
> >> >don't have the axis2-soapmonitor*.mar in modules or
> >> >axis2-soapmonitor*.jar in WEB-INF/lib .
> >> >
> >> >If all else fails, but axis2 in debug via
> >> >WEB-INF/classes/log4j.properties , etc,  and send the ouput to
> the
> >> >list.
> >> >
> >> >HTH,
> >> >Robert
> >> >http://www.braziloutsource.com/
> >> >
> >> >On 7/5/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
> >> >>can you see what is wrong with my axis2.xml?
> >> >>i have tried so many different configuration.
> >> >>
> >> >>
> >> >> 
> >> >> 
> >> >> 
> >> >>  locked="false">true
> >> >>  locked="false">false
> >> >>  locked="false">true
> >> >>
> >> >>  locked="false">true
> >> >>  >> >>locked="false">/users/alice3/home/
> >> >>  locked="false">4000
> >> >>
> >> >> 
> >> >>  >> >>locked="false">30
> >> >>
> >> >> 
> >> >> 
> >> >>  >> >>locked="false">true
> >> >>
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >>  >> >>locked="false">false
> >> >>
> >> >> admin
> >> >> axis2
> >> >>
> >> >> 
> >> >> 
> >> >> 
> >> >>  >> >>locked="false">false
> >> >>
> >> >> 
> >> >> 
> >> >> 
> >> >>
> >> >>
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >>
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >>  mep="http://www.w3.org/2004/08/wsdl/in-only";
> >> >>
> >> >>class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
> >> >>  mep="http://www.w3.org/2004/08/wsdl/in-out";
> >> >>
> >> >>

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai

thank you,
no problem

Wan



From: "robert lazarski" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 07:19:11 -0300

It'll be a few hours cuz it's 7am in Brazil and I haven't got to the
office yet ;-) .

Robert
http://www.braziloutsource.com/

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


Robert,

can you please send the file which is running properly..for me, because i
have try install the newest nightly build and run, i got the same result. 
I

think it's probably because of i did something wrong on the configuration.
Your file could help me as example.

greatly appreciated,

Wan

>From: "robert lazarski" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Thu, 6 Jul 2006 06:55:39 -0300
>
>Nothings changed, IIRC, with the soap monitor since the 1.0 release.
>So far everyone that had problems eventually got it to work. The only
>thing I can think of is that perhaps you copy and pasted the phases
>from the tutorial in its entirety. Its possible the format of the
>phases changed slightly. So I recommend the following:
>
>1) Just copy the  into its proper
>place, using the original axis2.xml . And just the  ref="soapmonitor"/> next to where addressing is.
>
>2) If that doesn't work, I really need the DEBUG log info to see
>exactly what's going on. You can enable it via an appropriate
>log4j.properties under WEB-INF/classes . However...
>
>3) I myself run nightlies as there have been critical bug fixes in the
>areas that I use. Moving to the nightlies in general may help you in
>the long run, including my ability to help via comparing my sytem to
>what is happening on yours. If you do that, perhaps I can send my
>files to the list and it may start working for you.
>
>HTH,
>Robert
>http://www.braziloutsource.com/
>
>On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>
>>Dear Robert,
>>
>>  I have made sure that axis2-soapmonitor*.mar was in my modules
>>folder
>>as well as axis2-soapmonitor*.jar in WEB-INF/lib.
>>
>>  so, should i try it with the latest nightly build or is there any
>>other
>>possibility that i might do something wrong? Please comment..
>>
>>   Thank you,
>>   Wan
>>
>> >From: "robert lazarski" <[EMAIL PROTECTED]>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>> >Date: Wed, 5 Jul 2006 10:56:42 -0300
>> >
>> >Looks fine to me. And I just gave the soapmonitor a spin on a recent
>> >nightly build and its running fine. My guess, however, is either you
>> >don't have the axis2-soapmonitor*.mar in modules or
>> >axis2-soapmonitor*.jar in WEB-INF/lib .
>> >
>> >If all else fails, but axis2 in debug via
>> >WEB-INF/classes/log4j.properties , etc,  and send the ouput to the
>> >list.
>> >
>> >HTH,
>> >Robert
>> >http://www.braziloutsource.com/
>> >
>> >On 7/5/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>> >>can you see what is wrong with my axis2.xml?
>> >>i have tried so many different configuration.
>> >>
>> >>
>> >> 
>> >> 
>> >> 
>> >> true
>> >> false
>> >> true
>> >>
>> >> locked="false">true

>> >> > >>locked="false">/users/alice3/home/
>> >> 4000
>> >>
>> >> 
>> >> > >>locked="false">30
>> >>
>> >> 
>> >> 
>> >> > >>locked="false">true
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> > >>locked="false">false
>> >>
>> >> admin
>> >> axis2
>> >>
>> >> 
>> >> 
>> >> 
>> >> > >>locked="false">false
>> >>
>> >> 
>> >> 
>> >> 
>> >>
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> mep="http://www.w3.org/2004/08/wsdl/in-only";

>> >>
>> >>class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>> >> mep="http://www.w3.org/2004/08/wsdl/in-out";

>> >>
>> >>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> > >>
>> >>class="org.apache.axis2.transport.http.SimpleHTTPServer">
>> >> 6060
>> >> >locked="false">0
>> >> 0
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> > >>
>>class="org.apache.axis2.transport.tcp.TCPServer">
>> >> 6060
>> >> 
>> >> 

>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 


>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >>
>> >> > >>
>> >>class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
>> >> > >>
>> >>class="org.apache.axis2.transport.local.LocalTransportSende

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread robert lazarski

It'll be a few hours cuz it's 7am in Brazil and I haven't got to the
office yet ;-) .

Robert
http://www.braziloutsource.com/

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


Robert,

can you please send the file which is running properly..for me, because i
have try install the newest nightly build and run, i got the same result. I
think it's probably because of i did something wrong on the configuration.
Your file could help me as example.

greatly appreciated,

Wan

>From: "robert lazarski" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Thu, 6 Jul 2006 06:55:39 -0300
>
>Nothings changed, IIRC, with the soap monitor since the 1.0 release.
>So far everyone that had problems eventually got it to work. The only
>thing I can think of is that perhaps you copy and pasted the phases
>from the tutorial in its entirety. Its possible the format of the
>phases changed slightly. So I recommend the following:
>
>1) Just copy the  into its proper
>place, using the original axis2.xml . And just the  ref="soapmonitor"/> next to where addressing is.
>
>2) If that doesn't work, I really need the DEBUG log info to see
>exactly what's going on. You can enable it via an appropriate
>log4j.properties under WEB-INF/classes . However...
>
>3) I myself run nightlies as there have been critical bug fixes in the
>areas that I use. Moving to the nightlies in general may help you in
>the long run, including my ability to help via comparing my sytem to
>what is happening on yours. If you do that, perhaps I can send my
>files to the list and it may start working for you.
>
>HTH,
>Robert
>http://www.braziloutsource.com/
>
>On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>
>>Dear Robert,
>>
>>  I have made sure that axis2-soapmonitor*.mar was in my modules
>>folder
>>as well as axis2-soapmonitor*.jar in WEB-INF/lib.
>>
>>  so, should i try it with the latest nightly build or is there any
>>other
>>possibility that i might do something wrong? Please comment..
>>
>>   Thank you,
>>   Wan
>>
>> >From: "robert lazarski" <[EMAIL PROTECTED]>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>> >Date: Wed, 5 Jul 2006 10:56:42 -0300
>> >
>> >Looks fine to me. And I just gave the soapmonitor a spin on a recent
>> >nightly build and its running fine. My guess, however, is either you
>> >don't have the axis2-soapmonitor*.mar in modules or
>> >axis2-soapmonitor*.jar in WEB-INF/lib .
>> >
>> >If all else fails, but axis2 in debug via
>> >WEB-INF/classes/log4j.properties , etc,  and send the ouput to the
>> >list.
>> >
>> >HTH,
>> >Robert
>> >http://www.braziloutsource.com/
>> >
>> >On 7/5/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>> >>can you see what is wrong with my axis2.xml?
>> >>i have tried so many different configuration.
>> >>
>> >>
>> >> 
>> >> 
>> >> 
>> >> true
>> >> false
>> >> true
>> >>
>> >> true
>> >> > >>locked="false">/users/alice3/home/
>> >> 4000
>> >>
>> >> 
>> >> > >>locked="false">30
>> >>
>> >> 
>> >> 
>> >> > >>locked="false">true
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> > >>locked="false">false
>> >>
>> >> admin
>> >> axis2
>> >>
>> >> 
>> >> 
>> >> 
>> >> > >>locked="false">false
>> >>
>> >> 
>> >> 
>> >> 
>> >>
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> http://www.w3.org/2004/08/wsdl/in-only";
>> >>
>> >>class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>> >> http://www.w3.org/2004/08/wsdl/in-out";
>> >>
>> >>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> > >>
>> >>class="org.apache.axis2.transport.http.SimpleHTTPServer">
>> >> 6060
>> >> >locked="false">0
>> >> 0
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> > >>
>>class="org.apache.axis2.transport.tcp.TCPServer">
>> >> 6060
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 
>> >> 
>> >> 
>> >>
>> >> > >>
>> >>class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
>> >> > >>
>> >>class="org.apache.axis2.transport.local.LocalTransportSender"/>
>> >> > >>
>>class="org.apache.axis2.transport.jms.JMSSender"/>
>> >> > >>
>> >>class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> >> HTTP/1.1
>> >> > >>locked="false">chunked
>> >> 
>> >> > >>
>> >>c

Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Fabien Couble


Thx for your response, but there's still a problem.

I add your command:
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
"C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/axis2/WEB-INF/conf/axis2.xml");

In fact, the server and the client has the same axis2.xml (I think it's 
normal) but now i can't engage the modules at the client side with the 
sender.engageModule(...) because an exception is raised saying that the 
modules have already been added.

So I remove these commands  but another exception is raised:
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>/>soapenv:Client

The server 10.68.150.83 failed to respond; nested exception is:
org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to 
respondorg.apache.axis2.AxisFault: The 
server 10.68.150.83 failed to respond; nested exception is:
org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond; nested exception is:
org.apache.axis2.AxisFault: The server 10.68.150.83 failed to respond; 
nested exception is:
org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:639)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)

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:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.axis2.AxisFault: The server 10.68.150.83 failed to 
respond; nested exception is:
org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:304)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)

... 21 more
Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond
at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)
at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:654)
at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:115)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:298)

... 22 more


Is it normal that the client and the server have the same file!! Actually i 
tried wwith two separate files but there is another exception

Have you got an idea??
Thx in advance
Fabien


- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread Wan Kaveevivitchai


Robert,

can you please send the file which is running properly..for me, because i 
have try install the newest nightly build and run, i got the same result. I 
think it's probably because of i did something wrong on the configuration. 
Your file could help me as example.


greatly appreciated,

Wan


From: "robert lazarski" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] soapmonitor, how to use
Date: Thu, 6 Jul 2006 06:55:39 -0300

Nothings changed, IIRC, with the soap monitor since the 1.0 release.
So far everyone that had problems eventually got it to work. The only
thing I can think of is that perhaps you copy and pasted the phases
from the tutorial in its entirety. Its possible the format of the
phases changed slightly. So I recommend the following:

1) Just copy the  into its proper
place, using the original axis2.xml . And just the   next to where addressing is.

2) If that doesn't work, I really need the DEBUG log info to see
exactly what's going on. You can enable it via an appropriate
log4j.properties under WEB-INF/classes . However...

3) I myself run nightlies as there have been critical bug fixes in the
areas that I use. Moving to the nightlies in general may help you in
the long run, including my ability to help via comparing my sytem to
what is happening on yours. If you do that, perhaps I can send my
files to the list and it may start working for you.

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

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


Dear Robert,

 I have made sure that axis2-soapmonitor*.mar was in my modules 
folder

as well as axis2-soapmonitor*.jar in WEB-INF/lib.

 so, should i try it with the latest nightly build or is there any 
other

possibility that i might do something wrong? Please comment..

  Thank you,
  Wan

>From: "robert lazarski" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Wed, 5 Jul 2006 10:56:42 -0300
>
>Looks fine to me. And I just gave the soapmonitor a spin on a recent
>nightly build and its running fine. My guess, however, is either you
>don't have the axis2-soapmonitor*.mar in modules or
>axis2-soapmonitor*.jar in WEB-INF/lib .
>
>If all else fails, but axis2 in debug via
>WEB-INF/classes/log4j.properties , etc,  and send the ouput to the
>list.
>
>HTH,
>Robert
>http://www.braziloutsource.com/
>
>On 7/5/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>can you see what is wrong with my axis2.xml?
>>i have tried so many different configuration.
>>
>>
>> 
>> 
>> 
>> true
>> false
>> true
>>
>> true
>> >locked="false">/users/alice3/home/
>> 4000
>>
>> 
>> >locked="false">30
>>
>> 
>> 
>> >locked="false">true
>>
>> 
>> 
>> 
>> 
>> >locked="false">false
>>
>> admin
>> axis2
>>
>> 

>> 
>> 
>> >locked="false">false
>>
>> 
>> 
>> 
>>
>>
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> http://www.w3.org/2004/08/wsdl/in-only";
>>
>>class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>> http://www.w3.org/2004/08/wsdl/in-out";
>>
>>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>> 
>> 
>> 
>> 
>> >
>>class="org.apache.axis2.transport.http.SimpleHTTPServer">
>> 6060
>> locked="false">0

>> 0
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> >>
class="org.apache.axis2.transport.tcp.TCPServer">

>> 6060
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 

>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> >
>>class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
>> >
>>class="org.apache.axis2.transport.local.LocalTransportSender"/>
>> >>  
class="org.apache.axis2.transport.jms.JMSSender"/>

>> >
>>class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> HTTP/1.1
>> >locked="false">chunked
>> 
>> >
>>class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> HTTP/1.1
>> >locked="false">chunked
>> 
>>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> >
>>class="org.apache.axis2.engine.RequestURIBasedDispatcher">
>> 
>> 
>> >
>>class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
>> 
>> 
>> 
>> 
>> 
>> >class="org.apache.axis2.engine.DispatchPhase">
>> >
>>class="org.apache.axis2.e

Re: Problem with Document/Literal in a WS with Application scope (Bug?)

2006-07-06 Thread José Antonio Sánchez

That solved the problem for the input parameters but it still warns
about typemapping of the DeadLockFault exception.
The deployment descriptor is attached and it has a typemapping with
that class but when throwing the exception in the deployed service, it
generates a general server error instead of throwing a fault.


On 7/6/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

Specify -y WRAPPED rather than -y DOCUMENT.

Anne

On 7/5/06, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:
> Hello, we need a singleton service that must be document/literal due
> to interoperability issues. The Interface used to generate the wsdl
> (LockManager) and the wsdl generated with the java2wsdl tool are
> attached. We use the following options in the generation:
>
> -l http://localhost:8080/axis/services/LockManagerService -n
> http://tomas.org/faultolerance/lockmanager/service -y DOCUMENT -u
> LITERAL aux.LockManager
>
> and then we generate the skeleton/stub code with wsdl2java with the
> following options:
>
> -s -S true -W -d "Application" LockManagerService.wsdl
>
> Once we have implemented and deployed our service, we make a call to
> the lock method through the generated stub and it seems to send it
> well, as you can see in the attached xml file, obtained with tcpmon,
> but in the server side, the skeleton object gets only the first
> parameter of the method and all the other parameters are received as
> null. That behavor does not happen if the service is deployed as
> Request instead of Application or if it uses RPC/Enconded instead of
> Document/Literal.
> Is it a bug with Axis? Are we doing something wrong?
>
> --
> Regards.
> José Antonio Sánchez
>
>
> -
> 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]





--
Saludos.
José Antonio Sánchez


deploy.wsdd
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: dynamic invocation of web services

2006-07-06 Thread Stefan Vladov
   A I'm having hard time understanding what you said... and I 
totally missed the part with the slit proxy... you sound like the jwsdp 
tutorial :-).
   If you need to invoke a web service, you are not initially familiar 
with (which was my idea of the problem) the approach should be the 
following: First you supply your dynamic client with the wsdl. Then you 
should choose one of the services defined in it and one of the 
operations of the chosen service. Once your dynamic web service client 
has that information it can compose the SOAP message using axiom. You 
should use some user interface to supply your client with the needed 
data. In the most common case - using http transport - axis2 will create 
a http post request, utilizing apache commons-httpclient and will put 
the SOAP message in the http body (no so called proxy is involved). 
That's the picture in general... if you have any specific question - ask.
   If you need to do sth different then probably everything above is an 
absolute nonsense and I'm sorry for wasting your time...


   Best wishes!
   Stefan

amine MOKHTARI wrote:
I work on a protype. this prototype should provide mecanisms for 
dynamic composition of web services. so, it have to be able to 
construct proxy dynamicly in memory. this proxy is slit, it contain 
all information needed for invoking one operation. for this purpose, i 
need a mecanisms for manipulate a parameters (simple or complex type 
in the same way.) of operation   
have you suggestion ,?


Stefan Vladov a écrit :
   I'm not sure whether this will help you much and please excuse me 
for any inaccuracy... anyway here's what I think:


   First of all, I haven't heard of any API that will do all the work 
for you, and axis2 is as dynamic as any other ws implementation. I 
haven't used ADB so I have no idea if it could help you The wsdl 
descriptor contains all the information you might need in order to 
send a soap request or parse the response. You can easily parse the 
types defined in it using xmlBeans and then be able to construct the 
xml tree for the message using AXIOM. What data is to be populated 
and how you'll get it is of course your business... the important 
thing is that you have the structure of the message. You should have 
some detailed knowledge on the wsdl specification to use this 
approach because you should make the difference for example between 
invoking a rpc and a literal style web service (don't get confused 
with RPCMessageReceiver in axis2 - the services using it are still 
doc/lit style). Using wsdl4j you can get all the information needed 
from the wsdl. MTOM support is very easy, because such date is simply 
declared as base64Binary or hexBinary in the types definitions, but 
for SwA you should be careful, for there will be more than one part 
in a single message defined in the wsdl. Furthermore you should 
populate the binary data accordingly.
   Actually I don't find dynamic clients much useful, apart from 
testing purposes, because there will always be something that it will 
not support and then it won't be generic (which would normally be the 
reason to use it). Besides, according to the web service you'll 
always need some post processing for the result, which won't be the 
same for every web service published in the world...


Best wishes!
Stefan
 
amine MOKHTARI wrote:
Exist it an API that allow to define parameters and their types 
dynamically; or an API that provide a mechanisms for dynamic 
invocation


Paul Fremantle a écrit :

Aha

Well no. Maybe. Yes. Maybe. No.

Actually Axis2 does NOT have the mapping registry (types <->
namespace) that Axis1 has, because Axis2 is loosely coupled with the
XML data binding. ADB has a generic mapper, but you have to provide
the namespace, and it won't map to more than one namespace without
doing code gen.

I don't know about XMLBeans - it is a much more powerful project so it
may have that support.

Paul

On 7/4/06, amine MOKHTARI <[EMAIL PROTECTED]> wrote:

therefore, axis2 gives the mechanisms to define parameters and their
types for invoking an operation belonging has web services ???

Paul Fremantle a écrit :
> Sure, Axis2 has dynamic support. You need to create the XML body of
> the message and pass it as an OMElement. You can also use STAX and
> then use a STAXOMBuilder to create the OMElement.
>
> Once you have the OMElement you can use ServiceClient or
> OperationClient to invoke the service.
>
> Paul
>
> On 7/4/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>> yes , ServiceClient has a constructor for doing that.
>>
>> amine MOKHTARI wrote:
>>
>> > Hello,My question is simple.   is it axis2 allow dynamic
>> > invocation of web services ???
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> 
___ 


>>
>> > Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! 
Mail et

>> > son interface révolutionnaire.
>> > http://fr.mail.yahoo.com
>> 

Re: [Axis2 v1.0] soapmonitor, how to use

2006-07-06 Thread robert lazarski

Nothings changed, IIRC, with the soap monitor since the 1.0 release.
So far everyone that had problems eventually got it to work. The only
thing I can think of is that perhaps you copy and pasted the phases
from the tutorial in its entirety. Its possible the format of the
phases changed slightly. So I recommend the following:

1) Just copy the  into its proper
place, using the original axis2.xml . And just the   next to where addressing is.

2) If that doesn't work, I really need the DEBUG log info to see
exactly what's going on. You can enable it via an appropriate
log4j.properties under WEB-INF/classes . However...

3) I myself run nightlies as there have been critical bug fixes in the
areas that I use. Moving to the nightlies in general may help you in
the long run, including my ability to help via comparing my sytem to
what is happening on yours. If you do that, perhaps I can send my
files to the list and it may start working for you.

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

On 7/6/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:


Dear Robert,

 I have made sure that axis2-soapmonitor*.mar was in my modules folder
as well as axis2-soapmonitor*.jar in WEB-INF/lib.

 so, should i try it with the latest nightly build or is there any other
possibility that i might do something wrong? Please comment..

  Thank you,
  Wan

>From: "robert lazarski" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] soapmonitor, how to use
>Date: Wed, 5 Jul 2006 10:56:42 -0300
>
>Looks fine to me. And I just gave the soapmonitor a spin on a recent
>nightly build and its running fine. My guess, however, is either you
>don't have the axis2-soapmonitor*.mar in modules or
>axis2-soapmonitor*.jar in WEB-INF/lib .
>
>If all else fails, but axis2 in debug via
>WEB-INF/classes/log4j.properties , etc,  and send the ouput to the
>list.
>
>HTH,
>Robert
>http://www.braziloutsource.com/
>
>On 7/5/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>can you see what is wrong with my axis2.xml?
>>i have tried so many different configuration.
>>
>>
>> 
>> 
>> 
>> true
>> false
>> true
>>
>> true
>> >locked="false">/users/alice3/home/
>> 4000
>>
>> 
>> >locked="false">30
>>
>> 
>> 
>> >locked="false">true
>>
>> 
>> 
>> 
>> 
>> >locked="false">false
>>
>> admin
>> axis2
>>
>> 
>> 
>> 
>> >locked="false">false
>>
>> 
>> 
>> 
>>
>>
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> http://www.w3.org/2004/08/wsdl/in-only";
>>
>>class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>> http://www.w3.org/2004/08/wsdl/in-out";
>>
>>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>> 
>> 
>> 
>> 
>> >
>>class="org.apache.axis2.transport.http.SimpleHTTPServer">
>> 6060
>> 0
>> 0
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> >class="org.apache.axis2.transport.tcp.TCPServer">
>> 6060
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> >
>>class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
>> >
>>class="org.apache.axis2.transport.local.LocalTransportSender"/>
>> >  class="org.apache.axis2.transport.jms.JMSSender"/>
>> >
>>class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> HTTP/1.1
>> >locked="false">chunked
>> 
>> >
>>class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> HTTP/1.1
>> >locked="false">chunked
>> 
>>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> >
>>class="org.apache.axis2.engine.RequestURIBasedDispatcher">
>> 
>> 
>> >
>>class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
>> 
>> 
>> 
>> 
>> 
>> >class="org.apache.axis2.engine.DispatchPhase">
>> >
>>class="org.apache.axis2.engine.AddressingBasedDispatcher">
>> 
>> 
>>
>>
>>
>> >
>>class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
>> 
>> 
>> >  class="org.apache.axis2.engine.InstanceDispatcher">
>> 
>> 
>>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>   

Re: Help on Axis and SSL

2006-07-06 Thread iceal thaddeus lim
Thanks Mr. Mall. I'll try this out.On 7/5/06, Manuel Mall <[EMAIL PROTECTED]> wrote:
On Wednesday 05 July 2006 16:19, iceal thaddeus lim wrote:> Hi All,>> been googling, trying things out and stuff for a week now on SSL but> still no success... I need help an fast.> Our server operator emailed me a couple of weeks ago with the
> following files for SSL>> .crt, csr, .key, .p12> an password  = XXXMMXXX> a p12 export key = SomeExportKey>I wonder if Axis + SSL should be a FAQ. However, nothing said here has
anything to do with Axis directly and all to do with with Java SSE.I assume you have been provided the above files because the site youconnect to wants you to use HTTPS with client authentication. To do
this you need a Key Store not a Trust Store. Read the JSSE documentshttp://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html
for more details.If you use Java 1.5 you should be able to use the .p12 file, which is aKey Store in PKCS#12 format, directly. That is use thedirectives -Djavax.net.ssl.keyStore=p12 -Djavax.net.ssl.keyStorePassword=XXXMMXXX
  -Djavax.net.ssl.keyStoreType=pkcs12on your command line and don't use the trust store command linearguments at all. If you use Java 1.4 you will have to convertyour .p12 file into a keystore in the "native" Java format (jks). For
that you probably have to use the openssl suite of tools as the Javakeytool does not support this conversion. I have instruction for thatsomewhere which I found on the Net.I hope the above will get you going.
Manuel> Since all I know is to use .CRT to generate a keystore, I did this..>> keytool -import -keystore /home/ice/ion.keystore -alias iondev -file> /home/ice/ion.mtna.crt>
> thus i got a keystore, ion.keystore.>> but when I did this...>> java -Djavax.net.ssl.trustStore=/home/ice/ion.keystore> -Djavax.net.ssl.trustStorePassword=XXXMMXXX -classpath> 
axis.jar:commons-logging-1.0.4.jar:commons-discovery-0.2.jar:jaxrpc.j>ar: saaj.jar:activation.jar:mail.jar:wsdl4j-1.5.1.jar> org.apache.axis.wsdl.WSDL2Java --testCase --output ebb/src --verbose> https://:7002/MTB_
> TPGW/WS/Billing/ServiceGateway.jws?WSDL>> and>> java -Djavax.net.ssl.trustStore=/home/ice/ion.keystore -classpath> axis.jar:commons-logging-1.0.4.jar:commons-discovery-0.2.jar:jaxrpc.j
>ar: saaj.jar:activation.jar:mail.jar:wsdl4j-1.5.1.jar> org.apache.axis.wsdl.WSDL2Java --testCase --output ebb/src --verbose> https://:7002/MTB_> TPGW/WS/Billing/ServiceGateway.jws?WSDL
>> that tries to connect to the server over SSL, I get a>> javax.net.ssl.SSLHandshakeException: Remote host closed connection> during handshake>  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a
(DashoA12275)>  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j> (DashoA12275)>>  help me please!...>>  i'm thinking that those other files given to me are to be used...
> but how?>> I don't even know what the p12 export key is for?>> Thank you all in advance.>> Ice-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] Get rid of the return tag on omResponse?

2006-07-06 Thread Ajith Ranabahu

Hi,
This is the case here.
The WSDL and message receiver has to agree in what they do. if the
message receiver is RPC then it is a generic one and it is best that
you allow the WSDL to be auto generated. If you put a WSDL inside the
aar - then there is no such thing as the MR being automatically
modified to suit the WSDL !
This is not a problem when the MR is generated.

Ajith


On 7/6/06, Andreas Wagner <[EMAIL PROTECTED]> wrote:

> Did you put WSDL modified by you into META-INF/ in your aar file ?
Yes. It's in the the META-INF directory in the aar file.

> Can you see your WSDL via
> http://localhost:8080/axis2/services/(your-service)?wsdl ?
Yes. My modified file will be displayed.

> I'm not sure but I think,
> you can NOT overwrite WSDL when you use RPCMessageReceiver.
The overwrite seems to work on a "?wsdl" query but not on generating the
response xml.

--
Andreas Wagner

> Hi, Andreas.
>
> Did you put WSDL modified by you into META-INF/ in your aar file ?
> Can you see your WSDL via
> http://localhost:8080/axis2/services/(your-service)?wsdl ?
>
> I'm not sure but I think,
> you can NOT overwrite WSDL when you use RPCMessageReceiver.
> I never try this.
>
> Regards,
> kinichiro
>
> --- Andreas Wagner <[EMAIL PROTECTED]> wrote:
>
>> Hello Kinichiro,
>>
>> > I guess, you're using RPCMessageReceiver,
>> True.
>>
>> > and generated WSDL contains  in it's types section.
>> No. There's no tag named "" in the types section. This was
>> also my
>> 1st guess.
>>
>> > Could you post your WSDL, please ?
>> Here is the relevant part of my wsdl file. This is originally
>> generated by
>> axis2 where i only modified 2 elements names (omRequest->request,
>> return->response). It seems the named (request/response) elements
>> take no
>> influence of the soap body xml message generation...
>>
>>   
>> http://mytest.de/xsd";
>> targetNamespace="http://mytest.de/xsd";
>> elementFormDefault="unqualified" attributeFormDefault="unqualified">
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>>
>> --
>> Andreas Wagner
>>
>> > Hi, Andreas
>> >
>> > Could you post your WSDL, please ?
>> >
>> > I guess, you're using RPCMessageReceiver,
>> > and generated WSDL contains  in it's types section.
>> >
>> > Regards,
>> > kinichiro
>> >
>> > --- Andreas Wagner <[EMAIL PROTECTED]> wrote:
>> >
>> >> Hello,
>> >>
>> >> here's a soap reply of a request which i send through axis2:
>> >>
>> >> 
>> >>http://mytest.de/xsd";>
>> >>   
>> >>  ...my XML document...
>> >>   
>> >>
>> >> 
>> >>
>> >> How can i get rid of the "" tag surrounding my xml
>> document?
>> >> This
>> >> tag must be added by some axis2 mechanism. But why?
>> >>
>> >> The response OMElement on my webservice class seems ok...
>> >>
>> >> --
>> >> Andreas Wagner
>>
>>
>>
>> -
>> 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]
>



-
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: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Deepal Jayasinghe
Hi Fabien

Fabien Couble wrote:

>
> I create my ServiceClient like this:
>
>ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
> Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
> null);

  ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
"C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/axis2/WEB-INF/conf/axis2.xml");

>
>//Non-Blocking Invocation
>sender = new ServiceClient(configContext, null);
>sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>sender.engageModule(new QName("logging"));
>
> Actually, the module WS-Addressing is well-engaged and works properly.
> The client has access to the module "logging" in ./module/
> Is it necessary to specify the location of the file axis2.xml or could
> it work like that?
> Actually I think, the client has access to my axis2.xml file but the
> exception tells me that the phase isn't specify whereas it is.
> I don't understand...
>
> Fabien
> - Original Message - From: "Susanne Kaiser"
> <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, July 06, 2006 11:03 AM
> Subject: Re: org.apache.axis2.phaseresolver.PhaseException
>
>
>> How do you create your ServiceClient?
>>
>> If you use the default constructor, then the
>> org/apache/axis2/deployment/axis2_default.xml configuration file from
>> the axis2-kernel jar is going to be used instead of your adjusted
>> axis2.xml.
>>
>> To use my axis2.xml file, I created a ConfigurationContext first and
>> then the ServiceClient with the context as parameter:
>>
>> final URL axis2Url = ClassLoader.getSystemClassLoader().getResource(
>> "conf/axis2.xml" );
>> final ConfigurationContext context =
>> ConfigurationContextFactory.createConfigurationContextFromFileSystem(
>> null, axis2Url.getPath() );
>> final ServiceClient serviceClient = new ServiceClient( context, null );
>> serviceClient.engageModule( new QName( "logging" ) );
>>
>> Make sure, that your axis2.xml is residing in your classpath.
>>
>> -- 
>> Susanne Kaiser
>>
>>
>> On Thursday 06 July 2006 10:29, Fabien Couble wrote:
>>
>>>
>>> Actually, I have already added this entry as you can see on the file.
>>> Or maybe I did it wrong!!?
>>> But I added the phase logging in every phase order type without any
>>> success...
>>>
>>> Fabien
>>>
>>> - Original Message - From: "Deepal Jayasinghe"
>>> <[EMAIL PROTECTED]>
>>> To: 
>>> Sent: Thursday, July 06, 2006 10:01 AM
>>> Subject: Re: org.apache.axis2.phaseresolver.PhaseException
>>>
>>>
>>> > You need to add following entry into axis2.xml
>>> >
>>> > 
>>> >   
>>> > 
>>> >
>>> > Fabien Couble wrote:
>>> >
>>> >> Hi,
>>> >> I'm trying to engage a module at the client side but I have the
>>> >> following exception
>>> >>
>>> >> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
>>> >> recheck axis2.xml logging for the handler InFlowLogHandler
>>> >>
>>> >> at
>>> >>
>>> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
>>>
>>> >>
>>> >> at
>>> >>
>>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
>>>
>>> >>
>>> >> at
>>> >>
>>> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
>>>
>>> >>
>>> >> at
>>> >>
>>> org.apache.axis2.description.AxisService.engageModule(AxisService.java:426)
>>>
>>> >>
>>> >> at
>>> >>
>>> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)
>>>
>>> >>
>>> >> at
>>> >>
>>> userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:68)
>>>
>>> >>
>>> >> As you can see, Axis finds the module without any problems but I
>>> think
>>> >> there is a problem with my configuration files and more precisely
>>> >> axis2.xml. (as it is written)
>>> >>
>>> >> I don't understand because I include the phase name logging into the
>>> >> axis2.xml like in the module.xml.
>>> >>
>>> >> You can find enclosed my configuation files if you can have a
>>> look it
>>> >> could ce very nice...
>>> >>
>>> >> Thanks for your help...
>>> >>
>>> >> Fabien
>>> >>
>>> >> This message contains information that may be privileged or
>>> >> confidential and is the property of the Capgemini Group. It is
>>> >> intended only for the person to whom it is addressed. If you are not
>>> >> the intended recipient, you are not authorized to read, print,
>>> retain,
>>> >> copy, disseminate, distribute, or use this message or any part
>>> >> thereof. If you receive this message in error, please notify the
>>> >> sender immediately and delete all copies of this message.
>>> >>
>>> >>
>>>
>>> >>
>>> >>-
>>> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >>For additiona

Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Fabien Couble


I create my ServiceClient like this:

   ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program 
Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF", null);


   //Non-Blocking Invocation
   sender = new ServiceClient(configContext, null);
   sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
   sender.engageModule(new QName("logging"));

Actually, the module WS-Addressing is well-engaged and works properly.
The client has access to the module "logging" in ./module/
Is it necessary to specify the location of the file axis2.xml or could it 
work like that?
Actually I think, the client has access to my axis2.xml file but the 
exception tells me that the phase isn't specify whereas it is.

I don't understand...

Fabien
- Original Message - 
From: "Susanne Kaiser" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, July 06, 2006 11:03 AM
Subject: Re: org.apache.axis2.phaseresolver.PhaseException



How do you create your ServiceClient?

If you use the default constructor, then the 
org/apache/axis2/deployment/axis2_default.xml configuration file from the 
axis2-kernel jar is going to be used instead of your adjusted axis2.xml.


To use my axis2.xml file, I created a ConfigurationContext first and then 
the ServiceClient with the context as parameter:


final URL axis2Url = ClassLoader.getSystemClassLoader().getResource( 
"conf/axis2.xml" );
final ConfigurationContext context = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem( 
null, axis2Url.getPath() );

final ServiceClient serviceClient = new ServiceClient( context, null );
serviceClient.engageModule( new QName( "logging" ) );

Make sure, that your axis2.xml is residing in your classpath.

--
Susanne Kaiser


On Thursday 06 July 2006 10:29, Fabien Couble wrote:


Actually, I have already added this entry as you can see on the file.
Or maybe I did it wrong!!?
But I added the phase logging in every phase order type without any
success...

Fabien

- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, July 06, 2006 10:01 AM
Subject: Re: org.apache.axis2.phaseresolver.PhaseException


> You need to add following entry into axis2.xml
>
> 
>   
> 
>
> Fabien Couble wrote:
>
>> Hi,
>> I'm trying to engage a module at the client side but I have the
>> following exception
>>
>> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
>> recheck axis2.xml logging for the handler InFlowLogHandler
>>
>> at
>> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
>>
>> at
>> 
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
>>
>> at
>> 
org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
>>
>> at
>> org.apache.axis2.description.AxisService.engageModule(AxisService.java:426)
>>
>> at
>> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)
>>
>> at
>> 
userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:68)
>>
>> As you can see, Axis finds the module without any problems but I think
>> there is a problem with my configuration files and more precisely
>> axis2.xml. (as it is written)
>>
>> I don't understand because I include the phase name logging into the
>> axis2.xml like in the module.xml.
>>
>> You can find enclosed my configuation files if you can have a look it
>> could ce very nice...
>>
>> Thanks for your help...
>>
>> Fabien
>>
>> This message contains information that may be privileged or
>> confidential and is the property of the Capgemini Group. It is
>> intended only for the person to whom it is addressed. If you are not
>> the intended recipient, you are not authorized to read, print, retain,
>> copy, disseminate, distribute, or use this message or any part
>> thereof. If you receive this message in error, please notify the
>> sender immediately and delete all copies of this message.
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> -- 
> Thanks,

> Deepal
> 
> ~Future is Open~
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


This message contains information that may be privileged or confidential 
and is the property of the Capgemini Group. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient, 
you are not authorized to read, print, retain, copy, disseminate, 
distribute, or use this message or any part thereof. If you receive this 
message in error, please notify the sender immediately and delete all 
copies of thi

Re: [Axis2]Save attachment MTOM

2006-07-06 Thread Thilina Gunarathne
Change the problematic part of saveFile() as follows...
 
OMText child = (OMText) attach.getFirstOMChild();    //Extracting the data and saving    DataHandler actualDH;    actualDH = (DataHandler) child .getDataHandler();~Thilina
 
On 7/6/06, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:


Hi,
 
On 7/6/06, Mancinelli Elodie <[EMAIL PROTECTED]
> wrote: 
Hi all,
I think it's when I want to get the attachment I should have anOMElement but I have a OMText. But I don't understand why? 


 
Nope... U get an OMText... Binary is represented using an OMText eventhough on the wire it is an element. 
Have a look at http://ws.apache.org/axis2/1_0/mtom-guide.html#21
 
Looks like you are doing way too much work to access the attachments. U can get the DataHandler directly from the created OMText... 
Have a look at the MTOMSample..
 
~Thilina

Can someone have an idea?I send a message saop and my server code.- soap message:POST /axis2/services/PrestoSvc HTTP/1.1 
User-Agent: Axis2SOAPAction:http://localhost:8080/axis2/services/PrestoSvc/__OPERATION_OUT_IN__
Cookie: JSESSIONID=BE98CB5DB8ABB0A61EE034F184334CCF Cookie2: JSESSIONID=BE98CB5DB8ABB0A61EE034F184334CCFHost: 
127.0.0.1:8070Transfer-Encoding: chunkedContent-Type: multipart/related;boundary=MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607; type="application/xop+xml";start="<
0.urn:uuid:[EMAIL PROTECTED]>";start-info="text/xml"; charset=UTF-8a96--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607content-type:application/xop+xml;charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:
  < 0.urn:uuid:[EMAIL PROTECTED]> xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/
"xmlns:wsa="http://www.w3.org/2005/08/addressing">   
 http://localhost:8080/axis2/services/PrestoSvc  
 http://129.183.149.72:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__
  urn:uuid:81AD7AC184DDB331FB11521686151086 
http://localhost:8080/axis2/services/PrestoSvc/__OPERATION_OUT_IN__  xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm"soapenv:mustUnderstand="1">urn:uuid:162BCF2DBF2BF6B4C1115216861701538  2
      xmlns:m="
http://dgme.finances.gouv.fr/presto">12testde string/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAPAA0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDp/FPjS1fWtUNtd6rcXGiahYQR2elLO6vmaMzb2jxGzOGaERyE4aI4wXIroJte10WdtfDVbEQ3W4pFa+HL29MJU4aN2jkBDKcqdyISVPyqQQNTW/DMLadctoWnabBqE97a3krFRALhorhJj5johJJ2tyQeW+tcXffEfwcl5IbnxRfeG9Z4TU7SztvOAnQBWVi8DozIQU3pjcFXJIVcAH//2Q== 
1 2 3 4 5 6 href=""  href="mailto:cid:urn:uuid:[EMAIL PROTECTED]" target="_blank">cid:urn:uuid:[EMAIL PROTECTED]"
xmlns:xop=" http://www.w3.org/2004/08/xop/include" /> 
 12b--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607content-id: <
urn:uuid:[EMAIL PROTECTED]>content-type:text/plaincontent-transfer-encoding:binaryTableASCII standard (codes de caractères de 0 à 127)--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607--0
- server code:public class PrestoSvcSkeleton {   static StringfileXMLName="/home/mancinee/workspace/testPresto/test_data_out.xml";    static StringnameNewFile="/home/mancinee/workspace/testPresto/soapmessout.xml";
   static StringfileSaveName="/home/mancinee/workspace/testPresto/fileresult.txt";   private MessageContext msgcts; public void setOperationContext(OperationContext oc) throws AxisFault {
   msgcts =oc.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);   }   public void submitOneWay(   fr.gouv.finances.dgme.presto.SubmitOneWayDocument param2) throwsIOException, InterruptedException {
   System.out.println("submit One Way METHOD CALL");//  Recuperation et sauvegarde de l attachement    readSoapMessage(param2);   Thread.sleep(2);   }//  Version fichier texte
   public 

Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Susanne Kaiser
How do you create your ServiceClient?

If you use the default constructor, then the 
org/apache/axis2/deployment/axis2_default.xml configuration file from the 
axis2-kernel jar is going to be used instead of your adjusted axis2.xml.

To use my axis2.xml file, I created a ConfigurationContext first and then the 
ServiceClient with the context as parameter:

final URL axis2Url = ClassLoader.getSystemClassLoader().getResource( 
"conf/axis2.xml" );
final ConfigurationContext context = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem( null, 
axis2Url.getPath() );
final ServiceClient serviceClient = new ServiceClient( context, null );
serviceClient.engageModule( new QName( "logging" ) );

Make sure, that your axis2.xml is residing in your classpath.

-- 
Susanne Kaiser


On Thursday 06 July 2006 10:29, Fabien Couble wrote:
> 
> Actually, I have already added this entry as you can see on the file.
> Or maybe I did it wrong!!?
> But I added the phase logging in every phase order type without any 
> success...
> 
> Fabien
> 
> - Original Message - 
> From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, July 06, 2006 10:01 AM
> Subject: Re: org.apache.axis2.phaseresolver.PhaseException
> 
> 
> > You need to add following entry into axis2.xml
> >
> > 
> >   
> > 
> >
> > Fabien Couble wrote:
> >
> >> Hi,
> >> I'm trying to engage a module at the client side but I have the
> >> following exception
> >>
> >> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
> >> recheck axis2.xml logging for the handler InFlowLogHandler
> >>
> >> at
> >> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
> >>
> >> at
> >> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
> >>
> >> at
> >> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
> >>
> >> at
> >> org.apache.axis2.description.AxisService.engageModule(AxisService.java:426)
> >>
> >> at
> >> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)
> >>
> >> at
> >> userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:68)
> >>
> >> As you can see, Axis finds the module without any problems but I think
> >> there is a problem with my configuration files and more precisely
> >> axis2.xml. (as it is written)
> >>
> >> I don't understand because I include the phase name logging into the
> >> axis2.xml like in the module.xml.
> >>
> >> You can find enclosed my configuation files if you can have a look it
> >> could ce very nice...
> >>
> >> Thanks for your help...
> >>
> >> Fabien
> >>
> >> This message contains information that may be privileged or
> >> confidential and is the property of the Capgemini Group. It is
> >> intended only for the person to whom it is addressed. If you are not
> >> the intended recipient, you are not authorized to read, print, retain,
> >> copy, disseminate, distribute, or use this message or any part
> >> thereof. If you receive this message in error, please notify the
> >> sender immediately and delete all copies of this message.
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> > -- 
> > Thanks,
> > Deepal
> > 
> > ~Future is Open~
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> This message contains information that may be privileged or confidential and 
> is the property of the Capgemini Group. It is intended only for the person to 
> whom it is addressed. If you are not the intended recipient,  you are not 
> authorized to read, print, retain, copy, disseminate,  distribute, or use 
> this message or any part thereof. If you receive this  message in error, 
> please notify the sender immediately and delete all  copies of this message.
> 
> 
> -
> 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]Save attachment MTOM

2006-07-06 Thread Thilina Gunarathne
Hi,
 
On 7/6/06, Mancinelli Elodie <[EMAIL PROTECTED]> wrote:
Hi all,I think it's when I want to get the attachment I should have anOMElement but I have a OMText. But I don't understand why?

 
Nope... U get an OMText... Binary is represented using an OMText eventhough on the wire it is an element. 
Have a look at http://ws.apache.org/axis2/1_0/mtom-guide.html#21
 
Looks like you are doing way too much work to access the attachments. U can get the DataHandler directly from the created OMText... 
Have a look at the MTOMSample..
 
~Thilina
Can someone have an idea?I send a message saop and my server code.- soap message:POST /axis2/services/PrestoSvc HTTP/1.1
User-Agent: Axis2SOAPAction:http://localhost:8080/axis2/services/PrestoSvc/__OPERATION_OUT_IN__Cookie: JSESSIONID=BE98CB5DB8ABB0A61EE034F184334CCF
Cookie2: JSESSIONID=BE98CB5DB8ABB0A61EE034F184334CCFHost: 127.0.0.1:8070Transfer-Encoding: chunkedContent-Type: multipart/related;boundary=MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607;
type="application/xop+xml";start="<0.urn:uuid:[EMAIL PROTECTED]>";start-info="text/xml";
charset=UTF-8a96--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607content-type:application/xop+xml;charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:  <
0.urn:uuid:[EMAIL PROTECTED]> xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"xmlns:wsa="http://www.w3.org/2005/08/addressing">   
http://localhost:8080/axis2/services/PrestoSvc  
http://129.183.149.72:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__  urn:uuid:81AD7AC184DDB331FB11521686151086
http://localhost:8080/axis2/services/PrestoSvc/__OPERATION_OUT_IN__  xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"soapenv:mustUnderstand="1">urn:uuid:162BCF2DBF2BF6B4C1115216861701538
 2      
xmlns:m="http://dgme.finances.gouv.fr/presto">12testde string/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAPAA0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDp/FPjS1fWtUNtd6rcXGiahYQR2elLO6vmaMzb2jxGzOGaERyE4aI4wXIroJte10WdtfDVbEQ3W4pFa+HL29MJU4aN2jkBDKcqdyISVPyqQQNTW/DMLadctoWnabBqE97a3krFRALhorhJj5johJJ2tyQeW+tcXffEfwcl5IbnxRfeG9Z4TU7SztvOAnQBWVi8DozIQU3pjcFXJIVcAH//2Q==
1 2 3 4 5 6 href="" href="mailto:cid:urn:uuid:[EMAIL PROTECTED]">cid:urn:uuid:[EMAIL PROTECTED]"xmlns:xop="
http://www.w3.org/2004/08/xop/include" />  12b--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607content-id:
content-type:text/plaincontent-transfer-encoding:binaryTableASCII standard (codes de caractères de 0 à
127)--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607--0- server code:public class PrestoSvcSkeleton {   static StringfileXMLName="/home/mancinee/workspace/testPresto/test_data_out.xml";
   static StringnameNewFile="/home/mancinee/workspace/testPresto/soapmessout.xml";   static StringfileSaveName="/home/mancinee/workspace/testPresto/fileresult.txt";   private MessageContext msgcts;
public void setOperationContext(OperationContext oc) throws AxisFault {   msgcts =oc.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);   }   public void submitOneWay(
   fr.gouv.finances.dgme.presto.SubmitOneWayDocument param2) throwsIOException, InterruptedException {   System.out.println("submit One Way METHOD CALL");//  Recuperation et sauvegarde de l attachement
   readSoapMessage(param2);   Thread.sleep(2);   }//  Version fichier texte   public static File createSoapBodyMessage (String nameFile){   PrintWriter newFile = null;
   try   {   //Ajout de l'entete   newFile =  new PrintWriter(new BufferedWriter(newFileWriter(nameNewFile)));   newFile.println("xmlns:m='
http://dgme.finances.gouv.fr/presto'>");   //Ajout du contenu du body   BufferedReader b

How to set and get the name of a DIME attachment?

2006-07-06 Thread Martijn Hinten
Hello,

I am creating a webservice and its client. The client is sending a
DIME attachment to the service, using a DataHandler. The webservice
is receiving the DIME attachment and saves it to the file system. So
far, so good. I can even handle extremely large files. But can
anybody tell me how the client can set the filename of the attachment
so that the webservice can retrieve that name and save it with that
same name? I have tried wrapping the AttachmentPart and calling it's
setAttachmentFile() method, but that does not seem to work. When the
webservice calls AttachmentPart.getAttachmentFile() it returns names
like "C:\temp\attachments\Axis18167.att". I have figured out where I
can set the "C:\temp\attachments\" part (server-config.wsdd), but I
do not know how to set the filename. Anybody?

Related question:
Eventually my webervice will be called by a .net client. How do .net
clients set the DIME filename? 

Thanks for any relpy.

Regards,
Martijn 


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



Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Fabien Couble


Actually, I have already added this entry as you can see on the file.
Or maybe I did it wrong!!?
But I added the phase logging in every phase order type without any 
success...


Fabien

- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, July 06, 2006 10:01 AM
Subject: Re: org.apache.axis2.phaseresolver.PhaseException



You need to add following entry into axis2.xml


  


Fabien Couble wrote:


Hi,
I'm trying to engage a module at the client side but I have the
following exception

org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
recheck axis2.xml logging for the handler InFlowLogHandler

at
org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)

at
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)

at
org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)

at
org.apache.axis2.description.AxisService.engageModule(AxisService.java:426)

at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)

at
userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:68)

As you can see, Axis finds the module without any problems but I think
there is a problem with my configuration files and more precisely
axis2.xml. (as it is written)

I don't understand because I include the phase name logging into the
axis2.xml like in the module.xml.

You can find enclosed my configuation files if you can have a look it
could ce very nice...

Thanks for your help...

Fabien

This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not
the intended recipient, you are not authorized to read, print, retain,
copy, disseminate, distribute, or use this message or any part
thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.



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



--
Thanks,
Deepal

~Future is Open~



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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: org.apache.axis2.phaseresolver.PhaseException

2006-07-06 Thread Deepal Jayasinghe
You need to add following entry into axis2.xml


   


Fabien Couble wrote:

> Hi,
> I'm trying to engage a module at the client side but I have the
> following exception
>
> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
> recheck axis2.xml logging for the handler InFlowLogHandler
>
> at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
>
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
>
> at
> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
>
> at
> org.apache.axis2.description.AxisService.engageModule(AxisService.java:426)
>
> at
> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)
>
> at
> userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:68)
>
> As you can see, Axis finds the module without any problems but I think
> there is a problem with my configuration files and more precisely
> axis2.xml. (as it is written)
>
> I don't understand because I include the phase name logging into the
> axis2.xml like in the module.xml.
>
> You can find enclosed my configuation files if you can have a look it
> could ce very nice...
>
> Thanks for your help...
>
> Fabien
>
> This message contains information that may be privileged or
> confidential and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not
> the intended recipient, you are not authorized to read, print, retain,
> copy, disseminate, distribute, or use this message or any part
> thereof. If you receive this message in error, please notify the
> sender immediately and delete all copies of this message.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



[axis2] Can I specify cookie data in HTTP header using REST?

2006-07-06 Thread Susanne Kaiser
Hi,

I am using axis2 REST enabled as client and would like to set my cookie data 
in the HTTP header. Is that possible?

Thanks.

--
Susanne Kaiser

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



Re: [axis2] Get rid of the return tag on omResponse?

2006-07-06 Thread Andreas Wagner
> Did you put WSDL modified by you into META-INF/ in your aar file ?
Yes. It's in the the META-INF directory in the aar file.

> Can you see your WSDL via
> http://localhost:8080/axis2/services/(your-service)?wsdl ?
Yes. My modified file will be displayed.

> I'm not sure but I think,
> you can NOT overwrite WSDL when you use RPCMessageReceiver.
The overwrite seems to work on a "?wsdl" query but not on generating the
response xml.

-- 
Andreas Wagner

> Hi, Andreas.
>
> Did you put WSDL modified by you into META-INF/ in your aar file ?
> Can you see your WSDL via
> http://localhost:8080/axis2/services/(your-service)?wsdl ?
>
> I'm not sure but I think,
> you can NOT overwrite WSDL when you use RPCMessageReceiver.
> I never try this.
>
> Regards,
> kinichiro
>
> --- Andreas Wagner <[EMAIL PROTECTED]> wrote:
>
>> Hello Kinichiro,
>>
>> > I guess, you're using RPCMessageReceiver,
>> True.
>>
>> > and generated WSDL contains  in it's types section.
>> No. There's no tag named "" in the types section. This was
>> also my
>> 1st guess.
>>
>> > Could you post your WSDL, please ?
>> Here is the relevant part of my wsdl file. This is originally
>> generated by
>> axis2 where i only modified 2 elements names (omRequest->request,
>> return->response). It seems the named (request/response) elements
>> take no
>> influence of the soap body xml message generation...
>>
>>   
>> http://mytest.de/xsd";
>> targetNamespace="http://mytest.de/xsd";
>> elementFormDefault="unqualified" attributeFormDefault="unqualified">
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>>
>> --
>> Andreas Wagner
>>
>> > Hi, Andreas
>> >
>> > Could you post your WSDL, please ?
>> >
>> > I guess, you're using RPCMessageReceiver,
>> > and generated WSDL contains  in it's types section.
>> >
>> > Regards,
>> > kinichiro
>> >
>> > --- Andreas Wagner <[EMAIL PROTECTED]> wrote:
>> >
>> >> Hello,
>> >>
>> >> here's a soap reply of a request which i send through axis2:
>> >>
>> >> 
>> >>http://mytest.de/xsd";>
>> >>   
>> >>  ...my XML document...
>> >>   
>> >>
>> >> 
>> >>
>> >> How can i get rid of the "" tag surrounding my xml
>> document?
>> >> This
>> >> tag must be added by some axis2 mechanism. But why?
>> >>
>> >> The response OMElement on my webservice class seems ok...
>> >>
>> >> --
>> >> Andreas Wagner
>>
>>
>>
>> -
>> 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]
>



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



[Axis2]Save attachment MTOM

2006-07-06 Thread Mancinelli Elodie

Hi all,

I have create a client-server which support WSRM and MTOM.
The client works, it send messages with attachment to the server. But I 
want to save the attachment on my server. When I launch my client, I 
have this error on my server:


java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMTextImpl
   at 
fr.gouv.finances.dgme.presto.PrestoSvcSkeleton.saveImage(PrestoSvcSkeleton.java:169)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcSkeleton.readSoapMessage(PrestoSvcSkeleton.java:136)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcSkeleton.submit(PrestoSvcSkeleton.java:70)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOut.invokeBusinessLogic(PrestoSvcMessageReceiverInOut.java:46)
   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.processHTTPPostRequest(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:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

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

I think it's when I want to get the attachment I should have an 
OMElement but I have a OMText. But I don't understand why?


Can someone have an idea?

I send a message saop and my server code.

- soap message:

POST /axis2/services/PrestoSvc HTTP/1.1
User-Agent: Axis2
SOAPAction: 
http://localhost:8080/axis2/services/PrestoSvc/__OPERATION_OUT_IN__

Cookie: JSESSIONID=BE98CB5DB8ABB0A61EE034F184334CCF
Cookie2: JSESSIONID=BE98CB5DB8ABB0A61EE034F184334CCF
Host: 127.0.0.1:8070
Transfer-Encoding: chunked
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607; 
type="application/xop+xml"; 
start="<0.urn:uuid:[EMAIL PROTECTED]>"; 
start-info="text/xml"; 
charset=UTF-8a96--MIMEBoundaryurn_uuid_4CDFC85751839D5E2111521686191607content-type:application/xop+xml; 
charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:

  <0.urn:uuid:[EMAIL PROTECTED]>
 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:wsa="http://www.w3.org/2005/08/addressing";>

   
  
http://localhost:8080/axis2/services/PrestoSvc

  
 
http://129.183.149.72:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__

  
  
urn:uuid:81AD7AC184DDB331FB11521686151086
  
http://localhost:8080/axis2/services/PrestoSvc/__OPERATION_OUT_IN__
  xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"; 
soapenv:mustUnderstand="1">
 
urn:uuid:162BCF2DBF2BF6B4C1115216861701538

 2
  
   
   
  xmlns:m="http://dgme.finances.gouv.fr/presto";>

12test 
de string
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAPAA0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6