networking issue over WAN.

2006-05-09 Thread jayachandra
Hi guys,
I too am running into a problem with accessing a webservice over WAN.
I successfully created wsdl2java artifacts, by giving the D parameters for proxyHost, proxyUser and proxyPassword needed and got my artifacts generated.
However when I'm trying to run a TestClient written to use these generated stubs, I'm getting "host parameter is null" exception.
 
These are the series of steps I'm doing.
[[I'm using Axis1.3]]
i) Create WSDL2Java artifacts (giving -Dhttp.proxyHost parameter) by pointing to the WAN wsdl URL (This WSDL is accessible via browser). Artifacts got created.
(ii) Extracted a client-config.wsdd and edited it to use CommonsHTTPSender as http transport
(iii) Used commonshttpclient-3.0-rc2.jar in my classpath and along with it commons-codec-1.3.jar is also put in classpath.
(iv)Wrote a simple TestClient.java to test a stub based invocation of one of the methods of the webservice
(v) compiled the artifacts and the TestClient.java
(vi) Ran java -Dhttp.proxyHost= -Dhttp.proxyPort=80 -Dhttp.proxyUser=\ -Dhttp.proxyPassword= TestClient

 
And after doing this I have the following error appearing on my screen.
 
***ERROR TRACE BEGIN

java.lang.IllegalArgumentException: host parameter is null
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:301)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
...
***ERROR TRACE END 
 
Intially I was using normal HTTPSender, then I was getting the nasty "connection refused"  error. After moving to CommonsHTTPSender and commonshttpclient3.0-rc2 I'm getting this error which is better than earlier one, but something that is not leaving me any clue to resolve it futher. I came close, very close but not till the destination hence am soliciting your help.

 
regards
Jayachandra-- -- Jaya 


Re: Axis2 Envelope

2006-05-09 Thread Andrew Hanson
Actually I can just call toString on the envelope object.  Thanks  
anyway.


~Andrew Hanson

On May 10, 2006, at 1:12 AM, Ajith Ranabahu wrote:


TCPMon ?
(http://ws.apache.org/commons/tcpmon/)

On 5/10/06, Andrew Hanson <[EMAIL PROTECTED]> wrote:

Can I see the envelope somehow, before it is sent off to the server?
It would be most helpful during debugging.

~Andrew Hanson





--
Ajith Ranabahu




Re: Configuration File Question

2006-05-09 Thread Deepal Jayasinghe
Ohhh , it is by mistake. It should be Transport. Any way name of the
phase will be ignored for the handler define in phase order tag in axis2.xml

Phase name is optional for handler in axis2.xml , but not for others.

Thank you very much for fining this.

Corey Baswell wrote:

>Greetings,
>
>I have a question regarding the axis2 configuration file. Within the "inflow" 
>the transport phase is defined as:
>
>
>  
>
>  
>   class="org.apache.axis2.engine.SOAPActionBasedDispatcher
>">
>
>  
>
>
>Why do the two handlers defined within the Transport phase have phase="Dispatch">? 
>
>
>
>Thanks for any help,
>Corey
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 




Re: Axis2 Envelope

2006-05-09 Thread Ajith Ranabahu

TCPMon ?
(http://ws.apache.org/commons/tcpmon/)

On 5/10/06, Andrew Hanson <[EMAIL PROTECTED]> wrote:

Can I see the envelope somehow, before it is sent off to the server?
It would be most helpful during debugging.

~Andrew Hanson





--
Ajith Ranabahu


Configuration File Question

2006-05-09 Thread Corey Baswell
Greetings,I have a question regarding the axis2 configuration file. Within the "inflow" the transport phase is defined as:Why do the two handlers defined within the Transport phase have ? 
Thanks for any help,Corey


URGENT Use axis2 to call bpel

2006-05-09 Thread nancy








Can anyone tell how to use axis 2 to call bpel process.
Earlier I was using java classes generated by wsdl2java tool of axis1.But now;
I don’t want to use java classes. I want to just mention web service URL,
message name and parameters.For eg:

 

Options options = new Options();

    options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

    boolean exit = false;

    String serviceGroupContextId = null;

 

    options.setTo(new EndpointReference(webserviceURL));

    options.setTimeOutInMilliSeconds(5);

    

    ServiceClient serviceClient; 

    serviceClient = new ServiceClient(); 

    serviceClient.setOptions(options);    

    MessageContext requestMessageContext
= new MessageContext();

    requestMessageContext.setEnvelope(getRequestEnvelope(messageName, parametersList,

    serviceGroupContextId));

 

    OperationClient opClient =
serviceClient

    .createClient(ServiceClient.ANON_OUT_IN_OP);

    opClient.addMessageContext(requestMessageContext);

    opClient.setOptions(options);

    

    opClient.execute(true);

    

But using this I need to write code to get result out of OMElement.
Or you can say I want to know how bpel process can understand the output or
input of axis2? I am using ORACLE BPEL.

 

Thanks








RE: Enable soap monitor

2006-05-09 Thread mohan.radhakrishnan








Hi,

 Not able to understand this point 

3) Deploy the soapmonitor web service via the admin client

And

“assuming a axis.war”

 

This requires axis to be deployed along with my web application ?

 

Is this url http://localhost:8080/axis/services/AdminService
to be converted to http://localhost:8080/mywebcontext/myservices/myservice
?

 

Sorry. Haven’t worked with axis before ?

 

 

Thanks,

Mohan

 









From: robert lazarski
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 09, 2006 5:54
PM
To: axis-user@ws.apache.org
Subject: Re: Enable soap monitor



 

The steps in axis 1.x,
assuming a axis.war, are:

1) Compile the applet and put it under axis/*applet.class*/WEB-INF
2) Configure the soapmonitor servlet via web.xml
3) Deploy the soapmonitor web service via the admin client
4) Place references in your web service wsdd such as: 

  
  
    
    
  
    

5) Load the soap applet in a java 1.3 and higher enabled browser via: 

http://localhost:8080/axis/SOAPMonitor

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



On 5/9/06, [EMAIL PROTECTED]
<
[EMAIL PROTECTED]> wrote:





Hi,

 
I am trying to enable the soap monitor for my liferay portal application. The
first step is to

install
axis along with this web application. Is that correct ?

 

What
does the url in the following axis instruction mean ? I have to substitute
"axis" with my web

application
context ?? What does this "services/AdminService" mean ? What do I
substitute it with ?

 

 

"Deploy
the SOAPMonitorService web service with the admin client and the
deploy-monitor.wsdd file "

 

java
-cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService

deploy-monitor.wsdd

 

I
am trying to monitor my WSRP communication.

 

Thanks,

Mohan





This
message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.







 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.




Axis2 Envelope

2006-05-09 Thread Andrew Hanson
Can I see the envelope somehow, before it is sent off to the server?   
It would be most helpful during debugging.


~Andrew Hanson



Re: Axis2 client: how to get parameters before call operation

2006-05-09 Thread Deepal Jayasinghe
Hi Jiang;


Wei Jiang wrote:

>Robert,
>
>Thank you for pointing out that my question was not clear. Now, I rephrase it:
>
>I dynamically discover a WSDL (so, use stub is not a good option). I want
>to dynamically find all operations and parameters defined in the WSDL. Then
>I choose an operation, discover its parameters. Then pass data and invoke it.
>
>For Axis 1, there is an example DynamicInvoker. It is a good example. I
>followed
>it, using SymbolTable, BindingEntry ... to do it.
>
>But, for Axis2, I do not know how to do it.
>I found AxisService.createClientSideAxisService(). But it require portName...
>
>  
>
Juts passs null as port name , then it will pick one for you. The option
is required if the wsdl has multiple ports.

>My question is: I get a WSDL dynamically. How to list all its operation names
>and their parameters?
>
>Any information would be appreciated. Thanks in advance.
>
>
>
>--- robert lazarski <[EMAIL PROTECTED]> wrote:
>
>  
>
>>Could you try to rephrase your question? I'm not quite sure what you're
>>tying to accomplish. If you have a wsdl, you'll have better luck basing your
>>code on examples that do databinding. Take a look at the userguide
>>databinding section, as it may help.
>>
>>Robert
>>http://www.braziloutsource.com/
>>
>>On 5/9/06, Wei Jiang <[EMAIL PROTECTED]> wrote:
>>
>>
>>>Hi,
>>>
>>>I have a WSDL. I would like to get parameter information of it then invoke
>>>an
>>>operation.
>>>How to do it?
>>>
>>>All the client example programs (under userguide) do like:
>>>
>>>OMElement payload = ClientUtil.getEchoOMElement();
>>>Options options = new Options();
>>>options.setTo(targetEPR);
>>>
>>>//Blocking invocation
>>>ServiceClient sender = new ServiceClient();
>>>sender.setOptions(options);
>>>OMElement result = sender.sendReceive(payload);
>>>
>>>The information of WSDL is passed to ServiceClient when it is invoked.
>>>Is there a way to init ServerClient then get parameters before invoke?
>>>Is there any examples?
>>>
>>>Any information would be appreciated. Thanks in advance.
>>>
>>>
>>>__
>>>Do You Yahoo!?
>>>Tired of spam?  Yahoo! Mail has the best spam protection around
>>>http://mail.yahoo.com
>>>
>>>  
>>>
>
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




Need your help: Error parsing WSDL.

2006-05-09 Thread kun xu
Hi All,     When using wsdl2java tool, I met a exception. I run the demo command from  Axis2 User's Guide.       " WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ..\samples -p org.apache.axis2.userguide  "     Here is the command message:  Using AXIS2_HOME:   E:\Axis\axis2-std-SNAPSHOT-binUsing JAVA_HOME:    D:\IBM\javajava.lang.NullPointerException    at java.io.File.(File.java:201)    at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenConfigLoader.java:39)    at
 org.apache.axis2.wsdl.codegen.CodeGenConfiguration.(CodeGenConfiguration.java:306)    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:80)    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.ProjectResourceBundle).log4j:WARN Please initialize the log4j system properly.Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:99)    at
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)Caused by: java.lang.NullPointerException    at java.io.File.(File.java:201)    at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenConfigLoader.java:39)    at org.apache.axis2.wsdl.codegen.CodeGenConfiguration.(CodeGenConfiguration.java:306)    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:80)    ... 2 more        Anyone can help me to pass this pl?  Your advice will be much appreciated.  Thanks in advance.    
 Alex
		 
雅虎免费邮箱-3.5G容量,20M附件
 
雅虎助手-搜索、杀毒、防骚扰 
 


vexing path issues

2006-05-09 Thread tom mccarthy
I am a very new user to axis. My installation of axis seems to have gone 
well. Am able to deploy web services and see that they are there. Things 
seem to compile well. I get no huge errors associated with mandatory 
things on the happyaxis page.


My issue is related to the fact that whenever I try to call a web 
service from the command line I get:
Exception in thread "main" java.lang.NoClassDefFoundError: 
samples/userguide/example2/CalcClient
What I am specifically trying to run is example2 from the axis user's 
guide. I can deploy it (copy it to the axis directory),  and I can see 
it is there (at localhost:8080/axis/Calculator.jws) and see the WSDL 
file associated with it. Sadly, when I type in

java samples.userguide.example2.CalcClient -p8080 add 2 5
I get the error I mentioned earlier.

I can also deploy as per example3 from the users guide using
java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient deploy.wsdd
however, when I try to run it using
java samples.userguide.example3.Client 
-lhttp://localhost:8080/axis/services/MyService "test me"

I get the error I mentioned above.
Also interesting is that I have to use -cp $AXISCLASSPATH while I have 
added $AXISCLASSPATH to my path.


Because I am of the belief that this is all associated with a classpath 
error somehow I will show you what I have done with my path for axis:

export AXIS_HOME="/usr/share/tomcat/webapps/axis"
export AXIS_LIB="$AXIS_HOME/WEB-INF/lib"
export 
AXISCLASSPATH="$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery-0.2.jar:$AXIS_LIB/commons-logging-1.0.4.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1.2.8.jar"

export PATH="$PATH:$AXISCLASSPATH"

These things, so far as I know, point to the right places. I would 
appreciate any help that can be given me in sorting out these issues.


jms in J2EE

2006-05-09 Thread Yev Kelman
Hi,
i come across very unusual situation. I am trying to use web services with
jms protocol. To do it I am using Axis web services 1.3. However, when I
tried to run it under web sphere server I got exception
"javax.jms.IllegalStateException". In accordance to Web service
documentation method setExceptionListener should not be used in web
container. Does it mean that Axis jms transport implementation can be used
in j2se only? What can be used in j2ee container? Is there any other
"lightweight" transport that delegates connection pooling etc work to J2EE
container?

Yevgeniy Kelman



RE: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread Vignesh M.P.N.
Title: Message



I 
uncommented and tried telnet and it is responding.
 
Yes, I 
already posted the error message in the console. 
 
Exception! java.net.ConnectException: connect: Address is invalid on 
local machine, or port is not valid on remote 
machinejava.net.ConnectException: connect: Address is invalid on local 
machine, or port is not valid on remote machine at 
java.net.PlainSocketImpl.socketConnect(Native Method) at 
java.net.PlainSocketImpl.doConnect(Unknown Source) at 
java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
java.net.PlainSocketImpl.connect(Unknown Source) at 
java.net.SocksSocketImpl.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.(Unknown Source) at 
java.net.Socket.(Unknown Source) at 
SOAPMonitorApplet$SOAPMonitorPage.start(SOAPMonitorApplet.java:355) at 
SOAPMonitorApplet$SOAPMonitorPage.actionPerformed(SOAPMonitorApplet.java:571) at 
javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at 
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at 
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at 
javax.swing.DefaultButtonModel.setPressed(Unknown Source) at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
Source) at java.awt.Component.processMouseEvent(Unknown 
Source) at javax.swing.JComponent.processMouseEvent(Unknown 
Source) at java.awt.Component.processEvent(Unknown Source) at 
java.awt.Container.processEvent(Unknown Source) at 
java.awt.Component.dispatchEventImpl(Unknown Source) at 
java.awt.Container.dispatchEventImpl(Unknown Source) at 
java.awt.Component.dispatchEvent(Unknown Source) at 
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at 
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at 
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at 
java.awt.Container.dispatchEventImpl(Unknown Source) at 
java.awt.Component.dispatchEvent(Unknown Source) at 
java.awt.EventQueue.dispatchEvent(Unknown Source) at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown 
Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown 
Source) at java.awt.EventDispatchThread.pumpEvents(Unknown 
Source) at java.awt.EventDispatchThread.pumpEvents(Unknown 
Source) at java.awt.EventDispatchThread.run(Unknown 
Source)
Thanks
Vignesh.

  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:21 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: class 
  SOAPMonitorApplet.class not foundIn the the browser, open 
  the java console I believe by right clicking, maybe under tools ... and see 
  what the error is. Also, it may be worth trying to comment out the serlvet in 
  web.xml , and see if the server is still listening on port 5001. 'nmap -p 
  5001' or  'telnet localhost 5001' should do the trick . 
  Roberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote:
  

Thanks, but it is already 
there in the web.xml. The following is the entry.
 
 
SOAPMonitorService    
SOAPMonitorService    

    
org.apache.axis.monitor.SOAPMonitorService
        
  
SOAPMonitorPort  
5001    
    
100  

 
Thanks
Vignesh.

  
  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, May 09, 2006 9:02 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: 
  class SOAPMonitorApplet.class not found
  
Meant to 
say - add the soap monitor servlet by editing web.xmlRoberthttp://www.braziloutsource.com/
On 5/9/06, Vignesh 
M.P.N. <[EMAIL PROTECTED] > 
wrote: 

  
  Thanks for your prompt 
  reply.
   
  I fixed the problem. I 
  had to place the class files in the root directory of Axis web 
  application.
   
  But now I am facing 
  another problem. Now the applet got loaded but it says, "The SOAP Monitor 
  is unable to communcate with the server". Again read thru the archive, but 
  couldn't fix it.
   
  The Java console says: 
  
  Exception! java.net.ConnectException: 
  connect: Address is invalid on local machine, or port is not valid on 
  remote machinejava.net.ConnectException: connect: Address is invalid 
  on local machine, or port is not valid on remote machine at 
  java.net.PlainSocketImpl.socketConnect(Native Method) at 
  java.net.PlainSocketImpl.doConnect(Unknown Source) at 
  java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
  java.net.PlainSocketImpl.connect(Unknown Source) at 
  java.net.SocksSocketImpl.connect(Unknown Source) at 
  java.net.Socket.connect(Unknown Source) at 
  java.net.Socket.connect(Unknown Source) at 
  java.net.Socket.(Unknown Source).
   
  

Re: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread robert lazarski
In the the browser, open the java console I believe by right clicking,
maybe under tools ... and see what the error is. Also, it may be worth
trying to comment out the serlvet in web.xml , and see if the server is
still listening on port 5001. 'nmap -p 5001' or  'telnet localhost
5001' should do the trick . 

Robert
http://www.braziloutsource.com/On 5/9/06, Vignesh M.P.N. <[EMAIL PROTECTED]
> wrote:






Thanks, but it is already there in the web.xml. The following is the 
entry.
 
 
SOAPMonitorService    
SOAPMonitorService    
    
org.apache.axis.monitor.SOAPMonitorService    
    
  
SOAPMonitorPort  
5001    
    
100  

 
Thanks
Vignesh.

  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 09, 2006 9:02 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: class 
  SOAPMonitorApplet.class not foundMeant to say - add the 
  soap monitor servlet by editing web.xmlRoberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote:
  

Thanks for your prompt 
reply.
 
I fixed the problem. I had 
to place the class files in the root directory of Axis web 
application.
 
But now I am facing another 
problem. Now the applet got loaded but it says, "The SOAP Monitor is unable 
to communcate with the server". Again read thru the archive, but couldn't 
fix it.
 
The Java console says: 

Exception! java.net.ConnectException: 
connect: Address is invalid on local machine, or port is not valid on remote 
machinejava.net.ConnectException: connect: Address is invalid on local 
machine, or port is not valid on remote machine at 
java.net.PlainSocketImpl.socketConnect(Native Method) at 
java.net.PlainSocketImpl.doConnect(Unknown Source) at 
java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
java.net.PlainSocketImpl.connect(Unknown Source) at 
java.net.SocksSocketImpl.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.(Unknown Source).
 
Please help. 
:)
 
Thanks

Vignesh.


  
  -Original 
  Message-From: robert lazarski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 
  09, 2006 8:24 PMTo: axis-user@ws.apache.orgSubject: Re: load: 
  class SOAPMonitorApplet.class not foundI'm not sure 
  why the classes are placed there. Anyways, the applet classes - as 
  described in the docs - must be placed in axis/*applet.class/WEB-INF. 
  HTH,Roberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote: 
  

Hi all
 
I am using Tomcat 5.5, Axis 1.4 and 
Java 1.5.
 
I am having problem in using SOAP 
monitor. I did go through the mail archive for help and couldn't fix 
this.
 
The class files for the 
SOAPMonitor.java were already in the "webapps\axis\WEB-INF\classes" 
folder. I deployed the SOAP monitor service using the following 
deployment descriptor.
 
http://xml.apache.org/axis/wsdd/ 
" 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> 
     
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl
 
"/>                
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/> 
       

 
I also included the following in the 
descriptor of my service and undeployed and deployed it 
again.
 
     
   
     
 
 
I uncommented the snippet under 
 in the 
web.xml.
 
But the SOAP monitor applet isn't 
working for me and the Java console says 
load: class SOAPMonitorApplet.class 
not found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. :)
 

RE: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread Vignesh M.P.N.
Title: Message



Thanks, but it is already there in the web.xml. The following is the 
entry.
 
 
SOAPMonitorService    
SOAPMonitorService    
    
org.apache.axis.monitor.SOAPMonitorService    
    
  
SOAPMonitorPort  
5001    
    
100  

 
Thanks
Vignesh.

  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:02 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: class 
  SOAPMonitorApplet.class not foundMeant to say - add the 
  soap monitor servlet by editing web.xmlRoberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote:
  

Thanks for your prompt 
reply.
 
I fixed the problem. I had 
to place the class files in the root directory of Axis web 
application.
 
But now I am facing another 
problem. Now the applet got loaded but it says, "The SOAP Monitor is unable 
to communcate with the server". Again read thru the archive, but couldn't 
fix it.
 
The Java console says: 

Exception! java.net.ConnectException: 
connect: Address is invalid on local machine, or port is not valid on remote 
machinejava.net.ConnectException: connect: Address is invalid on local 
machine, or port is not valid on remote machine at 
java.net.PlainSocketImpl.socketConnect(Native Method) at 
java.net.PlainSocketImpl.doConnect(Unknown Source) at 
java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
java.net.PlainSocketImpl.connect(Unknown Source) at 
java.net.SocksSocketImpl.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.(Unknown Source).
 
Please help. 
:)
 
Thanks

Vignesh.


  
  -Original 
  Message-From: robert lazarski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 
  09, 2006 8:24 PMTo: axis-user@ws.apache.orgSubject: Re: load: 
  class SOAPMonitorApplet.class not foundI'm not sure 
  why the classes are placed there. Anyways, the applet classes - as 
  described in the docs - must be placed in axis/*applet.class/WEB-INF. 
  HTH,Roberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote: 
  

Hi all
 
I am using Tomcat 5.5, Axis 1.4 and 
Java 1.5.
 
I am having problem in using SOAP 
monitor. I did go through the mail archive for help and couldn't fix 
this.
 
The class files for the 
SOAPMonitor.java were already in the "webapps\axis\WEB-INF\classes" 
folder. I deployed the SOAP monitor service using the following 
deployment descriptor.
 
http://xml.apache.org/axis/wsdd/ " 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> 
     
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl 
"/>                
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/> 
       

 
I also included the following in the 
descriptor of my service and undeployed and deployed it 
again.
 
     
   
     
 
 
I uncommented the snippet under 
 in the 
web.xml.
 
But the SOAP monitor applet isn't 
working for me and the Java console says 
load: class SOAPMonitorApplet.class 
not found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. :)
 
Thanks

Vignesh.
 


Re: Passing values to class constructors

2006-05-09 Thread Dies Koper

Hello Josh,

Database setup processing usually goes into the init(Object) method, 
clean-up processing goes into the destroy() method.


The instance passed to you by the init method is a 
ServletEndpointContext, which you can use to get to the ServletContext 
with its getInitParameter method to read property values you specified 
in the web.xml descriptor.


Axis will call your init(Object) method if your impl class implements 
the ServiceLifecycle interface.


Regards,
Dies


Josh Potter wrote:

Greetings,

I have been searching for a few days now and cannot figure out how to 
pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load that 
holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file to 
the service when it starts so it can set up the appropriate connections 
to the database based on the values in the config file.  If any more 
information is needed I would be happy to provide.


Thanks,
Josh Potter




Re: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread robert lazarski
Meant to say - add the soap monitor servlet by editing web.xml

Robert
http://www.braziloutsource.com/On 5/9/06, Vignesh M.P.N. <[EMAIL PROTECTED]
> wrote:






Thanks 
for your prompt reply.
 
I 
fixed the problem. I had to place the class files in the root directory of Axis 
web application.
 
But 
now I am facing another problem. Now the applet got loaded but it says, "The 
SOAP Monitor is unable to communcate with the server". Again read thru the 
archive, but couldn't fix it.
 
The 
Java console says: 
Exception! 
java.net.ConnectException: connect: Address is invalid on local machine, or port 
is not valid on remote machinejava.net.ConnectException: connect: Address is 
invalid on local machine, or port is not valid on remote machine at 
java.net.PlainSocketImpl.socketConnect(Native Method) at 
java.net.PlainSocketImpl.doConnect(Unknown Source) at 
java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
java.net.PlainSocketImpl.connect(Unknown Source) at 
java.net.SocksSocketImpl.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.(Unknown Source).
 
Please 
help. :)
 
Thanks
Vignesh.

  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 09, 2006 8:24 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: class 
  SOAPMonitorApplet.class not foundI'm not sure why the 
  classes are placed there. Anyways, the applet classes - as described in the 
  docs - must be placed in axis/*applet.class/WEB-INF. 
  HTH,Roberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote: 
  

Hi all
 
I am using Tomcat 5.5, Axis 1.4 and Java 
1.5.
 
I am having problem in using SOAP 
monitor. I did go through the mail archive for help and couldn't fix 
this.
 
The class files for the SOAPMonitor.java 
were already in the "webapps\axis\WEB-INF\classes" folder. I deployed the 
SOAP monitor service using the following deployment 
descriptor.
 
http://xml.apache.org/axis/wsdd/
" 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> 
     
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl
"/> 
               
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/> 
     
  

 
I also included the following in the 
descriptor of my service and undeployed and deployed it 
again.
    
  
   
    
  
 
I uncommented the snippet under  in the 
web.xml.
 
But the SOAP monitor applet isn't working 
for me and the Java console says 
load: class SOAPMonitorApplet.class not 
found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. :)
 
Thanks

Vignesh.
 




Re: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread robert lazarski
You need to configure the soap monitor servlet - default port is 5001. 

HTH,
Robert
http://www.braziloutsource.com/On 5/9/06, Vignesh M.P.N. <[EMAIL PROTECTED]
> wrote:






Thanks 
for your prompt reply.
 
I 
fixed the problem. I had to place the class files in the root directory of Axis 
web application.
 
But 
now I am facing another problem. Now the applet got loaded but it says, "The 
SOAP Monitor is unable to communcate with the server". Again read thru the 
archive, but couldn't fix it.
 
The 
Java console says: 
Exception! 
java.net.ConnectException: connect: Address is invalid on local machine, or port 
is not valid on remote machinejava.net.ConnectException: connect: Address is 
invalid on local machine, or port is not valid on remote machine at 
java.net.PlainSocketImpl.socketConnect(Native Method) at 
java.net.PlainSocketImpl.doConnect(Unknown Source) at 
java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
java.net.PlainSocketImpl.connect(Unknown Source) at 
java.net.SocksSocketImpl.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.(Unknown Source).
 
Please 
help. :)
 
Thanks
Vignesh.

  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 09, 2006 8:24 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: class 
  SOAPMonitorApplet.class not foundI'm not sure why the 
  classes are placed there. Anyways, the applet classes - as described in the 
  docs - must be placed in axis/*applet.class/WEB-INF. 
  HTH,Roberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote: 
  

Hi all
 
I am using Tomcat 5.5, Axis 1.4 and Java 
1.5.
 
I am having problem in using SOAP 
monitor. I did go through the mail archive for help and couldn't fix 
this.
 
The class files for the SOAPMonitor.java 
were already in the "webapps\axis\WEB-INF\classes" folder. I deployed the 
SOAP monitor service using the following deployment 
descriptor.
 
http://xml.apache.org/axis/wsdd/
" 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> 
     
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl
"/> 
               
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/> 
     
  

 
I also included the following in the 
descriptor of my service and undeployed and deployed it 
again.
    
  
   
    
  
 
I uncommented the snippet under  in the 
web.xml.
 
But the SOAP monitor applet isn't working 
for me and the Java console says 
load: class SOAPMonitorApplet.class not 
found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. :)
 
Thanks

Vignesh.
 




RE: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread Vignesh M.P.N.
Title: Message



Thanks 
for your prompt reply.
 
I 
fixed the problem. I had to place the class files in the root directory of Axis 
web application.
 
But 
now I am facing another problem. Now the applet got loaded but it says, "The 
SOAP Monitor is unable to communcate with the server". Again read thru the 
archive, but couldn't fix it.
 
The 
Java console says: 
Exception! 
java.net.ConnectException: connect: Address is invalid on local machine, or port 
is not valid on remote machinejava.net.ConnectException: connect: Address is 
invalid on local machine, or port is not valid on remote machine at 
java.net.PlainSocketImpl.socketConnect(Native Method) at 
java.net.PlainSocketImpl.doConnect(Unknown Source) at 
java.net.PlainSocketImpl.connectToAddress(Unknown Source) at 
java.net.PlainSocketImpl.connect(Unknown Source) at 
java.net.SocksSocketImpl.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.connect(Unknown Source) at 
java.net.Socket.(Unknown Source).
 
Please 
help. :)
 
Thanks
Vignesh.

  
  -Original Message-From: robert lazarski 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 8:24 
  PMTo: axis-user@ws.apache.orgSubject: Re: load: class 
  SOAPMonitorApplet.class not foundI'm not sure why the 
  classes are placed there. Anyways, the applet classes - as described in the 
  docs - must be placed in axis/*applet.class/WEB-INF. 
  HTH,Roberthttp://www.braziloutsource.com/
  On 5/9/06, Vignesh 
  M.P.N. <[EMAIL PROTECTED] > 
  wrote: 
  

Hi all
 
I am using Tomcat 5.5, Axis 1.4 and Java 
1.5.
 
I am having problem in using SOAP 
monitor. I did go through the mail archive for help and couldn't fix 
this.
 
The class files for the SOAPMonitor.java 
were already in the "webapps\axis\WEB-INF\classes" folder. I deployed the 
SOAP monitor service using the following deployment 
descriptor.
 
http://xml.apache.org/axis/wsdd/" 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> 
     
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/> 
               
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/> 
     
  

 
I also included the following in the 
descriptor of my service and undeployed and deployed it 
again.
    
  
   
    
  
 
I uncommented the snippet under  in the 
web.xml.
 
But the SOAP monitor applet isn't working 
for me and the Java console says 
load: class SOAPMonitorApplet.class not 
found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. :)
 
Thanks

Vignesh.
 


Re: load: class SOAPMonitorApplet.class not found

2006-05-09 Thread robert lazarski
I'm not sure why the classes are placed there. Anyways, the applet
classes - as described in the docs - must be placed in
axis/*applet.class/WEB-INF. 

HTH,
Robert
http://www.braziloutsource.com/On 5/9/06, Vignesh M.P.N. <[EMAIL PROTECTED]
> wrote:






Hi 
all
 
I am using Tomcat 
5.5, Axis 1.4 and Java 1.5.
 
I am having problem 
in using SOAP monitor. I did go through the mail archive for help and couldn't 
fix this.
 
The class files for 
the SOAPMonitor.java were already in the "webapps\axis\WEB-INF\classes" folder. 
I deployed the SOAP monitor service using the following deployment 
descriptor.
 
http://xml.apache.org/axis/wsdd/" 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">   
   
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/> 
               
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/>     
   

 
I also included the 
following in the descriptor of my service and undeployed and deployed it 
again.
 
    
   
       

 
I uncommented the 
snippet under  in the 
web.xml.
 
But the SOAP monitor 
applet isn't working for me and the Java console says 
load: class 
SOAPMonitorApplet.class not found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. 
:)
 
Thanks
Vignesh.
 




load: class SOAPMonitorApplet.class not found

2006-05-09 Thread Vignesh M.P.N.
Title: Message



Hi 
all
 
I am using Tomcat 
5.5, Axis 1.4 and Java 1.5.
 
I am having problem 
in using SOAP monitor. I did go through the mail archive for help and couldn't 
fix this.
 
The class files for 
the SOAPMonitor.java were already in the "webapps\axis\WEB-INF\classes" folder. 
I deployed the SOAP monitor service using the following deployment 
descriptor.
 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">   
   
type="java:org.apache.axis.handlers.SOAPMonitorHandler"> 
       
value="/axis/SOAPMonitorService-impl.wsdl"/>     
   
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/> 
               
 
            
value="org.apache.axis.monitor.SOAPMonitorService"/>     
   

 
I also included the 
following in the descriptor of my service and undeployed and deployed it 
again.
 
    
   
       

 
I uncommented the 
snippet under  in the 
web.xml.
 
But the SOAP monitor 
applet isn't working for me and the Java console says 
load: class 
SOAPMonitorApplet.class not found.java.lang.ClassNotFoundException: 
SOAPMonitorApplet.class at 
sun.applet.AppletClassLoader.findClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadClass(Unknown Source) at 
java.lang.ClassLoader.loadClass(Unknown Source) at 
sun.applet.AppletClassLoader.loadCode(Unknown Source) at 
sun.applet.AppletPanel.createApplet(Unknown Source) at 
sun.plugin.AppletViewer.createApplet(Unknown Source) at 
sun.applet.AppletPanel.runLoader(Unknown Source) at 
sun.applet.AppletPanel.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source)
 
Please help. 
:)
 
Thanks
Vignesh.
 


Re: Can you specify your own implementation class when using the axis-wsdl2java ant task?

2006-05-09 Thread Dies Koper

Hello Joshua,

Sorry, I never used the ant task nor the skeletons.

I did not see the need for a skeleton, and since they are not generated 
by default, I suspect few people use them, meaning more unfixed bugs and 
no help in the mailing list. I think you experienced the latter :)


The Wsdl2Java command has an option to specify the impl class name. I 
suppose you checked the ant task and it did not have it..


-c, --implementationClassName 
custom name of web service implementation

Regards,
Dies


[EMAIL PROTECTED] wrote:

Dies,

Again, thanks for the reply.  I am running the *axis-java2wsdl *ant task 
followed by the* axis-wsdl2java *ant task to generate my wsdd file.  When I set 
bindingname="JaxRpcMyService" in the axis-java2wsdl ant task, the wsdl:binding 
appears correctly in the wsdl file ("JaxRpcMyService").  When I run the 
axis-wsdl2java task and skeletondeploy="true" it applies a "Skeleton" suffix to 
this name.  Running the same task with skeletondeploy="false" it applies a 
"Impl" suffix to this name.  Whats the difference?  Is there a way to avoid 
adding a suffix all together?


Regards,

Joshua



*Dies Koper <[EMAIL PROTECTED]>*

05/08/2006 08:03 PM
Please respond to axis-user

	   
To:axis-user@ws.apache.org
cc:
Subject:Re: Can you specify your own implementation class when 
using theaxis-wsdl2java ant task?





Hello Joshua,

The generated file name for the implementation class in the WSDD is
generated from the binding name in your WSDL:

   

->

generated impl class name: YourSoapBindingImpl

If you can accept an implementation class name ending with "Impl",
change the binding name.

Regards,
Dies


[EMAIL PROTECTED] wrote:
 > I use the axis-java2wsdl ant task to generate the wsdl file and then use the
 > axis-wsdl2java class to generate the wsdd file.  Is there a way to specify 
the
 > service implementation class when using the axis-wsdl2java ant task?  I would
 > prefer not to have to change the wsdd file after I generate it.
 >
 > Regards,
 >
 > Joshua




WSE 817 error - bad wsdl or just newbie stupidity?

2006-05-09 Thread James Gough
I am very new to Axis and web services in general.  I am writing a 
client for a .NET-based web service using the Axis WSDL2Java generator 
to create my client.  Once I compiled the resulting code and set up a 
test program for a very small part of the client, I ran it and got this:


Destination Unreachable --> WSE817: The  header must match the 
Actor attribute on this receiver. The  header contained 
"https://ws.somedomain.com/webservices/engine.asmx"; whereas 
the Actor attribute was "urn:AWordICannotFindAnywhereInMyCode".


So I looked into the wsdl file and the location attribute of the soap 
tag is "https://ws.somedomain.com/webservices/engine.asmx";, but the 
soapAction attribute of the operation I want to use is 
"http://somedomain.com/MinorAction";.  Like I said, I am new to this, and 
I have access to the guys who set up this wsdl, but prefer to have a 
better Idea of what my problem is before I ask for help from them.  I 
should add that they have a .NET client for this that does work (my 
application is in Java so I'd prefer to use Axis).


Anybody?



Re: Axis2 client: how to get parameters before call operation

2006-05-09 Thread Wei Jiang
Robert,

Thank you for pointing out that my question was not clear. Now, I rephrase it:

I dynamically discover a WSDL (so, use stub is not a good option). I want
to dynamically find all operations and parameters defined in the WSDL. Then
I choose an operation, discover its parameters. Then pass data and invoke it.

For Axis 1, there is an example DynamicInvoker. It is a good example. I
followed
it, using SymbolTable, BindingEntry ... to do it.

But, for Axis2, I do not know how to do it.
I found AxisService.createClientSideAxisService(). But it require portName...

My question is: I get a WSDL dynamically. How to list all its operation names
and their parameters?

Any information would be appreciated. Thanks in advance.



--- robert lazarski <[EMAIL PROTECTED]> wrote:

> Could you try to rephrase your question? I'm not quite sure what you're
> tying to accomplish. If you have a wsdl, you'll have better luck basing your
> code on examples that do databinding. Take a look at the userguide
> databinding section, as it may help.
> 
> Robert
> http://www.braziloutsource.com/
> 
> On 5/9/06, Wei Jiang <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a WSDL. I would like to get parameter information of it then invoke
> > an
> > operation.
> > How to do it?
> >
> > All the client example programs (under userguide) do like:
> >
> > OMElement payload = ClientUtil.getEchoOMElement();
> > Options options = new Options();
> > options.setTo(targetEPR);
> >
> > //Blocking invocation
> > ServiceClient sender = new ServiceClient();
> > sender.setOptions(options);
> > OMElement result = sender.sendReceive(payload);
> >
> > The information of WSDL is passed to ServiceClient when it is invoked.
> > Is there a way to init ServerClient then get parameters before invoke?
> > Is there any examples?
> >
> > Any information would be appreciated. Thanks in advance.
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 


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


Re: Axis2 client: how to get parameters before call operation

2006-05-09 Thread robert lazarski
Could you try to rephrase your question? I'm not quite sure what you're
tying to accomplish. If you have a wsdl, you'll have better luck basing
your code on examples that do databinding. Take a look at the userguide
databinding section, as it may help. 

Robert
http://www.braziloutsource.com/On 5/9/06, Wei Jiang <_weijiang_@yahoo.com
> wrote:Hi,I have a WSDL. I would like to get parameter information of it then invoke an
operation.How to do it?All the client example programs (under userguide) do like:OMElement payload = ClientUtil.getEchoOMElement();Options options = new Options();
options.setTo(targetEPR);//Blocking invocationServiceClient sender = new ServiceClient();sender.setOptions(options);OMElement result = sender.sendReceive
(payload);The information of WSDL is passed to ServiceClient when it is invoked.Is there a way to init ServerClient then get parameters before invoke?Is there any examples?Any information would be appreciated. Thanks in advance.
__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com



RE: CLOSE_WAIT issue

2006-05-09 Thread Xiong Shawn Zhang








Robert,

 

Thank you very much for your reply.

 

Actually, the IP address each CLOSE_WAIT
tcp connection points to is a client IP, so I assumed it is the issue related
to the web services and the clients. For clients, we can’t require them
to set timeout (even though there is such a parameter). So I am wondering if we
have some timeout setting on the service side as well, which may solve our
problem.

 

Thanks a lot for your help.

 

Shawn

 









From: robert lazarski
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 09, 2006 4:34
PM
To: axis-user@ws.apache.org
Subject: Re: CLOSE_WAIT issue



 

Are you sure this is axis
creating this issue? A lot if people use axis 1.x and tomcat without any such
problems.

What does happen, however, is that the java NIO library does have some bugs
that I've personally seen create nasty close_wait issues. If you're app or
libraries do anything with NIO, I'd do a search in the bug parade. Some bugs
are listed as closed, but the comments in the reports keep comming. 

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



On 5/9/06, Xiong
Shawn Zhang <
[EMAIL PROTECTED]> wrote:





Hi,

 

There
is an Axis web services app running in our production boxes, and the web
container used is pure tomcat 5.0.25 (no Apache server used). We are now having
service hanging issue. I checked the log files, everything normal (no
exception). However, I found we have lots of CLOSE_WAIT tcp connections
hanging, which related to the clients. Is there any body knows if there is an
AXIS/TOMCAT configuration, or function, which could be used to force the
connections to be closed (e.g. timeout)? Your help is highly appreciated.

 

Shawn

 







 








Re: CLOSE_WAIT issue

2006-05-09 Thread robert lazarski
Are you sure this is axis creating this issue? A lot if people use axis 1.x and tomcat without any such problems.

What does happen, however, is that the java NIO library does have some
bugs that I've personally seen create nasty close_wait issues. If
you're app or libraries do anything with NIO, I'd do a search in the
bug parade. Some bugs are listed as closed, but the comments in the
reports keep comming. 

HTH,
Robert 
http://www.braziloutsource.com/On 5/9/06, Xiong Shawn Zhang <
[EMAIL PROTECTED]> wrote:












Hi,

 

There is an Axis web services app running in our production
boxes, and the web container used is pure tomcat 5.0.25 (no Apache server used).
We are now having service hanging issue. I checked the log files, everything normal
(no exception). However, I found we have lots of CLOSE_WAIT tcp connections hanging,
which related to the clients. Is there any body knows if there is an AXIS/TOMCAT
configuration, or function, which could be used to force the connections to be closed
(e.g. timeout)? Your help is highly appreciated.

 

Shawn

 










Responding with a different transport

2006-05-09 Thread Vaughan, Steve








I would expect that using the WS-Addressing module of Axis2
I would be able to make a service request and use the “wsa:ReplyTo”
to route the response through a different transport:


 Web service request with an
 e-mail response
 E-mail request with a JMS
 response
 Etc.


 

Looking at the code for each of the transport receivers, it
looks as if an implicit assumption is made that the response transport matches
the request transport.  As an example, AxisServlet.java (which handles HTTP
requests) includes the following code:

 

   
TransportOutDescription transportOut =

   
configContext.getAxisConfiguration().getTransportOut(

   
new QName(Constants.TRANSPORT_HTTP));

 

I don’t see anything in the WS-Addressing module which
replaces this transportOut within the message context.  Is this functionality
unsupported?

 

- Steve








Axis2 client: how to get parameters before call operation

2006-05-09 Thread Wei Jiang
Hi,

I have a WSDL. I would like to get parameter information of it then invoke an
operation.
How to do it?

All the client example programs (under userguide) do like:

OMElement payload = ClientUtil.getEchoOMElement();
Options options = new Options();
options.setTo(targetEPR);

//Blocking invocation
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(payload);

The information of WSDL is passed to ServiceClient when it is invoked.
Is there a way to init ServerClient then get parameters before invoke?
Is there any examples?

Any information would be appreciated. Thanks in advance.


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


Re: Jibx, Axis2 and multiple binding files

2006-05-09 Thread Dennis Sosnoski

Hi Andres,

I didn't realize there'd be a need for handling multiple binding 
definitions as part of a single service, since generally a service is 
working with related data. Is there a reason you have your binding 
structured this way?


Right now the code makes the assumption (in both WSDL2Java and runtime) 
that there'll only be a single binding per service. I'm generalizing the 
code to handle unwrapped operations now so that you don't need to create 
or bind those wrapper classes for method parameters. Hopefully I can fix 
things for your case as well.


 - Dennis

Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117



Andres Olave wrote:


Hi there,

I have been playing around with the Jibx support, but the current 
project i am trying to migrate across to Axis 2 has 4 jibx mapping 
files. How should I go about running the code generator to take in all 
of the binding?files?


Thanks,
Andres


IMPORTANT
The contents of this email (and any attachment):
(1) are confidential and may be legally privileged - if it is not 
meant for

you, please tell the sender, do not forward or copy the contents
and delete it from your system immediately;
(2) come from its author and may not necessarily reflect the opinions
of Virgin Mobile.
While emails and attachments are virus checked,
we cannot accept any liability in respect of any viruses.
We may monitor emails sent to Virgin Mobile.

Want to know more about Virgin Mobile?
Visit our website for the latest info, phones and special offers
http://www.virgin.com/mobile

Virgin Mobile Telecoms Ltd




CLOSE_WAIT issue

2006-05-09 Thread Xiong Shawn Zhang








Hi,

 

There is an Axis web services app running in our production
boxes, and the web container used is pure tomcat 5.0.25 (no Apache server used).
We are now having service hanging issue. I checked the log files, everything normal
(no exception). However, I found we have lots of CLOSE_WAIT tcp connections hanging,
which related to the clients. Is there any body knows if there is an AXIS/TOMCAT
configuration, or function, which could be used to force the connections to be closed
(e.g. timeout)? Your help is highly appreciated.

 

Shawn

 








The AXIS engine could not find a target service to invoke! targetService is null

2006-05-09 Thread robert

Whenever I try to generated wsdl or invoke my web service I get the following

The AXIS engine could not find a target service to invoke!  targetService is
null

AdminClient list shows that the webservice has been deployed and the webservice
shows up when I access /webapp/services and the AxisServlet is run.

using Axis 1.3 with JVM 1.5.0


  
  
  
  
  
  http://robert,http://xml.apache.org/xml-soap"/>
  http://robert"/>
  
 



This message was sent using IMP, the Internet Messaging Program.



RE: Ant axis-java2wsdl not giving me the implementation parameter names

2006-05-09 Thread James Armstrong








Found solution: add 

 



    

    

 

To the javac target, ie debug=”${compile.debug}”
and debuglevel=”${compile.debuglevel}” to the javac target.

 

Now I get the implementation parameter
names instead of in0, in1,….

james

 









From: Anne Thomas
Manes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 09, 2006 11:54
AM
To: axis-user@ws.apache.org
Subject: Re: Ant axis-java2wsdl
not giving me the implementation parameter names



 

Compile your Java class
with debug on, then run java2wsdl.

Anne



On 5/9/06, James Armstrong
<[EMAIL PROTECTED] > wrote:





Hi,

Was wondering if someone can tell  me how to the
axis-java2wsdl ant task to produce a wsdl with actual implementation parameters
names instead of  in0, in1, etc.

 

Here is my ant task:

 



   


   


   


 

Here are my property values:

 



   


   


   


 

Here is a snap shot of generated wsdl:

 



    

 

  

  

  

  

  

  

  

  

  

  

  

  

 

 

Here's what they need to be:

 

String patronEdit(String pid,


String reverse_id,


String field_nameLast,


String field_nameFirst,


String field_email,


String field_addressStreet,


String field_addressCity,


String field_addressState,


String field_addressZipCode,


String field_phone,


String field_dob,


String uri


);

 

TIA,

James

 









From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 09, 2006 8:32
AM
To: axis-user@ws.apache.org
Subject: Re: Strange numbers /
artifact in SOAP response using TCPMonitor (Axis 1.3)



 

It's valid. The numbers represent chunking.



On
5/9/06, Collin VanDyck <[EMAIL PROTECTED]
> wrote:

I have changed from using an Axis client to using a
manual POST of the
SOAP message to a wrapped service.  Since I've done this, I am receiving
numbers before and after the SOAP envelope response.

The SOAP request looks like this (namespaces removed for clarity):

POST /webservice/services/ConcatService HTTP/1.1 
Content-Type: application/soap+xml; charset=UTF-8
SOAPAction: ""
User-Agent: Java/1.5.0_06
Host: localhost:8070
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive 



   
  



  
myname
  
mypassword



  
Hi 
  
There 
  
Again


 
  
   


The SOAP response looks like this:

HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.7 (build: 
CVSTag=JBoss_3_2_7 date=200501280217)
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 09 May 2006 13:23:55 GMT
Server: Apache-Coyote/1.1

185


   
  

Hi There Again 
  
   

0

When I used the Axis client to make a similar request, I didn't see the
numbers show up in the SOAP response.  Is this a valid response? 

Thanks
Collin



 







 








Re: [Axis2][1.0] Handling HTTP 500 errors for input only requests!

2006-05-09 Thread Ali Sadik Kumlali
Correction in "pingF & fireAndForget" case. Client side expection must
have been N/A. My apologies...

-
Hi,

I've discovered ServiceClient's sendRobust() method and
RobustOutOnlyAxisOperation which is implicitly an Out-In operation.
Therefore, it sends the SOAP message and receives a response. Then, it
checks for a fault and throws an AxisFault if the incoming message is
actually a SOAPFault.

This behavior is what I've been looking for in last two-three weeks :)

So, I gave ping and pingF services a try. You may see the results
below. But, it doesn't seem to meet my needs. What I need are:

- If the service returns HTTP 500, I want it to behave as in "pingF &
sendRobust" case. But, with the actual exception message thrown by the
service.

- If the service returns HTTP 202, I want it to behave as in "ping &
fireAndForget" case. 

Should I directly use createClient() method of ServiceClient? Or, do my
expectations weird? :) If I'm required to use createClient(), should I
manually change all the generated stub code? Or, is there a better way
for the human being :)

Thanks a lot.

Ali Sadik Kumlali

---
Server responses for ping and pingF service calls
---
ping & fireAndForget
 - HTTP status  : HTTP/1.1 202 Accepted
 - Incoming message : N/A
 - Client side exception: N/A
 - Server side exception: N/A


ping & sendRobust
 - HTTP status  : HTTP/1.1 202 Accepted
 - Incoming message : N/A
 - Client side exception: "Incoming message input stream is null"
 - Server side exception: N/A


pingF & fireAndForget
 - HTTP status  : HTTP/1.1 500 Internal Server Error
 - Incoming message : SOAPFault whose faultstring is "unknown". 
  However, the error message thrown by pingF 
  is "Fault being thrown"
 - Client side exception: N/A
 - Server side exception: N/A


pingF & sendRobust
 - HTTP status : HTTP/1.1 500 Internal Server Error
 - Incoming message: SOAPFault whose faultstring is "unknown". 
 However, the error message thrown by pingF 
 is  "Fault being thrown"
 - Client side exeption:  part of the incoming SOAP fault. 
 There is stack trace of the error thrown 
 by the server. But, error message is shown 
 as "unknown".
 - Server side exeption: N/A
---


--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Thank you very much Saminda. I've examined the lines you addressed.
> I've found followings:
> 
> - After execution, SOAPOverHTTPSender dispatches the response
> according
> to the HTTP status code. 
> - In my case(HTTP 500), it calls AbstractHTTPSender's
> processResponse()
> method.
> - A reference to the input stream extracted from response body is set
> to operation context as following:
>  
>   if(msgContext.getOperationContext() != null) {
>msgContext.getOperationContext()
>.setProperty(MessageContext.TRANSPORT_IN, in);
>   }
> 
> What is the purpose of this? Can I reach this property and receive
> the
> input stream within the class that I call the stub? If yes, could you
> please tell me how?
> 
> Also, I examined PingClient sample a little. I changed
> ClientUtil.getPingOMElement() to be able to call pingF service which
> throws an AxisFault when it is called. After I had called it, there
> was
> no AxisFault at either the client or server side althought HTTP
> stream
> says "HTTP 500". This might be because of fireAndForget () whose
> javadoc says "That is, there is no opportunity to get an error from
> the
> service via this API; one may still get client-side errors, such as
> host unknown etc.". But, generated stub does not call
> fireAndForget().
> Anyway, should I expect them both behave the same?
> 
> Thanks again.
> 
> Ali Sadik Kumlali
> 
> --- Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> > 
> > Ali Sadik Kumlali wrote:
> > > Hi again,
> > > 
> > > I've found that
> org.apache.axis2.transport.http.AbstractHTTPSender
> > > really doesn't care about the HTTP status code returned by the
> > service.
> > > Here is the code:
> > > 
> > > -
> > > // org.apache.axis2.transport.http.AbstractHTTPSender
> > > protected void executeMethod(...) throws IOException {
> > > HostConfiguration config = this.getHostConfiguration(...);
> > > msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);
> > > 
> > > ...
> > > 
> > > // ---
> > > // executeMethod returns back 202, 500, etc. but
> > > // it is not handled!
> >

RE: AXIS2 1.0 get wsdl always contains address like http://hostname:8080/axis2/service..

2006-05-09 Thread James Armstrong
Hi,
I am using Axis wsdl2java to deploy my web service. Is this the right use of
this tool. The wsdl2java keeps on over-writing my java souce that java2wsdl
used to generate the wsdl. I thinking that wsdl2java was used to generate
all the network aware stubs for Axis. 

Problem: Axis overwrites my java source with autogenerated code. Is there
anyway around this?
james

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 09, 2006 2:02 PM
To: axis-user@ws.apache.org
Subject: Re: AXIS2 1.0 get wsdl always contains address like
http://hostname:8080/axis2/service..

Qi,

Could u please log a bug report? (http://issues.apache.org/jira)

thanks,
dims

On 5/9/06, Qi An <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi there,
>
>  Sounds like axis2 1.0 always put
> http://...:port_no/axis2/services as service - address
> location no matter what is your web service URI.
>
>  What I did
>  1. Download axis2 1.0 binary/source/war and set them up.
>  2. Create a tomcat project inside eclipse and set context to
/axis210sample
>  3. Start tomcat and run
> http://localhost:8080/axis210sample - Services - version
>  4. I expected WSDL service address location should be
> http://localhost:8080/axis210sample/services/version but
> axis2 1.0 always give me
> http:/localhost:8080/axis2/services/version inside WSDL
> file.
>  5. Later I am using Visual Studio 2005 to create a windows application
and
> add version service as an Web References. Then run windows application - I
> always get exception. then I modified WSDL file which return to VS from
> provider and modify service address location to
> http://localhost:8080/axis210sample/services/version, rerun
> MSDiscoCodeGenerator. it's working fine.
>
>  look at the code, sounds like in AxisServlet.class there is a method
> getEPRForService, always set epr to
> http://:port_no/axis2/services.
>
>  Does someone knows it's axis problem or it's my setting problem?
>
>  Thanks,
>  Qi


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




Re: [Axis2][1.0] Handling HTTP 500 errors for input only requests!

2006-05-09 Thread Ali Sadik Kumlali
Hi,

I've discovered ServiceClient's sendRobust() method and
RobustOutOnlyAxisOperation which is implicitly an Out-In operation.
Therefore, it sends the SOAP message and receives a response. Then, it
checks for a fault and throws an AxisFault if the incoming message is
actually a SOAPFault.

This behavior is what I've been looking for in last two-three weeks :)

So, I gave ping and pingF services a try. You may see the results
below. But, it doesn't seem to meet my needs. What I need are:

- If the service returns HTTP 500, I want it to behave as in "pingF &
sendRobust" case. But, with the actual exception message thrown by the
service.

- If the service returns HTTP 202, I want it to behave as in "ping &
fireAndForget" case. 

Should I directly use createClient() method of ServiceClient? Or, do my
expectations weird? :) If I'm required to use createClient(), should I
manually change all the generated stub code? Or, is there a better way
for the human being :)

Thanks a lot.

Ali Sadik Kumlali

---
Server responses for ping and pingF service calls
---
ping & fireAndForget
 - HTTP status  : HTTP/1.1 202 Accepted
 - Incoming message : N/A
 - Client side exception: N/A
 - Server side exception: N/A


ping & sendRobust
 - HTTP status  : HTTP/1.1 202 Accepted
 - Incoming message : N/A
 - Client side exception: "Incoming message input stream is null"
 - Server side exception: N/A


pingF & fireAndForget
 - HTTP status  : HTTP/1.1 500 Internal Server Error
 - Incoming message : SOAPFault whose faultstring is "unknown". 
  However, the error message thrown by pingF 
  is "Fault being thrown"
 - Client side exception: "Incoming message input stream is null"
 - Server side exception: N/A


pingF & sendRobust
 - HTTP status : HTTP/1.1 500 Internal Server Error
 - Incoming message: SOAPFault whose faultstring is "unknown". 
 However, the error message thrown by pingF 
 is  "Fault being thrown"
 - Client side exeption:  part of the incoming SOAP fault. 
 There is stack trace of the error thrown 
 by the server. But, error message is shown 
 as "unknown".
 - Server side exeption: N/A
---


--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Thank you very much Saminda. I've examined the lines you addressed.
> I've found followings:
> 
> - After execution, SOAPOverHTTPSender dispatches the response
> according
> to the HTTP status code. 
> - In my case(HTTP 500), it calls AbstractHTTPSender's
> processResponse()
> method.
> - A reference to the input stream extracted from response body is set
> to operation context as following:
>  
>   if(msgContext.getOperationContext() != null) {
>msgContext.getOperationContext()
>.setProperty(MessageContext.TRANSPORT_IN, in);
>   }
> 
> What is the purpose of this? Can I reach this property and receive
> the
> input stream within the class that I call the stub? If yes, could you
> please tell me how?
> 
> Also, I examined PingClient sample a little. I changed
> ClientUtil.getPingOMElement() to be able to call pingF service which
> throws an AxisFault when it is called. After I had called it, there
> was
> no AxisFault at either the client or server side althought HTTP
> stream
> says "HTTP 500". This might be because of fireAndForget () whose
> javadoc says "That is, there is no opportunity to get an error from
> the
> service via this API; one may still get client-side errors, such as
> host unknown etc.". But, generated stub does not call
> fireAndForget().
> Anyway, should I expect them both behave the same?
> 
> Thanks again.
> 
> Ali Sadik Kumlali
> 
> --- Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> > 
> > Ali Sadik Kumlali wrote:
> > > Hi again,
> > > 
> > > I've found that
> org.apache.axis2.transport.http.AbstractHTTPSender
> > > really doesn't care about the HTTP status code returned by the
> > service.
> > > Here is the code:
> > > 
> > > -
> > > // org.apache.axis2.transport.http.AbstractHTTPSender
> > > protected void executeMethod(...) throws IOException {
> > > HostConfiguration config = this.getHostConfiguration(...);
> > > msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);
> > > 
> > > ...
> > > 
> > > // ---
> > > // executeMethod returns back 202, 500, etc. but
> > > // it is not handled!
> > > // ---
> > > httpClient.executeMethod(config, method);
> > > }
> > > -

Re: AXIS2 1.0 get wsdl always contains address like http://hostname:8080/axis2/service..

2006-05-09 Thread Davanum Srinivas

Qi,

Could u please log a bug report? (http://issues.apache.org/jira)

thanks,
dims

On 5/9/06, Qi An <[EMAIL PROTECTED]> wrote:




Hi there,

 Sounds like axis2 1.0 always put
http://...:port_no/axis2/services as service - address
location no matter what is your web service URI.

 What I did
 1. Download axis2 1.0 binary/source/war and set them up.
 2. Create a tomcat project inside eclipse and set context to /axis210sample
 3. Start tomcat and run
http://localhost:8080/axis210sample - Services - version
 4. I expected WSDL service address location should be
http://localhost:8080/axis210sample/services/version but
axis2 1.0 always give me
http:/localhost:8080/axis2/services/version inside WSDL
file.
 5. Later I am using Visual Studio 2005 to create a windows application and
add version service as an Web References. Then run windows application - I
always get exception. then I modified WSDL file which return to VS from
provider and modify service address location to
http://localhost:8080/axis210sample/services/version, rerun
MSDiscoCodeGenerator. it's working fine.

 look at the code, sounds like in AxisServlet.class there is a method
getEPRForService, always set epr to
http://:port_no/axis2/services.

 Does someone knows it's axis problem or it's my setting problem?

 Thanks,
 Qi



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


AXIS2 1.0 get wsdl always contains address like http://hostname:8080/axis2/service..

2006-05-09 Thread Qi An








Hi there, 

Sounds like axis2 1.0 always put http://...:port_no/axis2/services
as service - address location no matter what is your web service URI. 

What I did 
1. Download axis2 1.0 binary/source/war and set
them up. 
2. Create a tomcat project inside eclipse and set
context to /axis210sample 
3. Start tomcat and run http://localhost:8080/axis210sample
- Services - version 
4. I expected WSDL service address location should
be http://localhost:8080/axis210sample/services/version
but axis2 1.0 always give me http:/localhost:8080/axis2/services/version inside
WSDL file. 
5. Later I am using Visual Studio 2005 to create a
windows application and add version service as an Web References. Then run
windows application - I always get exception. then I modified WSDL file which
return to VS from provider and modify service address location to http://localhost:8080/axis210sample/services/version,
rerun MSDiscoCodeGenerator. it's working fine. 

look at the code, sounds like in AxisServlet.class
there is a method getEPRForService, always set epr to http://:port_no/axis2/services.


Does someone knows it's axis problem or it's my
setting problem? 

Thanks,
Qi








Re: Ant axis-java2wsdl not giving me the implementation parameter names

2006-05-09 Thread Anne Thomas Manes
Compile your Java class with debug on, then run java2wsdl.AnneOn 5/9/06, James Armstrong <[EMAIL PROTECTED]
> wrote:













Hi,

Was wondering if someone can tell  me how
to the axis-java2wsdl ant task to produce a wsdl with actual implementation
parameters names instead of  in0, in1, etc.

 

Here is my ant task:

 



    

    

    

 

Here are my property values:

 



    

    

    

 

Here is a snap shot of generated wsdl:

 



    

 

  

  

  

  

  

  

  

  

  

  

  

  

 

 

Here's what they need to be:

 

String patronEdit(String pid,

 String
reverse_id,

 String
field_nameLast,

 String
field_nameFirst,

 String
field_email,

 String
field_addressStreet,

 String
field_addressCity,

 String
field_addressState,

 String
field_addressZipCode,

 String
field_phone,

 String field_dob,

 String uri

 );

 

TIA,

James

 









From: Anne Thomas
Manes [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 09, 2006 8:32
AM
To: axis-user@ws.apache.org
Subject: Re: Strange numbers /
artifact in SOAP response using TCPMonitor (Axis 1.3)



 

It's valid. The numbers
represent chunking.



On 5/9/06, Collin
VanDyck <[EMAIL PROTECTED]
> wrote:

I have changed from using
an Axis client to using a manual POST of the
SOAP message to a wrapped service.  Since I've done this, I am
receiving
numbers before and after the SOAP envelope response.

The SOAP request looks like this (namespaces removed for clarity):

POST /webservice/services/ConcatService HTTP/1.1 
Content-Type: application/soap+xml; charset=UTF-8
SOAPAction: ""
User-Agent: Java/1.5.0_06
Host: localhost:8070
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive 
Content-Length: 604



   
  



  
myname
  
mypassword



  
Hi 
  
There 
  
Again

 

  
   


The SOAP response looks like this:

HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.7 (build: 
CVSTag=JBoss_3_2_7 date=200501280217)
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 09 May 2006 13:23:55 GMT
Server: Apache-Coyote/1.1

185


   
  

Hi There Again 
  
   

0

When I used the Axis client to make a similar request, I didn't see the
numbers show up in the SOAP response.  Is this a valid response? 

Thanks
Collin



 










Re: Axis and XML Schema (help)

2006-05-09 Thread Anne Thomas Manes
I'm sorry, Diego, but I'm still having trouble understanding what you're trying to do. Is your goal simply not to include type information in the actual SOAP message? e.g, don't include xsi:type="xsd:string" in the message? That's easy. Just don't use RPC/encoded. Use document/literal instead. You only need to include the xsi:type information if you don't know the element's type ahead of time, which is the case when using RPC/encoded. With document/literal, you know the schema ahead of time, so there's no need to include the type information in the message. 
Note, though, that document/literal works on the assumption that the message structure is defined using XML Schema. But your SOAP engine could ignore the schema completely and just convert everything to string. That should work as long as you don't try to exchange complex types. 
It could get tricky, though, if you want to sign the contents of the message. I recommend that you use WS-Security (in conjunction with XML Signature) to attach the signature to the SOAP message. Apache WSS4J is an implementation of WS-Security.
AnneOn 5/9/06, Diego Vaille <[EMAIL PROTECTED]> wrote:
The reason for not using XML Schema is that other projects that are being conceived on my research institute are not using XML Schema on the transport of SOAP messages.I'm trying to work on the possibility of using or generating a SOAP engine that don't map XML to Java with XML Schemas. The problem would lie on the XML Signature since according to W3C Specifications (
http://www.w3.org/TR/xmldsig-core/#sec-Signature) I would need my implementation to generate my Signature elements as XML Schema or a DTD which isn't really a good approach.
Anne Thomas Manes <[EMAIL PROTECTED]> escreveu:
 Diego,I'm confused by what you're trying to do. You're correct that the SOAP spec doesn't *require* use of the XML Schema type system, but it's the only type system that's been defined. (SOAP Encoding is based on XML Schema.) Even if all
 you do is pass strings back and forth, you still need a way to identify the fact that the type you are sending is a string (xsd:string or soapenc:string).   More to the point,  the Axis serializaton engine supports only XML Schema of Java/XML type mapping. If you "disable" XML Schema, then Axis won't be able to map java objects to XML and back again. 
 Can you explain to us why you want to disable XML Schema?AnneOn 5/8/06, 
Diego Vaille <[EMAIL PROTECTED] > wrote:

Hi everyone,I am wondering if it's possible to use Axis and disable XML Schema for a while, and I'm not getting very far. I dont think it's that easy to disable or not use XML Schema on
 Axis (at least from what I've been reading), but I'm willing to try anything to keep Axis cause it's a great tool. I have a couple of questions that could help me guide on this and any reply would be of great assistance:
1 - According to W3C SOAP specifications ( http://www.w3.org/TR/soap/) it's not needed XML Schema on a SOAP message correct?
2 - I just need to send string types from client to server and server to client, so the use of XML Schema as far as I can see wouldn't be needed?  3 - If I use security on Axis (digital signature and soap encryption) would that make XML Schema needed?
4 - Just rebuilding SOAPEnvelope and other SOAP elements on org/apache/axis/message/ and removing XML Schema from the constructor would solve anything? 5 -  If question 4 isn't correct, manually removing all XML Schemas on Axis
 source code and recompile libraries for client and server will disable XML Schema without removing any important features on Axis?--- 
Here's my server WSDL I removed the xsd and xsi types from the elements but still XML Schema is being addressed on Envelope also the binding on RPC and the encoding of my methods seems to be using XML schema.
 http://localhost:8080/axis/services/PnPServer"> 
âˆ'    
âˆ'     
âˆ'    
 âˆ'    
âˆ'     
âˆ'
     
http://schemas.xmlsoap.org/soap/http "/>âˆ'   
 âˆ'    
 http://schemas.xmlsoap.org/soap/encoding/" namespace="
http://pnp" use="encoded"/> âˆ'
    
 http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/PnPServer 
" use="encoded"/>âˆ'    
âˆ'     
http://localhost:8080/axis/services/PnPServer"/> 
 Navegue com o Yahoo! Acesso Grátis, assista aos jogos do Brasil na Copa e 
 ganhe prêmios de hora em hora.  

		 
Yahoo! Messenger: transmita imagens de vídeo ao vivo
 para sua família e amigos!



RE: Ant axis-java2wsdl not giving me the implementation parameter names

2006-05-09 Thread James Armstrong








Hi,

Was wondering if someone can tell  me how
to the axis-java2wsdl ant task to produce a wsdl with actual implementation
parameters names instead of  in0, in1, etc.

 

Here is my ant task:

 



    

    

    

 

Here are my property values:

 



    

    

    

 

Here is a snap shot of generated wsdl:

 



    

 

  

  

  

  

  

  

  

  

  

  

  

  

 

 

Here’s what they need to be:

 

String patronEdit(String pid,

 String
reverse_id,

 String
field_nameLast,

 String
field_nameFirst,

 String
field_email,

 String
field_addressStreet,

 String
field_addressCity,

 String
field_addressState,

 String
field_addressZipCode,

 String
field_phone,

 String field_dob,

 String uri

 );

 

TIA,

James

 









From: Anne Thomas
Manes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 09, 2006 8:32
AM
To: axis-user@ws.apache.org
Subject: Re: Strange numbers /
artifact in SOAP response using TCPMonitor (Axis 1.3)



 

It's valid. The numbers
represent chunking.



On 5/9/06, Collin
VanDyck <[EMAIL PROTECTED]
> wrote:

I have changed from using
an Axis client to using a manual POST of the
SOAP message to a wrapped service.  Since I've done this, I am
receiving
numbers before and after the SOAP envelope response.

The SOAP request looks like this (namespaces removed for clarity):

POST /webservice/services/ConcatService HTTP/1.1 
Content-Type: application/soap+xml; charset=UTF-8
SOAPAction: ""
User-Agent: Java/1.5.0_06
Host: localhost:8070
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive 
Content-Length: 604



   
  



  
myname
  
mypassword



  
Hi 
  
There 
  
Again

 

  
   


The SOAP response looks like this:

HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.7 (build: 
CVSTag=JBoss_3_2_7 date=200501280217)
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 09 May 2006 13:23:55 GMT
Server: Apache-Coyote/1.1

185


   
  

Hi There Again 
  
   

0

When I used the Axis client to make a similar request, I didn't see the
numbers show up in the SOAP response.  Is this a valid response? 

Thanks
Collin



 








Re: Am I forced to use the axis webapp as my deployment?

2006-05-09 Thread Arnaud Weber

No, you can use the jars of axis inside your own webapp.

you have to import them in your classpath

Here is a maven part which will import them automatically:
 
 

   axis
   axis
   1.4
   
   true   
   

   
   
   axis
   axis-ant
   1.4
   
   true   
   

   
   
   axis
   axis-schema
   1.3
   
   true   
   

   
   
   axis
   axis-jaxrpc
   1.4
   
   true   
   

   
   
   axis
   axis-saaj
   1.4
   
   true   
   

   
   
   axis
   axis-wsdl4j
   1.5.1
   
   true   
   
  
  
  
   
  
   

   commons-discovery
   commons-discovery
   0.2
   
   true   
   

   


then add this in your web.xml

 
   AxisServlet
   Apache-Axis Servlet
   

   org.apache.axis.transport.http.AxisServlet
   
 


 
   SOAPMonitorService
   SOAPMonitorService
   

   org.apache.axis.monitor.SOAPMonitorService
   
   
 SOAPMonitorPort
 5001
   
   100
 

 
   AxisServlet
   /servlet/AxisServlet
 

 
   AxisServlet

   *.jws
 

 
   AxisServlet
   /services/*
 



 
   SOAPMonitorService
   /SOAPMonitor
 



In order to avoid using a script and a deploy.wsdd, you should also use 
a server-config.wsdd. That allow you to launch your services right after 
the deployement of your war. (try server-config.wsdd in google, there is 
plenty of examples)


hope that'll help
Arnaud

P.S : if you want, i can send you an example but not in the mailinglist.



[EMAIL PROTECTED] a écrit :


I'm getting class not found exceptions with the following setup.

axis jars in tomcat's shared lib.

I've got the axis web app and I've also got my web app.

my web app also defines the AxisServlet since it was complaining if I had a
mapping refering to AxisServlet when it was only defined in the axis web.xml

Is this deployment supported or must I deploy everything using axis as my web
application?



This message was sent using IMP, the Internet Messaging Program.


 





Am I forced to use the axis webapp as my deployment?

2006-05-09 Thread robert

I'm getting class not found exceptions with the following setup.

axis jars in tomcat's shared lib.

I've got the axis web app and I've also got my web app.

my web app also defines the AxisServlet since it was complaining if I had a
mapping refering to AxisServlet when it was only defined in the axis web.xml

Is this deployment supported or must I deploy everything using axis as my web
application?



This message was sent using IMP, the Internet Messaging Program.



SimpleAxisServer load

2006-05-09 Thread Philippe Simons
I have a couple of question about using the SimpleAxisServer

why the SimpleAxisServer cant be used in production?
what are the limitations?
can it handle multiple requests? (how much)
is it stable?
any information on someone using it in production is welcomed.
TIA

Philippe Simons


Re: Passing values to class constructors

2006-05-09 Thread Richard Gregory

Hi Josh,

I have a properties file which is read at run time. I put the file in my 
WEB-INF/classes directory and access it like this:


HttpServlet srv = (HttpServlet) 
MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLET);

ServletContext context = srv.getServletContext();
Properties properties = new Properties();
properties.load(context.getResourceAsStream("WEB-INF/classes/biors.properties"));
String address = properties.getProperty("server.address");

Hope this helps.

Richard.

Josh Potter wrote:

I should probably go into more detail.  I am extremely new to this.  
So far I have more or less followed the documentation to get stuff up 
and running.  I have tomcat installed with axis copied over to the 
webapps directory of tomcat.  I have my class copied over to the 
classes section of WEB-INF for axis.  I have a deploy.wsdd that I 
wrote and I used the command line tool to deploy my class as a 
service.  I see no service.xml files anywhere.  If there is another 
process I should be following, a point the in the right direction 
would be greatly appreciated.


Fabian Linz wrote:


Hi Josh,

> would like to pass the location of the config file to the service 
when it starts so it can set up the appropriate connections
From where do you want to pass the information? From the service.xml 
of the service?


If so you can use parameters. See section 6 in 
http://www.developer.com/open/article.php/10930_3589126_2


Regards

Fabian

I can not try it out at the moment but I think it is possible to

Josh Potter wrote, On 09.05.2006 15:50:


Greetings,

I have been searching for a few days now and cannot figure out how 
to pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load 
that holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file 
to the service when it starts so it can set up the appropriate 
connections to the database based on the values in the config file.  
If any more information is needed I would be happy to provide.


Thanks,
Josh Potter












What does axis mean by "non-bean class"?

2006-05-09 Thread Joshua . White

When using the axis-java2wsdl ant task, I see the following message:

"The class mycompany.dto.Consumer extends non-bean class mycompany.dto.Party.  An xml schema anyType will be used to define mycompany.dto.Consumer in the wsdl file."

I would like to correct this and ensure the Party class uses java bean conventions.  The Party class is abstract.  it does have a no-arg constructor and all its properties have getters/setters.  What else am I missing?

Joshua


*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



Re: Strange numbers / artifact in SOAP response using TCPMonitor (Axis 1.3)

2006-05-09 Thread Anne Thomas Manes
It's valid. The numbers represent chunking.On 5/9/06, Collin VanDyck <[EMAIL PROTECTED]
> wrote:I have changed from using an Axis client to using a manual POST of the
SOAP message to a wrapped service.  Since I've done this, I am receivingnumbers before and after the SOAP envelope response.The SOAP request looks like this (namespaces removed for clarity):POST /webservice/services/ConcatService HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8SOAPAction: ""User-Agent: Java/1.5.0_06Host: localhost:8070Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2Connection: keep-alive
Content-Length: 604     
   myname   mypassword
   Hi    There    Again 
 The SOAP response looks like this:HTTP/1.1 200 OKX-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.7 (build:
CVSTag=JBoss_3_2_7 date=200501280217)Content-Type: application/soap+xml;charset=UTF-8Transfer-Encoding: chunkedDate: Tue, 09 May 2006 13:23:55 GMTServer: Apache-Coyote/1.1185      Hi There Again
 0When I used the Axis client to make a similar request, I didn't see thenumbers show up in the SOAP response.  Is this a valid response?
ThanksCollin


Re: [axis2] wsdl2java exception after updating to 1.00 release

2006-05-09 Thread Diego

Hi Ajith,

I've also experienced a similar problem with the following wsdl:



http://vizier.u-strasbg.fr/xml/VOTable-1.1.xsd";
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

  
targetNamespace="SkyPortal.ivoa.net">

 http://www.w3.org/2001/XMLSchema"; />
 http://vizier.u-strasbg.fr/xml/VOTable-1.1.xsd";

schemaLocation="http://vizier.u-strasbg.fr/xml/VOTable-1.1.xsd"; />
 
   
 
   type="xsd:string" />
   type="xsd:string" />

 
   
 
 
   
 
   name="SubmitDistributedQueryResult" type="tns:VOTableData" />

 
   
 
 
 
   
 
   
 type="tns1:VOTABLE" />

   
 
   
 

  

  

  
  
element="tns:SubmitDistributedQueryResponse" />

  

  

  http://schemas.xmlsoap.org/wsdl/";>
Runs a distributed query query by making a plan and then
executing it - you may call the two steps seperately if
you wish to view the plan or track progress.
  
  
  

  

  
http://schemas.xmlsoap.org/soap/http"; 
style="document" />


  soapAction="SkyPortal.ivoa.net/SubmitDistributedQuery" style="document" />

  


  
  

  

  

  
http://schemas.xmlsoap.org/wsdl/"; />

  location="http://openskyquery.net/Sky/SkyPortal/SkyPortal.asmx"; />


  




That's the exception that I got:

[java] org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] 	at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)

[java]  at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
[java]  at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
[java]  at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
[java] 	at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

[java]  at org.apache.tools.ant.Task.perform(Task.java:364)
[java]  at org.apache.tools.ant.Target.execute(Target.java:341)
[java]  at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] 	at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[java] 	at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

[java]  at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[java]  at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[java] 	at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
[java] 	at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

[java]  at org.apache.tools.ant.Task.perform(Task.java:364)
[java]  at org.apache.tools.ant.Target.execute(Target.java:341)
[java]  at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] 	at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

[java]  at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[java] 	at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

[java]  at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[java]  at org.apache.tools.ant.Main.runBuild(Main.java:668)
[java]  at org.apache.tools.ant.Main.startAnt(Main.java:187)
[java]  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[java]  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] 	at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)

[java]  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
[java]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] 	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

[java]  at java.lang.reflect.Method.invoke(Method.java:324)
[java] 	at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
[java] 	at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)

[java]  ... 24 more
[java] Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
[java] 	at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)
[java] 	at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)

[java]  ... 31 more
[java] Caused by: java.lang.reflect.InvocationTargetException
[java]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] 	at 
sun.refl

RE: [axis2] wsdl2java exception after updating to 1.00 release

2006-05-09 Thread Sebastian Szczygiel








Here's the WSDL:

(the value @schema-location@ is replaced at deployment
time with c:\folder\build/ws/definition\schemafile.xsd)

 

 



 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

  xmlns:tns="urn://foo/pm/api/1_0"

  xmlns:bla="urn://foo/framework/api/1_0"

  targetNamespace="urn://foo/api/1_0">

  

    

  xmlns="http://www.w3.org/2001/XMLSchema"

  targetNamespace="urn://foo/framework/api/1_0"

  elementFormDefault="qualified">

  

    

  

 

  

    

  

  

    

  

  

    

  

  

    

  

  

    

    

  

  

    

  

  

    

  

    

  

  

    

  

    

  



 

 

 

 

-Original Message-
From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 9. Mai 2006 16:05
To: axis-user@ws.apache.org
Subject: Re: [axis2] wsdl2java exception after updating to 1.00 release

 

Hi,

Can we have a look at the WSDL ? It seems that when ":" is
present in

the url our entity resolver gets confused but having the WSDL would be

a great help

 

Ajith

 

On 5/9/06, Sebastian Szczygiel
<[EMAIL PROTECTED]>
wrote:

> 

> 

> 

> Hello,

> 

> 

> 

> Using the Axis2 1.0 release I get an exception while executing the
WSDL2Java

> tool.

> 

> 

> 

> BUT: exact the same schema files worked fine with all previous
Axis2

> versions including 0.95 release.

> 

> 

> 

> Any ideas what's wrong?

> 

> 

> 

> Regards,

> 

> Sebastian

> 

> 

> 

> 

> 

> 

> 

> Retrieving schema at 'file:///C:/foo.xsd', relative to
'file:/C://'.

> 

> Retrieving schema at foo.xsd', relative to 'file:/C:/ foo.xsd'.

> 

> Retrieving schema at 'bla.xsd', relative to 'file:/C:/bla.xsd'.

> 

> Exception in thread "main"

> org.apache.axis2.wsdl.codegen.CodeGenerationException:

> java.lang.RuntimeException:

> java.lang.reflect.InvocationTargetException

> 

>   at

>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)

> 

>   at

> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

> 

>   at

> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

> 

> Caused by: java.lang.RuntimeException:

> java.lang.reflect.InvocationTargetException

> 

>   at

>
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)

> 

>   at

>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)

> 

>   ... 2 more

> 

> Caused by: java.lang.reflect.InvocationTargetException

> 

>   at

> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

> 

>   at

>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

> 

>   at

> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> 

>   at java.lang.reflect.Method.invoke(Method.java:585)

> 

>   at

>
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:83)

> 

>   ... 3 more

> 

> Caused by: java.lang.RuntimeException:

> org.apache.xmlbeans.XmlException: error: Problem parsing

> referenced XML resource - C:\bla.xsd:1:1: error: Unexpected end of
file

> after null

> 

>   at

> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)

> 

>   ... 8 more

> 

> Caused by: org.apache.xmlbeans.XmlException: error: Problem

> parsing referenced XML resource - C:\foo.xsd:1:1: error:
Unexpected end of

> file after null

> 

>   at

> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)

> 

>   at

> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

> 

>   at

>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

> 

>   at

>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> 

>   at java.lang.reflect.Method.invoke(Method.java:585)

> 

>   at

> org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)

> 

>   at

>
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)

> 

>   ... 8 more

> 

> Java Result: 1

> 

> 

> 

> 

> 

> 

> 

> 

> 

> 

 

 

--

Ajith Ranabahu








Re: Passing values to class constructors

2006-05-09 Thread Fabian Linz
Sorry. It seems you use Axis and not Axis2 (as I somehow assumed). So 
there is no service.xml or service archive in your case.


Fabian

Josh Potter wrote, On 09.05.2006 16:11:
I should probably go into more detail.  I am extremely new to this.  
So far I have more or less followed the documentation to get stuff up 
and running.  I have tomcat installed with axis copied over to the 
webapps directory of tomcat.  I have my class copied over to the 
classes section of WEB-INF for axis.  I have a deploy.wsdd that I 
wrote and I used the command line tool to deploy my class as a 
service.  I see no service.xml files anywhere.  If there is another 
process I should be following, a point the in the right direction 
would be greatly appreciated.


Fabian Linz wrote:


Hi Josh,

> would like to pass the location of the config file to the service 
when it starts so it can set up the appropriate connections
From where do you want to pass the information? From the service.xml 
of the service?


If so you can use parameters. See section 6 in 
http://www.developer.com/open/article.php/10930_3589126_2


Regards

Fabian




Re: Passing values to class constructors

2006-05-09 Thread Josh Potter
I should probably go into more detail.  I am extremely new to this.  So 
far I have more or less followed the documentation to get stuff up and 
running.  I have tomcat installed with axis copied over to the webapps 
directory of tomcat.  I have my class copied over to the classes section 
of WEB-INF for axis.  I have a deploy.wsdd that I wrote and I used the 
command line tool to deploy my class as a service.  I see no service.xml 
files anywhere.  If there is another process I should be following, a 
point the in the right direction would be greatly appreciated.


Fabian Linz wrote:


Hi Josh,

> would like to pass the location of the config file to the service 
when it starts so it can set up the appropriate connections
From where do you want to pass the information? From the service.xml 
of the service?


If so you can use parameters. See section 6 in 
http://www.developer.com/open/article.php/10930_3589126_2


Regards

Fabian

I can not try it out at the moment but I think it is possible to

Josh Potter wrote, On 09.05.2006 15:50:


Greetings,

I have been searching for a few days now and cannot figure out how to 
pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load that 
holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file to 
the service when it starts so it can set up the appropriate 
connections to the database based on the values in the config file.  
If any more information is needed I would be happy to provide.


Thanks,
Josh Potter







Re: [axis2] wsdl2java exception after updating to 1.00 release

2006-05-09 Thread Ajith Ranabahu

Hi,
Can we have a look at the WSDL ? It seems that when ":" is present in
the url our entity resolver gets confused but having the WSDL would be
a great help

Ajith

On 5/9/06, Sebastian Szczygiel <[EMAIL PROTECTED]> wrote:




Hello,



Using the Axis2 1.0 release I get an exception while executing the WSDL2Java
tool.



BUT: exact the same schema files worked fine with all previous Axis2
versions including 0.95 release.



Any ideas what's wrong?



Regards,

Sebastian







Retrieving schema at 'file:///C:/foo.xsd', relative to 'file:/C://'.

Retrieving schema at foo.xsd', relative to 'file:/C:/ foo.xsd'.

Retrieving schema at 'bla.xsd', relative to 'file:/C:/bla.xsd'.

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

  at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)

  at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

  at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

  at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)

  at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)

  ... 2 more

Caused by: java.lang.reflect.InvocationTargetException

  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)

  at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:83)

  ... 3 more

Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: error: Problem parsing
referenced XML resource - C:\bla.xsd:1:1: error: Unexpected end of file
after null

  at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)

  ... 8 more

Caused by: org.apache.xmlbeans.XmlException: error: Problem
parsing referenced XML resource - C:\foo.xsd:1:1: error: Unexpected end of
file after null

  at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)

  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)

  at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)

  at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)

  ... 8 more

Java Result: 1













--
Ajith Ranabahu


Re: Passing values to class constructors

2006-05-09 Thread Fabian Linz

Hi Josh,

> would like to pass the location of the config file to the service 
when it starts so it can set up the appropriate connections
From where do you want to pass the information? From the service.xml of 
the service?


If so you can use parameters. See section 6 in 
http://www.developer.com/open/article.php/10930_3589126_2


Regards

Fabian

I can not try it out at the moment but I think it is possible to

Josh Potter wrote, On 09.05.2006 15:50:

Greetings,

I have been searching for a few days now and cannot figure out how to 
pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load that 
holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file to 
the service when it starts so it can set up the appropriate 
connections to the database based on the values in the config file.  
If any more information is needed I would be happy to provide.


Thanks,
Josh Potter




Re: Could not generate WSDL! There is no SOAP service at this location?

2006-05-09 Thread Joshua . White

After turning DEBUG on, I see some errors in the log file:


09 May 2006 09:45:10 DEBUG OperationDesc - @a54150setReturnType({http://dto.webservice.consumer.hartfordlife.com}Consumer)
09 May 2006 09:45:10 DEBUG OperationDesc - @a54150 added parameter >name:       {urn:webservice.consumer.hartfordlife.com}id
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}long
javaType:   null
inHeader:   false
outHeader:  false
@d9d765
09 May 2006 09:45:10 DEBUG ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(exception00)
09 May 2006 09:45:10 DEBUG BaseSerializerFactory - Exception:
java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArraySerializerFactory.create(java.lang.Class, javax.xml.namespace.QName)
        at java.lang.Class.getMethod(Class.java:1581)
        at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:254)
        at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542)
        at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
        at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:233)
        at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:192)
        at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
        at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
        at org.apache.axis.AxisEngine.(AxisEngine.java:156)
        at org.apache.axis.server.AxisServer.(AxisServer.java:88)
        at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
        at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
        at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
        at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
        at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
        at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
        at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)

Which method could we be possible talking about here?  I have attached my server-config.wsdd file.



Joshua








Collin VanDyck <[EMAIL PROTECTED]>
05/09/2006 08:15 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        
        Subject:        Re: Could not generate WSDL! There is no SOAP service at this location?


I had this happen the other day and it ended up being a typo in the 
server-config.wsdd file.

I had my service specified as:



and when I changed it to



The service deployed correctly.

So it might just be an error in this file.

Collin



[EMAIL PROTECTED] wrote:
> Ok,
> 
> Long story short, I am using the axis-java2wsdl ant task to generate a wsdl file 
> only as a means to generate a wsdd file using the axis-wsdl2java ant task.  I 
> only deploy the generated wsdd file and not the generated wsdl file.  I do not 
> use the generated WSDL file again thinking that AXIS should regenerate it anyway.
> 
> When I deploy my service, I get the normal "And now... some services" page. 
>  Trouble is, when I click on the link for the wsdl, I get the following error:
> 
> *AXIS error*
> 
> Could not generate WSDL!
> 
> There is no SOAP service at this location
> 
> I don't see any errors in the log file.  What happened?
> 
> -Joshua
> 
> *
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information. If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited. If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *
> 
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5 - Release Date: 5/5/2006




server-

Passing values to class constructors

2006-05-09 Thread Josh Potter

Greetings,

I have been searching for a few days now and cannot figure out how to 
pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load that 
holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file to 
the service when it starts so it can set up the appropriate connections 
to the database based on the values in the config file.  If any more 
information is needed I would be happy to provide.


Thanks,
Josh Potter


RE: Calendar classCastException

2006-05-09 Thread Tom Bollwitt
Well after trying to learn both AXIS and Hibernate at the same time and
having issues with the Jboss IDE Eclipse plugin (couldn't debug through
eclipse the way Im used to); I was finally able to find my problem.
It was a Hibernate mapping file problem.

I had this because the Calendar was originally a Date:


I changed to:


I changed from Date to Calendar because I read that .Net clients would
otherwise have issues.

Thanks to everyone for there assistance with my issue.
Sorry for being such a newbie to AXIS / Hibernate.



-Original Message-
From: Dies Koper [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 08, 2006 7:22 PM
To: axis-user@ws.apache.org
Subject: Re: Calendar classCastException

Hello Tom,

As java.util.Calendar is an abstract class, it cannot be instantiated. 
When you call Calendar.getInstance(), you create an instance of
GregorianCalendar (similar to Calendar gregCal = new
GregorianCalendar(2021,02,01); -> Axis would not even know the
difference).
The former is the way you should use Calendar types.

I lost your original e-mail, but I assume you used WSDL2Java and got a
class called LabTestAuthorization with a field called lastDateModified
of type java.util.Calendar?

I don't understand how MyClass fits in the picture. There is no
complexType called MyClass in your WSDL.

Could you show the stacktrace of the ClassCastException and the source
(your client and/or generated Javabean) it occurs in?

Regards,
Dies


Tom Bollwitt wrote:
> ok, I should probably be more clear on what I am doing with the 
> Calendar.
>  
> I have a class i.e. MyClass.java.
> Within MyClass there is a private Calendar lastDateModified; with 
> getter/setter.
> I want to RETURN  MyClass to the client. The client will do nothing 
> with dates, just receive the MyClass object from the web service.
>  
> The lastDateModified is set by with:  Calendar.getInstance(). Nowhere 
> in my code am I using GregorianCalendar.
>  
> When i use a test client to make the call it gets the
> java.lang.ClassCastException: java.util.GregorianCalendar.
>  
>  
> I created the Interface for the service along with the objects it 
> depends on, i.e. the MyClass object. I then used the Java2Wsdl to 
> generate the wsdl file.
> I then used Wsdl2Java to generate the the Java classes and the 
> deploy/undeploy.wsdd files.
>  
> Is there something the Wsdle2Java generation is leaving out? If I 
> remove the Calendar attribute everything works.
>  
> Here is my latest version of the wsdl. and deploy.wsdd
>  
> WSDL:
> 
> 
>  xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:impl="urn:AuthorizeLabTest" xmlns:intf="urn:AuthorizeLabTest"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:tns2="http://model.webservice.crlcorp.com";
> xmlns:tns3="http://datautil.crlcorp.com";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> 
> 
> 
> 
> 
> http://model.webservice.crlcorp.com";
> xmlns="http://www.w3.org/2001/XMLSchema";>
> 
> 
> 
> http://datautil.crlcorp.com"/>
> 
> http://schemas.xmlsoap.org/soap/encoding/"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> http://datautil.crlcorp.com";
> xmlns="http://www.w3.org/2001/XMLSchema";>
> 
> 
> 
> http://model.webservice.crlcorp.com"/>
> 
> http://schemas.xmlsoap.org/soap/encoding/"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  xmlns="http://www.w3.org/2001/XMLSchema";>
> 
> http://datautil.crlcorp.com"/>
> 
> http://model.webservice.crlcorp.com"/>
> 
> http://schemas.xmlsoap.org/soap/encoding/"/>
> 
> 
> 
> 
> 
> 
> 
>  wsdl:arrayType="tns2:LabTestAuthorization[]"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="impl:ArrayOf_tns2_LabTestAuthorization"/>
> 
> 
> 
> 
> 
>  type="tns2:LabTestAuthorization"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="tns2:AuthorizationResult"/>
> 
> 
> 
> 
> 
> 
> 
>  name="processAuthorizationRequest"/>
> 
>  name="processAuthorizationResponse"/>
> 
>  name="DatabaseException"/>
> 
> 
> 
> 
> 
>  name="getAuthorizationsRequest"/>
> 
>  name="getAuthorizationsResponse"/>
> 
>  name="DatabaseException"/>
> 
> 
> 
> 
> 
>  name="getAuthorizationByCocIdRequest"/>
> 
>  name="getAuthorizationByCocIdResponse"/>
> 
>  name="DatabaseException"/>
> 
> 
> 
> 
> 
>  type="impl:AuthorizeLabTest">
> 
>  transport="http://schemas.xmlsoap.org/soap/http"/>
> 
> 
> 
> 
> 
> 
> 
> http://schemas.xmlsoap.org/soap/encoding/";
> namespace="urn:AuthorizeLabTest" use="encoded"/>
> 
> 
> 
> 
> 
> http://schemas.xmlsoap.org/soap/encoding/";
> namespace="urn:AuthorizeLabTest" use="encoded"/>
> 
> 
> 
> 
> 
>  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> name="DatabaseException" namespace="urn:AuthorizeLabTest"
> use="encoded"/>
> 
> 
> 

Strange numbers / artifact in SOAP response using TCPMonitor (Axis 1.3)

2006-05-09 Thread Collin VanDyck
I have changed from using an Axis client to using a manual POST of the 
SOAP message to a wrapped service.  Since I've done this, I am receiving 
numbers before and after the SOAP envelope response.


The SOAP request looks like this (namespaces removed for clarity):

POST /webservice/services/ConcatService HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8
SOAPAction: ""
User-Agent: Java/1.5.0_06
Host: localhost:8070
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 604




   
 
  
  myname   

  mypassword   
 
 
  Hi 
  There  
  Again  


 
  
   

The SOAP response looks like this:

HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.7 (build: 
CVSTag=JBoss_3_2_7 date=200501280217)

Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 09 May 2006 13:23:55 GMT
Server: Apache-Coyote/1.1

185

   
  
 
Hi There Again
 
  
   
0

When I used the Axis client to make a similar request, I didn't see the 
numbers show up in the SOAP response.  Is this a valid response?


Thanks
Collin



Are stubs/skels backward compatible?

2006-05-09 Thread Robert Nicholson
If you got stubs that were generated against Axis 1.1 are they  
backward compatible with later releases up to and including 1.4?


Which is the suggest 1.x release if you want to run client/server in  
a 1.5 jvm.


Re: [Axis2][1.0] Handling HTTP 500 errors for input only requests!

2006-05-09 Thread Ali Sadik Kumlali
Thank you very much Saminda. I've examined the lines you addressed.
I've found followings:

- After execution, SOAPOverHTTPSender dispatches the response according
to the HTTP status code. 
- In my case(HTTP 500), it calls AbstractHTTPSender's processResponse()
method.
- A reference to the input stream extracted from response body is set
to operation context as following:
 
  if(msgContext.getOperationContext() != null) {
   msgContext.getOperationContext()
   .setProperty(MessageContext.TRANSPORT_IN, in);
  }

What is the purpose of this? Can I reach this property and receive the
input stream within the class that I call the stub? If yes, could you
please tell me how?

Also, I examined PingClient sample a little. I changed
ClientUtil.getPingOMElement() to be able to call pingF service which
throws an AxisFault when it is called. After I had called it, there was
no AxisFault at either the client or server side althought HTTP stream
says "HTTP 500". This might be because of fireAndForget () whose
javadoc says "That is, there is no opportunity to get an error from the
service via this API; one may still get client-side errors, such as
host unknown etc.". But, generated stub does not call fireAndForget().
Anyway, should I expect them both behave the same?

Thanks again.

Ali Sadik Kumlali

--- Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Ali Sadik Kumlali wrote:
> > Hi again,
> > 
> > I've found that org.apache.axis2.transport.http.AbstractHTTPSender
> > really doesn't care about the HTTP status code returned by the
> service.
> > Here is the code:
> > 
> > -
> > // org.apache.axis2.transport.http.AbstractHTTPSender
> > protected void executeMethod(...) throws IOException {
> > HostConfiguration config = this.getHostConfiguration(...);
> > msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);
> > 
> > ...
> > 
> > // ---
> > // executeMethod returns back 202, 500, etc. but
> > // it is not handled!
> > // ---
> > httpClient.executeMethod(config, method);
> > }
> > -
> > 
> > Is it on purpose? If yes, could you please answer my previous
> > questions?
> > 
> > Thanks a lot.
> > 
> > Ali Sadik Kumlali
> > 
> > 
> > --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>Hi all,
> >>
> >>The subject may seem contradictory, as it has both "input only" and
> >>"return" words together :)
> >>
> >>Here is the scenario:
> >>- In my WSDL, all the operations have input message only.
> Therefore,
> >>I
> >>assume that I have "input only" services. 
> >>- WSDL2Java generates *MessageReceiverInOnly as expected.
> Therefore,
> >>I
> >>beleive, my first assumption is confirmed.
> >>- I add InflowSecurity in service.xml. Therefore, my service
> requires
> >>security headers.
> >>- I don't add OutflowSecurity in the axis2.xml at the client side.
> >>(This is made deliberately to cause the server throwing "missing
> >>security headers" exception.)
> >>- I send request by calling generated test code.
> >>- All the messages goes through TCP/IP Monitor.
> >>- Request doesn't have security headers as expected.
> >>- Server sends a SOAPFault back to the client. (HTTP header says
> >>HTTP/1.1 500 Internal Server Error)
> >>- However, client doesn't do anything with this exception, although
> >>it
> >>successfully receives the whole message.
> >>
> >>Here are the questions:
> >>- Is this expected behavior?
> >>  - If yes, why the server send soap fault for the in-only message?
> >>- Does the client only wait for *any* HTTP response without
> actually
> >>caring about what the header is? Or, does it behave differently but
> >>not
> >>for HTTP 500?
> >>- I saw the ReplyTo header in the request. Spec says ReplyTo is
> >>optional for in-only messages. What purposes Axis2 set it for?
> >>
> >>
> >>Thanks for your reading efforts :)
> >>
> >>Ali Sadik Kumlali
> >>
> >>__
> >>Do You Yahoo!?
> >>Tired of spam?  Yahoo! Mail has the best spam protection around 
> >>http://mail.yahoo.com 
> >>
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> Hi,
> 
> org.apache.axis2.transport.http.AbstractHTTPSender does care about
> response http status code.
> 
> for a soap request, CommonsHttpTransportSender creates
> 
> org.apache.axis2.transport.http.SOAPOverHTTPSender which extends
> org.apache.axis2.transport.http.AbstractHTTPSender  and if you
> observe
> the code in lines 103 to 121, response will be handle according to
> the
> http status code. Currently axis2 support 200,202 and 500.
> 
> Thank you
> 
> Saminda
> 
> 
> -BEGIN PGP SI

[ANN] Apache TCPMon 1.0 released

2006-05-09 Thread Ajith Ranabahu
We are proud to announce the 1.0 release of Apache TCPMon,
the recently moved out tool from Apache Axis2.

You can download this release from our official site at
http://ws.apache.org/commons/tcpmon/download.cgi

The release jar is available at
http://www.apache.org/dist/java-repository/ws-commons/jars/
for embedding purposes

Additions to this release apart from the regular TCPMon include

1. SOAP message sender capability to send arbitrary SOAP messages
2. Batch and shell scripts to easily start TCPMon
3. Documentation including a simple user guide

Please use this release and send your comments to
[EMAIL PROTECTED]

Thank you,
Apache TCPMon team






signature.asc
Description: OpenPGP digital signature


Re: Enable soap monitor

2006-05-09 Thread robert lazarski
The steps in axis 1.x, assuming a axis.war, are:

1) Compile the applet and put it under axis/*applet.class*/WEB-INF
2) Configure the soapmonitor servlet via web.xml
3) Deploy the soapmonitor web service via the admin client
4) Place references in your web service wsdd such as: 

  
  
    
    
  
    

5) Load the soap applet in a java 1.3 and higher enabled browser via: 

http://localhost:8080/axis/SOAPMonitor

HTH,
Roberthttp://www.braziloutsource.com/
On 5/9/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:












Hi,

  I am trying to enable the soap monitor for my liferay
portal application. The first step is to

install axis along with this web application. Is that
correct ?

 

What does the url in the following axis instruction mean ? I
have to substitute "axis" with my web

application context ?? What does this
"services/AdminService" mean ? What do I substitute it with ?

 

 

"Deploy the SOAPMonitorService web service with the
admin client and the deploy-monitor.wsdd file "

 

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService

deploy-monitor.wsdd

 

I am trying to monitor my WSRP communication.

 

Thanks,

Mohan



This
message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.






Re: Could not generate WSDL! There is no SOAP service at this location?

2006-05-09 Thread Collin VanDyck
I had this happen the other day and it ended up being a typo in the 
server-config.wsdd file.


I had my service specified as:



and when I changed it to



The service deployed correctly.

So it might just be an error in this file.

Collin



[EMAIL PROTECTED] wrote:

Ok,

Long story short, I am using the axis-java2wsdl ant task to generate a wsdl file 
only as a means to generate a wsdd file using the axis-wsdl2java ant task.  I 
only deploy the generated wsdd file and not the generated wsdl file.  I do not 
use the generated WSDL file again thinking that AXIS should regenerate it anyway.


When I deploy my service, I get the normal "And now... some services" page. 
 Trouble is, when I click on the link for the wsdl, I get the following error:


*AXIS error*

Could not generate WSDL!

There is no SOAP service at this location

I don't see any errors in the log file.  What happened?

-Joshua

*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5 - Release Date: 5/5/2006


Could not generate WSDL! There is no SOAP service at this location?

2006-05-09 Thread Joshua . White

Ok,

Long story short, I am using the axis-java2wsdl ant task to generate a wsdl file only as a means to generate a wsdd file using the axis-wsdl2java ant task.  I only deploy the generated wsdd file and not the generated wsdl file.  I do not use the generated WSDL file again thinking that AXIS should regenerate it anyway.

When I deploy my service, I get the normal "And now... some services" page.  Trouble is, when I click on the link for the wsdl, I get the following error:

AXIS error
Could not generate WSDL!
There is no SOAP service at this location
I don't see any errors in the log file.  What happened?

-Joshua


*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



Enable soap monitor

2006-05-09 Thread mohan.radhakrishnan








Hi,

  I am trying to enable the soap monitor for my liferay
portal application. The first step is to

install axis along with this web application. Is that
correct ?

 

What does the url in the following axis instruction mean ? I
have to substitute "axis" with my web

application context ?? What does this
"services/AdminService" mean ? What do I substitute it with ?

 

 

"Deploy the SOAPMonitorService web service with the
admin client and the deploy-monitor.wsdd file "

 

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService

deploy-monitor.wsdd

 

I am trying to monitor my WSRP communication.

 

Thanks,

Mohan



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.




Re: Can you specify your own implementation class when using the axis-wsdl2java ant task?

2006-05-09 Thread Joshua . White

Dies,

Again, thanks for the reply.  I am running the axis-java2wsdl ant task followed by the axis-wsdl2java ant task to generate my wsdd file.  When I set bindingname="JaxRpcMyService" in the axis-java2wsdl ant task, the wsdl:binding appears correctly in the wsdl file ("JaxRpcMyService").  When I run the axis-wsdl2java task and skeletondeploy="true" it applies a "Skeleton" suffix to this name.  Running the same task with skeletondeploy="false" it applies a "Impl" suffix to this name.  Whats the difference?  Is there a way to avoid adding a suffix all together?

Regards,

Joshua









Dies Koper <[EMAIL PROTECTED]>
05/08/2006 08:03 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        
        Subject:        Re: Can you specify your own implementation class when using the    axis-wsdl2java ant task?


Hello Joshua,

The generated file name for the implementation class in the WSDD is 
generated from the binding name in your WSDL:

    

->

generated impl class name: YourSoapBindingImpl

If you can accept an implementation class name ending with "Impl", 
change the binding name.

Regards,
Dies


[EMAIL PROTECTED] wrote:
> I use the axis-java2wsdl ant task to generate the wsdl file and then use the 
> axis-wsdl2java class to generate the wsdd file.  Is there a way to specify the 
> service implementation class when using the axis-wsdl2java ant task?  I would 
> prefer not to have to change the wsdd file after I generate it.
> 
> Regards,
> 
> Joshua






*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



Re: How to avoid hardcoding the location of wsdl file in generated source?

2006-05-09 Thread Joshua . White

Dies,

Thanks for the reply!

Joshua







Dies Koper <[EMAIL PROTECTED]>
05/08/2006 07:56 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        
        Subject:        Re: How to avoid hardcoding the location of wsdl file in generated    source?


Hello Joshua,

Set the URL yourself in your client:

import javax.xml.rpc.*;
[...]
                 ServiceFactory sf = ServiceFactory.newInstance();
                 YourService service = (YourService)sf.loadService(YourService.class);

                 YourSEI remote = service.getYourSEI();

                 String url = "">
                 ((Stub)remote)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);

Load the url from a property file or pass it as argument to your client.

Regards,
Dies

[EMAIL PROTECTED] wrote:
> When using the axis-wsdl2java ant task, the location of the wsdl file gets hard 
> coded in the generated client code.  I need to move my app between environments 
> without having to recompile.  How do I prevent this from happening?  Is there 
> another alternative?
> 
> Regards,
> 
> Joshua






*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



Re: [Axis2] Webapp bugs

2006-05-09 Thread wang pengchao
Hey Steve     I found the same problem when I try to embed axis2 into Jetty yesterday. I have created a bug report in Jira for the wsdl fetching failure.
CheersWPC ( [EMAIL PROTECTED] || [EMAIL PROTECTED] )On 5/8/06, 
Steve Barham <[EMAIL PROTECTED]> wrote:
Hiya,Am surprised that noone else has mentioned these so far. Clearly too manyTomcat users on this project!1. In the service listing, the links to the services are emitted in thefollowing style:
http://localhost/axis2-web/services/version?wsdlThis will fail to work under certain application containers, most notableIronflare Orion. This is because the list service is checked with the
following conditional (ListingAgent, line 87):if (httpServletRequest.getParameter("wsdl") != null ||httpServletRequest.getParameter("xsd") != null) {processListService(httpServletRequest, httpServletResponse);
} else {super.handle(httpServletRequest, httpServletResponse);}In this case, as wsdl or xsd do not have any value assigned to them, theydo not have entries in the httpServletRequest parameter map. This can be
solved by changing the links to be of the following form:http://localhost/axis2-web/services/version?wsdl=1An alternative change would be to use the pathinfo to determine what
action to take, rather than the parameter value.2. The listServices.jsp page is included by ListingAgent. As such, thecontent type declaration of text/html with utf-8 encoding made in thepage's JSP header is clobbered, resulting in FireFox and other browsers
displaying it as text/plain.Cheers,steve--Steve Barham   tel: +44 (0)7973 199 471Systems EngineerFormicary - delivering quality financial technology solutions
http://www.formicary.net/


Jibx, Axis2 and multiple binding files

2006-05-09 Thread Andres Olave
Title: Jibx, Axis2 and multiple binding files






Hi there,


I have been playing around with the Jibx support, but the current project i am trying to migrate across to Axis 2 has 4 jibx mapping files. How should I go about running the code generator to take in all of the binding?files?

Thanks,

Andres




IMPORTANT
The contents of this email (and any attachment):
(1) are confidential and may be legally privileged - if it is not meant for
you, please tell the sender, do not forward or copy the contents
and delete it from your system immediately;
(2) come from its author and may not necessarily reflect the opinions
of Virgin Mobile.
While emails and attachments are virus checked,
we cannot accept any liability in respect of any viruses.
We may monitor emails sent to Virgin Mobile.

Want to know more about Virgin Mobile?
Visit our website for the latest info, phones and special offers
http://www.virgin.com/mobile

Virgin Mobile Telecoms Ltd



Re: [Axis2][1.0] Handling HTTP 500 errors for input only requests!

2006-05-09 Thread Saminda Abeyruwan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ali Sadik Kumlali wrote:
> Hi again,
> 
> I've found that org.apache.axis2.transport.http.AbstractHTTPSender
> really doesn't care about the HTTP status code returned by the service.
> Here is the code:
> 
> -
> // org.apache.axis2.transport.http.AbstractHTTPSender
> protected void executeMethod(...) throws IOException {
> HostConfiguration config = this.getHostConfiguration(...);
> msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);
> 
> ...
> 
> // ---
> // executeMethod returns back 202, 500, etc. but
> // it is not handled!
> // ---
> httpClient.executeMethod(config, method);
> }
> -
> 
> Is it on purpose? If yes, could you please answer my previous
> questions?
> 
> Thanks a lot.
> 
> Ali Sadik Kumlali
> 
> 
> --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> 
> 
>>Hi all,
>>
>>The subject may seem contradictory, as it has both "input only" and
>>"return" words together :)
>>
>>Here is the scenario:
>>- In my WSDL, all the operations have input message only. Therefore,
>>I
>>assume that I have "input only" services. 
>>- WSDL2Java generates *MessageReceiverInOnly as expected. Therefore,
>>I
>>beleive, my first assumption is confirmed.
>>- I add InflowSecurity in service.xml. Therefore, my service requires
>>security headers.
>>- I don't add OutflowSecurity in the axis2.xml at the client side.
>>(This is made deliberately to cause the server throwing "missing
>>security headers" exception.)
>>- I send request by calling generated test code.
>>- All the messages goes through TCP/IP Monitor.
>>- Request doesn't have security headers as expected.
>>- Server sends a SOAPFault back to the client. (HTTP header says
>>HTTP/1.1 500 Internal Server Error)
>>- However, client doesn't do anything with this exception, although
>>it
>>successfully receives the whole message.
>>
>>Here are the questions:
>>- Is this expected behavior?
>>  - If yes, why the server send soap fault for the in-only message?
>>- Does the client only wait for *any* HTTP response without actually
>>caring about what the header is? Or, does it behave differently but
>>not
>>for HTTP 500?
>>- I saw the ReplyTo header in the request. Spec says ReplyTo is
>>optional for in-only messages. What purposes Axis2 set it for?
>>
>>
>>Thanks for your reading efforts :)
>>
>>Ali Sadik Kumlali
>>
>>__
>>Do You Yahoo!?
>>Tired of spam?  Yahoo! Mail has the best spam protection around 
>>http://mail.yahoo.com 
>>
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
Hi,

org.apache.axis2.transport.http.AbstractHTTPSender does care about
response http status code.

for a soap request, CommonsHttpTransportSender creates

org.apache.axis2.transport.http.SOAPOverHTTPSender which extends
org.apache.axis2.transport.http.AbstractHTTPSender  and if you observe
the code in lines 103 to 121, response will be handle according to the
http status code. Currently axis2 support 200,202 and 500.

Thank you

Saminda


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEYGf0YmklbLuW6wYRAl7FAJ9CjyfxNL/E8u90i8wcBRPalI3AuQCgwZEg
mnq77GrPynQ8awsui8gWbQo=
=ACXR
-END PGP SIGNATURE-


Question on concurrency

2006-05-09 Thread Raymond.Haakseth
Hi All,

I'm currently developing a demo using the combination of Apache Axis 1.3
and "message" style services. My question is what kind of concurrency
model is deployed? Or put in another way is Axis when using "message"
style services thread safe?

I couldn't find any info on this on the web page or previous mails to
the list, so any input is appreciated.

Regards,

Raymond Haakseth


Re: WSDL soap-adress not correctly set by Axis2 1.0 webapp

2006-05-09 Thread Sébastien Arod




Bug reported http://issues.apache.org/jira/browse/AXIS2-676
Deepal Jayasinghe a écrit :

  I think this a bug in Axis2 , and need to fix in next version. So pls
create a JIRA so that we will not forget this.

Sébastien Arod wrote:

  
  
Yes that's it.
In fact I'm testing axis2 (I used 0.95 before) so I renamed the war to
axis2_1.0.war.

And then I get the WSDL from
http://localhost:8080/axis2_1.0/services/MyService?wsdl

The wsdl:service tag is





"http://localhost:8080/axis2/services/MyService" />







robert lazarski wrote :



  Let me try and understand. You have:

http://localhost:8080/axis2/services/MyService"

But now you want to create your own webapp:

http://localhost:8080/myWebApp/services/MyService
"

Is that correct? If so, you do this via:

cp axis2.war myWebApp.war

?

Robert
http://www.braziloutsource.com/



On 5/5/06, *Sébastien Arod* <[EMAIL PROTECTED]
> wrote:

When I deploy a service to Axis2 webapp
The soapaddress is set by Axis2 to 
that's fine.
However if I changed Axis2 webapp name to a other name the
soapaddress
is still set to http://localhost:8080/axis2/services/MyService so
obviously the client can't find the Service (404 Error).

Is there a way to configure that or is it a bug ?

Thanks
Sebastien


  

  
  
  






Re: [Axis2] Operation Not found .. and WSA Action = null

2006-05-09 Thread Eran Chinthaka
Hi Sebastian,

Problem seems to be due to action="process" in SOAP 1.2. Can you just
try this with Axis2 1.0 and send us the two SOAP requests, please ?


Sebastian Szczygiel wrote:
>> BTW, why did u explicitly disable MTOM ?
> 
>  
> 
> My goal is to send SOAP 1.2 attachments using MTOM, but unfortunately I
> get only a "Invalid Content Type Field in the Mime Message" response
> from server if I try this with SOAP 1.2. So, I decided to disable MTOM.
> 
>  
> 
> But, you're right, it's not necessary to explicit disable MTOM. It's
> enough if I set optimization to false for the OM-object which holds the
> attachment-data.
> 
>  
> 
> Here's the request which works fine with SOAP1.1
> 
>  
> 
> ---
> 
> POST /myservice HTTP/1.1
> 
> User-Agent: Axis/2.0
> 
> SOAPAction: process
> 
> Host: localhost:8081
> 
> Transfer-Encoding: chunked
> 
> Content-Type: text/xml; charset=UTF-8
> 
>  
> 
> 7b8
> 
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> />
> 
> ...
> 
>   
> 
> 
> 
> 1
> 
> test-data
> 
>
> PHNvYXBlbnY6RW52ZWxvcGUgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5...
> 
> 
> 
>   
> 
> ...
> 
> 
> 
> 0
> 
> ---
> 
>  
> 
>  
> 
>  
> 
> And here the request if I switch to SOAP 1.2 with setSoapVersionURI
> method. The server response to this request is
> 
>  
> 
> org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Operation Not
> found EPR is http://localhost:8081/myservice and WSA Action =  null
> 
>   at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:46)
> 
>   at org.apache.axis2.engine.Phase.invoke(Phase.java:393)
> 
>  
> 
>  
> 
> ---
> 
> POST /myservice HTTP/1.1
> 
> User-Agent: Axis/2.0
> 
> Host: localhost:8081
> 
> Transfer-Encoding: chunked
> 
> Content-Type: application/soap+xml; charset=UTF-8;action="process";
> 
>  
> 
> 7b6
> 
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> />
> 
> ...
> 
>   
> 
> 
> 
> 1
> 
> test-data
> 
>
> PHNvYXBlbnY6RW52ZWxvcGUgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5...
> 
> 
> 
>   
> 
> ...
> 
> 
> 
> 0
> 
> ---
> 
>  
> 
>  
> 
> I’m using Axis2 0.95
> 
>  
> 
> Regards,
> 
> Sebastian
> 




signature.asc
Description: OpenPGP digital signature


[AXIS 2.4] webapps/axis/WEB-INF/classes in classpath

2006-05-09 Thread Daniel . Krippner

  Hi List,

I have got two axis-questions:
 - when I put the /webapps/axis/WEB-INF/classes directory in
tomcat's classpath, I get the exception below when trying to access axis's
Service List page. I'd want the directory in the classpath, though, because
one of my classes depends on being able to find other class files in that
path.

 - I have two services - one simple service for messing around with and
trying out things, and a more complex one that it's all about. Now I deploy
the simple service and copy it's class files to axis's classes directory,
everything works fine. Then I remove the associated class file and restart
axis, which generates an exception when I try to access the service. So far
as expected. But when I correctly deploy the complex service (and copy the
class files, etc.), then remove its class files and restart axis, it
silently removes the complex service from it's configuration and that's it.
No exception, nothing. Why? I did expect both cases to behave the same...


Aside from my growing pains, I really like this piece of software - to all
developers who read this: thank you very much for all the work!
  Daniel




javax.servlet.ServletException: Servlet.init() for servlet AxisServlet
threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)


org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)


org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)


org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

 java.lang.Thread.run(Unknown Source)



root cause


java.lang.NoClassDefFoundError: org/apache/axis/encoding/Deserializer
 java.lang.Class.forName0(Native Method)
 java.lang.Class.forName(Unknown Source)
 org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:177)
 java.security.AccessController.doPrivileged(Native Method)

org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
 org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)

org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:183)


org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542)


org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)

org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:233)

org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:192)


org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)


org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65)

org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)

 org.apache.axis.AxisEngine.init(AxisEngine.java:172)
 org.apache.axis.AxisEngine.(AxisEngine.java:156)
 org.apache.axis.server.AxisServer.(AxisServer.java:88)

org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)


org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)


org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)

org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)


org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)


org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)


org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
 javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)


org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)


org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)


org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

 java.lang.Thread.run(Unknown Source)






Mit freundlichen Grüßen / with best regards
Daniel Krippner
Software Entwicklung

Porsche Engineering Services GmbH
Abt. PE-EE
Etzelstraße 1
74321 Bietigheim-Bissingen
Germany


   
 Tel. PAG +49 (0) 711 / 911 88430  
   
 Tel. PES +49 (0) 7142 / 986 158

Re: WS-Addressing 2003/03

2006-05-09 Thread Eran Chinthaka
Fabian wrote:

> 1. Extend the BPEL Engine to support WS-Addressing in version 2004/08
> and/or 2005/08
> 2. Extend the current WS-Addressing module of Axis2
> 3. Build my own little module that understands WS-Addressing 2003/03 (at
> least the replyTo part I need for asynchronous invocation)

I think the third option is better. Extending the current module means
you are again writing handlers which is the same as option #3.

If you need any help, just drop a mail here.

-- Chinthaka

> 
> I don't like the first solution. So my question is if it makes sense to
> extend the Axis2 WS-Addressing module or if I should create my own module.
> 
> Thanks!
> 
> Fabian
> 
> 




signature.asc
Description: OpenPGP digital signature


RE: [axis2] wsdl2java exception after updating to 1.00 release

2006-05-09 Thread Sebastian Szczygiel








Hello,

 

Using the Axis2 1.0 release I get an exception while
executing the WSDL2Java tool.

 

BUT: exact the same schema files worked fine with all
previous Axis2 versions including 0.95 release.

 

Any ideas what’s wrong?

 

Regards,

Sebastian

 

 

 

Retrieving schema at 'file:///C:/foo.xsd', relative to
'file:/C://'.

Retrieving schema at foo.xsd', relative to 'file:/C:/ foo.xsd'.

Retrieving schema at ‘bla.xsd', relative to
'file:/C:/bla.xsd'.

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

  at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)

  at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

  at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

  at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)

  at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)

  ... 2 more

Caused by: java.lang.reflect.InvocationTargetException

  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at
java.lang.reflect.Method.invoke(Method.java:585)

  at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:83)

  ... 3 more

Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: error: Problem parsing referenced XML
resource - C:\bla.xsd:1:1: error: Unexpected end of file after null

  at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)

  ... 8 more

Caused by: org.apache.xmlbeans.XmlException: error:
Problem parsing referenced XML resource - C:\foo.xsd:1:1: error: Unexpected end
of file after null

  at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)

  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at
java.lang.reflect.Method.invoke(Method.java:585)

  at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)

  at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)

  ... 8 more

Java Result: 1

 

 

 

 

 








Re: WSDL soap-adress not correctly set by Axis2 1.0 webapp

2006-05-09 Thread Deepal Jayasinghe
I think this a bug in Axis2 , and need to fix in next version. So pls
create a JIRA so that we will not forget this.

Sébastien Arod wrote:

> Yes that's it.
> In fact I'm testing axis2 (I used 0.95 before) so I renamed the war to
> axis2_1.0.war.
>
> And then I get the WSDL from
> http://localhost:8080/axis2_1.0/services/MyService?wsdl
>
> The wsdl:service tag is
> 
>  name="MyServiceSOAP11port0">
> http://localhost:8080/axis2/services/MyService"; />
> 
>  name="MyServiceSOAP12port0">
>  location="http://localhost:8080/axis2/services/MyService"; />
> 
>  name="ClientOracleHttpport0">
> http://localhost:8080/axis2/rest/MyService"; />
> 
> 
>
>
> robert lazarski wrote :
>
>> Let me try and understand. You have:
>>
>> http://localhost:8080/axis2/services/MyService";
>>
>> But now you want to create your own webapp:
>>
>> http://localhost:8080/myWebApp/services/MyService
>> "
>>
>> Is that correct? If so, you do this via:
>>
>> cp axis2.war myWebApp.war
>>
>> ?
>>
>> Robert
>> http://www.braziloutsource.com/
>>
>>
>>
>> On 5/5/06, *Sébastien Arod* <[EMAIL PROTECTED]
>> > wrote:
>>
>> When I deploy a service to Axis2 webapp
>> The soapaddress is set by Axis2 to > location="http://localhost:8080/axis2/services/MyService"/>
>> that's fine.
>> However if I changed Axis2 webapp name to a other name the
>> soapaddress
>> is still set to http://localhost:8080/axis2/services/MyService so
>> obviously the client can't find the Service (404 Error).
>>
>> Is there a way to configure that or is it a bug ?
>>
>> Thanks
>> Sebastien
>>
>>
>

-- 
Thanks,
Deepal

~Future is Open~ 




Re: [Axis2][1.0] Handling HTTP 500 errors for input only requests!

2006-05-09 Thread Ali Sadik Kumlali
Hi,

Does anyone have a solution or knowledge about this? It's really a big
problem as it can cause message loss. For example, if request doesn't
pass the security check, service sends a soap fault back wrapped in
HTTP 500. However, generated client code doesn't do anything with it.
Therefore, client application assumes that its request accepted. In
this scenario, neither the client nor the server knows the problem
since there is no exception thrown in either side.

It would be great, if someone was kind enough to respond my post.

Thanks in advance.

Ali Sadik Kumlali

--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Hi again,
> 
> I've found that org.apache.axis2.transport.http.AbstractHTTPSender
> really doesn't care about the HTTP status code returned by the
> service.
> Here is the code:
> 
> -
> // org.apache.axis2.transport.http.AbstractHTTPSender
> protected void executeMethod(...) throws IOException {
> HostConfiguration config = this.getHostConfiguration(...);
> msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);
> 
> ...
> 
> // ---
> // executeMethod returns back 202, 500, etc. but
> // it is not handled!
> // ---
> httpClient.executeMethod(config, method);
> }
> -
> 
> Is it on purpose? If yes, could you please answer my previous
> questions?
> 
> Thanks a lot.
> 
> Ali Sadik Kumlali
> 
> 
> --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> > 
> > The subject may seem contradictory, as it has both "input only" and
> > "return" words together :)
> > 
> > Here is the scenario:
> > - In my WSDL, all the operations have input message only.
> Therefore,
> > I
> > assume that I have "input only" services. 
> > - WSDL2Java generates *MessageReceiverInOnly as expected.
> Therefore,
> > I
> > beleive, my first assumption is confirmed.
> > - I add InflowSecurity in service.xml. Therefore, my service
> requires
> > security headers.
> > - I don't add OutflowSecurity in the axis2.xml at the client side.
> > (This is made deliberately to cause the server throwing "missing
> > security headers" exception.)
> > - I send request by calling generated test code.
> > - All the messages goes through TCP/IP Monitor.
> > - Request doesn't have security headers as expected.
> > - Server sends a SOAPFault back to the client. (HTTP header says
> > HTTP/1.1 500 Internal Server Error)
> > - However, client doesn't do anything with this exception, although
> > it
> > successfully receives the whole message.
> > 
> > Here are the questions:
> > - Is this expected behavior?
> >   - If yes, why the server send soap fault for the in-only message?
> > - Does the client only wait for *any* HTTP response without
> actually
> > caring about what the header is? Or, does it behave differently but
> > not
> > for HTTP 500?
> > - I saw the ReplyTo header in the request. Spec says ReplyTo is
> > optional for in-only messages. What purposes Axis2 set it for?
> > 
> > 
> > Thanks for your reading efforts :)
> > 
> > Ali Sadik Kumlali
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


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


Re: [axis2] How would you do this?

2006-05-09 Thread Siamak Haschemi

Hi Dave,

thank you for trying to help me!
I attached my WSDL file which uses a abstract-type and a extension. The 
WSDL file validates fine with the Eclipse WTP Validator.


My Service directory structure is the folloging:

webapps/axis2/WEB-INF/services
 inheritance
   META-INF
 services.xml
 inheritance.wsdl
   org
 apache
   ...
 example
   ...
 w3
   ...
 xmlsoap
   ..
   schemaorg_apache_xmlbeans
  ...
  
So I already have the generated files in my classpath. I also tried to 
package them in a jar and place it under services/inheritance/lib but 
that didn't help.


I don't want to do crazy things with axis2 ;-)

I hope that I have some errors in my WSDL file because I think that the 
building of my service is correct.



By the way:
I know that this will not help much but I'll show the Exception that 
occured on the serverside:


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



soapenv:Client
Data binding error

org.apache.axis2.AxisFault: Data binding error; nested 
exception is:

   java.lang.RuntimeException: Data binding error
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
   at 
org.apache.axis2.InheritanceMessageReceiverInOut.invokeBusinessLogic(InheritanceMessageReceiverInOut.java:66)
   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: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(Thread.java:595)
Caused by: java.lang.RuntimeException: Data binding error
   at 
org.apache.axis2.InheritanceMessageReceiverInOut.fromOM(InheritanceMessageReceiverInOut.java:158)
   at 
org.apache.axis2.InheritanceMessageReceiverInOut.invokeBusinessLogic(InheritanceMessageReceiverInOut.java:50)

   ... 20 more
Caused by: java.lang.NullPointerException
   at 
org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3041)
   at 
org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3058)
   at 
org.apache.xmlbeans.impl.store.Locale.doNamespaces(Locale.java:900)
   at 
org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1135)
   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
   at 
org.example.www.inheritance.SaveRequestDocument$Factory.parse(SaveRequestDocument.java:128)
   at 
org.apache.axis2.InheritanceMessageReceiverInOut.fromOM(InheritanceMessageReceiverInOut.java:137)

   ... 21 more







Thank you very much,

Siamak Haschemi


Dave MacLean schrieb:

Hi Siamak,
You should be able to use extensions with xmlbeans and axis2 no problem.
I've managed to get a very similar scenario working here.  One important
point is to make sure all of the generated xml beans classes are also
included in your classpath somewhere (I jar them all up in a separate
jar).  Without those, I was also getting a databinding error.

If you want to post your wsdl I wouldn't mind taking a quick look.

-Dave

-Original Message-
From: Siamak Haschemi [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 08, 2006 12:36 PM

To: axis-user@ws.apache.org
Subject: [axis2] How would you do this?

Hello to all.

I'll be happy if someone could help 

Re: Axis 1.0 throws an exception while providing WSDL

2006-05-09 Thread Sébastien Arod

Bug reported http://issues.apache.org/jira/browse/AXIS2-676

Davanum Srinivas a écrit :
Please log a bug report (http://issues.apache.org/jira/) and upload 
your wsdl.


thanks,
dims

On 5/5/06, Sébastien Arod <[EMAIL PROTECTED]> wrote:

 Steve Barham a écrit :
 I create my WSDL with JAXP/DOM : Here is the java code to write DOM
document to file

 Transformer xformer = 
TransformerFactory.newInstance().newTransformer();

 xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
 OutputStream os = new FileOutputStream(getWSDLFile());
 Writer writer = new OutputStreamWriter(os, "UTF8");
//$NON-NLS-1$
 xformer.transform(new DOMSource(mDocument), new StreamResult(writer));
 os.close();

 Furthermore I check the generated XML file with XML Schema Validator
(http://www.w3.org/2001/03/webdata/xsv) that doesn't find
any errors.
 I can send you the WSDL if it can help.

 Seb


 Do you have an XML encoding declaration at the top of your WSDL?

eg. 

Chances are that you are missing an encoding declaration (so the parser
defaults to UTF-8 encoding), and are using a non-UTF-8 encoding (eg.
ISO-8859-*).

UTF-8 uses between 1 and 4 bytes to encode a character, and uses the 
high

order bit of the first byte to indicate multibyte characters. So if your
actual encoding is a single byte per character, and uses characters 
beyond

127, then you will run into this problem.

What editor and environment did you use to produce the WSDL?

steve






 I coded an axis2 service that I put in the Axis2 webapp.

 The WSDL (UTF-8 encoded) in the aar contains accents (e.g.
"prénom") in the XSD element annotations.
 When I try to get WSDL from deployed service (MyService?wsdl) an
Exception is thrown :
 javax.servlet.ServletException:
com.ctc.wstx.exc.WstxIOException: Invalid
UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is:
 org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxIOException:
Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
cause mère org.apache.axis2.AxisFault:
com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte
0x6e (at char
#1999, byte #-1); nested exception is: org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte
0x6e (at char
#1999, byte #-1)
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558)
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144) 

org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89) 


org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
It's seems
to me that's a bug cause my WSDL is a valid XML file.








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