Re: Problem using an AXIS2 client on Oracle Application Server

2008-08-20 Thread Patrick Houbaux




Many thanks David ... this is the
solution!
In the deployment scenario (the 3rd stage when deploying a war in OAS),
we need to specify to search the local classes first.

Here is the extract from the OAS docs:
"Specifying search-local-classes-first at Deployment Time

The following example illustrates how to set the
search-local-classes-first attribute in the orion-web.xml file
generated for the Web module at deployment time, using the Application
Server Control Console.

   1.Select Applications>Deploy to launch the Application Server
Control Console deployment wizard.
   2.Supply the path to the application in the first page of the wizard.
   3.Specify the application name and supply any context URI mappings
in the second page.
   4.Click Configure Class Loading in the third page of the wizard
(Deploy: Deployment Settings).
   5.Under Configure Web Module Class Loaders, check the Search Local
Classes First checkbox next to the name of the Web module containing
the local JAR file to use.
   6.Optionally click the Save Deployment Plan button, and save the
plan for reuse."

Thanks again for having put me on track on this.

Cheers,
Patrick.

David Ojeda wrote:

  Hello,

You should configure your deployment to prefer web-inf classes rather than 
classes of OAS. I am not sure how this is configured but I think that it could 
be the solution you are looking for

On Wednesday 20 August 2008 02:04:53 pm Elton Kong wrote:
  
  
Hi, sorry I can't offer any help on this but I too had the same issue
when trying to do this and would love to learn the fix, thanks!

Elton

Patrick Houbaux wrote:


  Erratum: the correct version of OAS I'm using is 10.1.3.1.0

Patrick.

Patrick Houbaux wrote:
  
  
Hi all,

I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which
work great when I use it from a java standalone application.

I'm also calling the same piece of code from a jsp which is part of a
web application packaged in .war file and deployed on an Oracle
Application Server 10.3.1.x using the admin console. When I hit this
jsp page I'm getting the following exception for which I'm currently
having a hard time to understand why:

java.lang.NullPointerException
org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944)
org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132)
org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172)
org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304)
org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295)
org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase
.java:1907)

org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:195
4)

org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterizati
on(Unknown Source)
[...]

The war file contains all the axis-bin jars in the WEB-INF/lib folder.

Does anybody knows if there is a conflict between one (or more) of
the axis jars and the one in OC4J ? If yes, how can I solve that? If
no, what could be the root cause of that kind of problem?

Thanks for any help on this.

Cheers,
Patrick.

  
  

  


-- 


----------
| Patrick Houbaux
| Senior Consultant
| Eurostep SARLEmail: [EMAIL PROTECTED]
| PromopoleMobile: +33 611 192 943
| 5 rue Maurice Thorez Fax: +33 130 510 373
| FR-78190 Trappes URL: http://www.eurostep.com
| FRANCE   Skype name: phoubaux
---



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

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



Re: Problem using an AXIS2 client on Oracle Application Server

2008-08-20 Thread Patrick Houbaux

More info on this:
The very same .war deployed on Tomcat 6.0.13 works fine! Thanks for any 
help for making this working on OAS 10.1.3.1.0.


Cheers,
Patrick.

Patrick Houbaux wrote:

Hi all,

I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which 
work great when I use it from a java standalone application.


I'm also calling the same piece of code from a jsp which is part of a 
web application packaged in .war file and deployed on an Oracle 
Application Server 10.3.1.x using the admin console. When I hit this 
jsp page I'm getting the following exception for which I'm currently 
having a hard time to understand why:


java.lang.NullPointerException
org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944)
org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132)
org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172)
org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304)
org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295)
org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase.java:1907)
org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:1954)
org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterization(Unknown 
Source)

[...]

The war file contains all the axis-bin jars in the WEB-INF/lib folder.

Does anybody knows if there is a conflict between one (or more) of the 
axis jars and the one in OC4J ? If yes, how can I solve that? If no, 
what could be the root cause of that kind of problem?


Thanks for any help on this.

Cheers,
Patrick.



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


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



Re: Problem using an AXIS2 client on Oracle Application Server

2008-08-20 Thread Patrick Houbaux

Erratum: the correct version of OAS I'm using is 10.1.3.1.0

Patrick.

Patrick Houbaux wrote:

Hi all,

I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which 
work great when I use it from a java standalone application.


I'm also calling the same piece of code from a jsp which is part of a 
web application packaged in .war file and deployed on an Oracle 
Application Server 10.3.1.x using the admin console. When I hit this 
jsp page I'm getting the following exception for which I'm currently 
having a hard time to understand why:


java.lang.NullPointerException
org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944)
org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132)
org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172)
org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304)
org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295)
org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase.java:1907)
org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:1954)
org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterization(Unknown 
Source)

[...]

The war file contains all the axis-bin jars in the WEB-INF/lib folder.

Does anybody knows if there is a conflict between one (or more) of the 
axis jars and the one in OC4J ? If yes, how can I solve that? If no, 
what could be the root cause of that kind of problem?


Thanks for any help on this.

Cheers,
Patrick.



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


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



Problem using an AXIS2 client on Oracle Application Server

2008-08-20 Thread Patrick Houbaux




Hi all,

I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which
work great when I use it from a java standalone application.

I'm also calling the same piece of code from a jsp which is part of a
web application packaged in .war file and deployed on an Oracle
Application Server 10.3.1.x using the admin console. When I hit this
jsp page I'm getting the following exception for which I'm currently
having a hard time to understand why:

java.lang.NullPointerException
org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944)
org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132)
org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172)
org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304)
org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295)
org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase.java:1907)
org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:1954)
org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterization(Unknown
Source)
[...]

The war file contains all the axis-bin jars in the WEB-INF/lib folder.

Does anybody knows if there is a conflict between one (or more) of the
axis jars and the one in OC4J ? If yes, how can I solve that? If no,
what could be the root cause of that kind of problem?

Thanks for any help on this.

Cheers,
Patrick.


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

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



Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread Patrick Houbaux
Thanks Paul and Keith! I was indeed passing the URL with ?wsdl ... my 
mistake ;)


Cheers,
Patrick.

Paul Fremantle wrote:

It seems maybe you are targeting the request against the WSDL url
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
not the SOAP URL
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface

I tried building a simple client (ADB not XMLBeans)

wsdl2java.bat -uri
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
-uw

I set it to go through a local TCPMON running as a proxy on port 
so I could see the XML in/out (you can comment that out if you like).

I didn't get a success --- because I have no clue what parameters to
send in. I got a fault back "empty string".

Here is the client

package defaultnamespace;

import java.rmi.RemoteException;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties;
import 
defaultnamespace.Update_BeamInterfaceInterfaceStub.ResultUpdate_BeamInterface;

public class Main {
public static void main(String[] args) throws RemoteException {

Update_BeamInterfaceInterfaceStub stub = new
Update_BeamInterfaceInterfaceStub();
ProxyProperties pp = new ProxyProperties();
pp.setProxyName("localhost");
pp.setProxyPort();


stub._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY, pp);
ResultUpdate_BeamInterface result = stub.executeWorkflow("a", "b", 
"c", 30.1);
System.out.println(result.getMass());
        
    }
}

Regards,

Paul

On 10/3/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote:
  

Hi all,

I have generated a client stub using WSDL2Java using XMLBeans against
the following WSDL apparently created with XFire:
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl

When I invoke the only method from this webservice with the AXIS2
generated stub I'm getting the following exception:

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope , but found definitions
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow(Update_BeamInterfaceInterfaceStub.java:144)
at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope , but found definitions
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:110)
at
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
... 6 more

What does it mean?
Are AXIS2 and XFire compatible?

To me it seems the XFire server doesn't return a correct SOAP message.
Am I right?

Thanks for any help.

Cheers,
Patrick.

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


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






  



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



Problem with AXIS2 client against an XFire server

2007-10-03 Thread Patrick Houbaux

Hi all,

I have generated a client stub using WSDL2Java using XMLBeans against 
the following WSDL apparently created with XFire:

http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl

When I invoke the only method from this webservice with the AXIS2 
generated stub I'm getting the following exception:


org.apache.axis2.AxisFault: First Element must contain the local name, 
Envelope , but found definitions

   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
   at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
   at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
   at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
   at 
defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow(Update_BeamInterfaceInterfaceStub.java:144)

   at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element 
must contain the local name, Envelope , but found definitions
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
   at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:110)
   at 
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
   at 
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)

   ... 6 more

What does it mean?
Are AXIS2 and XFire compatible?

To me it seems the XFire server doesn't return a correct SOAP message. 
Am I right?


Thanks for any help.

Cheers,
Patrick.

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


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



Re: [HELP!!!] [JIRA AXIS2-3215 created] was: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

2007-09-24 Thread Patrick Houbaux




Workaround found!

It seems that both problems are coming from the fact that I'm using
Soap With Attachment for another service in my web application (i.e. in
axis2.xml: the parameter enableSwA is set to true).
If I turn this to false for the client stubs I don't get anymore
exceptions and I don't have to to tweak the System.properties for the
proxy host anymore.

                Options options = stub._getServiceClient().getOptions();
   
options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_SWA,
org.apache.axis2.Constants.VALUE_FALSE);
                
Don't know if that is the correct fix but at least I can move on now ;)
... that was a hard one to figure out.

Cheers,
Patrick.

Patrick Houbaux wrote:

  
  More information on this:
  
Just found out that if the client stub is used in a servlet context for
which I managed to clear the system property for http.proxyHost it
works (meaning I don't get the For input string: "" message anymore)
and get the correct answer from the service host.
  
But as soon as I add the AxisServlet to my web.xml the same client fire
the second exception mentioned below (i.e. org.apache.axis2.AxisFault:
Transport
error: 415 Error: Unsupported Media Type).
  
That leads me to a basic question: Can an AXIS2 client stub live in a
web application which exposes other AXIS2 web services using the
AxisServlet?
  
If yes what is the recommended setup for the webapp folder? web.xml?
axis2.xml? and modules?
  
Please help me! I really need to have this working soon.
  
Cheers,
Patrick.
  
Patrick Houbaux wrote:
  

Interesting ... after further
investigations:

The first problem actually happens if the client stub is used inside a
simple web client that is not using the skeleton.

So it seems that the org.apache.axis2.AxisFault: For input string: "" 
issue is actually happening when the stub is used from a servlet
context and not happening from a standard java application.

What is wrong with this web service? Why the client stub doesn't work
in a servlet context?

Any idea?

Cheers,
Patrick.

Patrick Houbaux wrote:

  
  As I think there is a bug in
AXIS2
on this issue I created a JIRA one:
  https://issues.apache.org/jira/browse/AXIS2-3215
  
together with stubs/skeleton/test project.
  
Any help on this would be really appreciated as I'm currently blocked.
  
Cheers,
Patrick.
  
Patrick Houbaux wrote:
  


Hi Joe,

Well that I know and could have done it if that piece of code was not
part of AXIS2 libs ... not in my application :)

The real question is why AXIS2 detects a server proxy config while I'm
not using any ... i.e. when System.getProperty("http.proxyHost"`) is
set to "" by default  when running  AXIS2 in a servlet container. Hence
the idea of clearing this system property before invoking the stub.

Cheers,
Patrick.

Horninger, Joe (Contr) (Mission Systems) wrote:

  
  

  
  
  Patrick,
   
  I have a
simple solution for problem #1.  
You’re only checking for null.  What if you rewrite your if to if(port
!=
null && !””.equalsIgnoreCase(port) ).  That should fix the
NumberFormatException.  The Unable to sendViaPost to url issue may or
may not
be resolved with this…
   
  Cheers!
       
  Joe
   
  
  
  
  From:
Patrick Houbaux [mailto:[EMAIL PROTECTED]]
  
  Sent:
Wednesday,
September 19,
2007 9:07 AM
  To: axis-user@ws.apache.org
  Subject:
Strange
behavior with
AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""
  
   
  Hi all,
  
I have a weird problem that I am stuck with.
  
Here is the situation:
  
I have a web service client stub generated with wsdl2java using
xmlbeans which
works ok when I used it from a standalone application.
  
Now I have the need to use this client stub from an application server
(i.e.
tomcat + axis2_1_3) from which I'm exposing other web services as well
as this
one. So for this web service I have both the client stub and the server
skeleton on the server side (the skeleton is calling the client stub,
actually
passing through requests to the underlying server).
  
The problem: I'm getting the following exception
    
        org.apache.axis2.AxisFault: For input
string: "" on the client side and nothing on the server side.
  
When running the server in debug mode I found out that this exception
is
actually due to a NumberFormatException thrown by the following line in
org.apache.axis2.transport.http.ProxyConfiguration:
  
        String port =
System.getProperty(HTTP_PROXY_PORT); <-- port = "" 
    if (port 

Re: [HELP!!!] [JIRA AXIS2-3215 created] was: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

2007-09-21 Thread Patrick Houbaux




More information on this:

Just found out that if the client stub is used in a servlet context for
which I managed to clear the system property for http.proxyHost it
works (meaning I don't get the For input string: "" message anymore)
and get the correct answer from the service host.

But as soon as I add the AxisServlet to my web.xml the same client fire
the second exception mentioned below (i.e. org.apache.axis2.AxisFault:
Transport
error: 415 Error: Unsupported Media Type).

That leads me to a basic question: Can an AXIS2 client stub live in a
web application which exposes other AXIS2 web services using the
AxisServlet?

If yes what is the recommended setup for the webapp folder? web.xml?
axis2.xml? and modules?

Please help me! I really need to have this working soon.

Cheers,
Patrick.

Patrick Houbaux wrote:

  
  Interesting ... after further
investigations:
  
The first problem actually happens if the client stub is used inside a
simple web client that is not using the skeleton.
  
So it seems that the org.apache.axis2.AxisFault: For input string: "" 
issue is actually happening when the stub is used from a servlet
context and not happening from a standard java application.
  
What is wrong with this web service? Why the client stub doesn't work
in a servlet context?
  
Any idea?
  
Cheers,
Patrick.
  
Patrick Houbaux wrote:
  

As I think there is a bug in
AXIS2
on this issue I created a JIRA one:
https://issues.apache.org/jira/browse/AXIS2-3215

together with stubs/skeleton/test project.

Any help on this would be really appreciated as I'm currently blocked.

Cheers,
Patrick.

Patrick Houbaux wrote:

  
  
  Hi Joe,
  
Well that I know and could have done it if that piece of code was not
part of AXIS2 libs ... not in my application :)
  
The real question is why AXIS2 detects a server proxy config while I'm
not using any ... i.e. when System.getProperty("http.proxyHost"`) is
set to "" by default  when running  AXIS2 in a servlet container. Hence
the idea of clearing this system property before invoking the stub.
  
Cheers,
Patrick.
  
Horninger, Joe (Contr) (Mission Systems) wrote:
  





Patrick,
 
I have a
simple solution for problem #1.  
You’re only checking for null.  What if you rewrite your if to if(port
!=
null && !””.equalsIgnoreCase(port) ).  That should fix the
NumberFormatException.  The Unable to sendViaPost to url issue may or
may not
be resolved with this…
 
Cheers!
     
    Joe
 



From:
Patrick Houbaux [mailto:[EMAIL PROTECTED]]

Sent: Wednesday,
September 19,
2007 9:07 AM
To: axis-user@ws.apache.org
Subject: Strange
behavior with
AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

 
Hi all,

I have a weird problem that I am stuck with.

Here is the situation:

I have a web service client stub generated with wsdl2java using
xmlbeans which
works ok when I used it from a standalone application.

Now I have the need to use this client stub from an application server
(i.e.
tomcat + axis2_1_3) from which I'm exposing other web services as well
as this
one. So for this web service I have both the client stub and the server
skeleton on the server side (the skeleton is calling the client stub,
actually
passing through requests to the underlying server).

The problem: I'm getting the following exception
    
        org.apache.axis2.AxisFault: For input
string: "" on the client side and nothing on the server side.

When running the server in debug mode I found out that this exception
is
actually due to a NumberFormatException thrown by the following line in
org.apache.axis2.transport.http.ProxyConfiguration:

        String port =
System.getProperty(HTTP_PROXY_PORT); <-- port = "" 
    if (port != null) {
   
this.setProxyPort(Integer.parseInt(port));  <-- ERROR here
    }

But this did not happen when using the client stub directly from a
standalone
application.

Debugging further I noticed the following difference:
In both case the method
org.apache.axis2.transport.http.AbstractHTTPSender#getHostConfiguration
is
called but the following test is false in case of the standalone
application
and true in case of the server application:

        if
(ProxyConfiguration.isProxyEnabled(msgCtx,targetURL)) {
   
log.debug("ProxyConfiguration");
   
ProxyConfiguration proxyConfiguration = new ProxyConfiguration();
   
proxyConfiguration.configure(msgCtx,client,config);
    }

So I thought that clearing the System property ("http.proxyHost")
would do the trick in the server skeleto

Re: [JIRA AXIS2-3215 created] was: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

2007-09-20 Thread Patrick Houbaux




Interesting ... after further
investigations:

The first problem actually happens if the client stub is used inside a
simple web client that is not using the skeleton.

So it seems that the org.apache.axis2.AxisFault: For input string: "" 
issue is actually happening when the stub is used from a servlet
context and not happening from a standard java application.

What is wrong with this web service? Why the client stub doesn't work
in a servlet context?

Any idea?

Cheers,
Patrick.

Patrick Houbaux wrote:

  
  As I think there is a bug in
AXIS2
on this issue I created a JIRA one:
  https://issues.apache.org/jira/browse/AXIS2-3215
  
together with stubs/skeleton/test project.
  
Any help on this would be really appreciated as I'm currently blocked.
  
Cheers,
Patrick.
  
Patrick Houbaux wrote:
  


Hi Joe,

Well that I know and could have done it if that piece of code was not
part of AXIS2 libs ... not in my application :)

The real question is why AXIS2 detects a server proxy config while I'm
not using any ... i.e. when System.getProperty("http.proxyHost"`) is
set to "" by default  when running  AXIS2 in a servlet container. Hence
the idea of clearing this system property before invoking the stub.

Cheers,
Patrick.

Horninger, Joe (Contr) (Mission Systems) wrote:

  
  

  
  
  Patrick,
   
  I have a
simple solution for problem #1.  
You’re only checking for null.  What if you rewrite your if to if(port
!=
null && !””.equalsIgnoreCase(port) ).  That should fix the
NumberFormatException.  The Unable to sendViaPost to url issue may or
may not
be resolved with this…
   
  Cheers!
   
  Joe
       
  
  
  
  From:
Patrick Houbaux [mailto:[EMAIL PROTECTED]]
  
  Sent: Wednesday,
September 19,
2007 9:07 AM
  To: axis-user@ws.apache.org
  Subject: Strange
behavior with
AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""
  
   
  Hi all,
  
I have a weird problem that I am stuck with.
  
Here is the situation:
  
I have a web service client stub generated with wsdl2java using
xmlbeans which
works ok when I used it from a standalone application.
  
Now I have the need to use this client stub from an application server
(i.e.
tomcat + axis2_1_3) from which I'm exposing other web services as well
as this
one. So for this web service I have both the client stub and the server
skeleton on the server side (the skeleton is calling the client stub,
actually
passing through requests to the underlying server).
  
The problem: I'm getting the following exception
    
        org.apache.axis2.AxisFault: For input
string: "" on the client side and nothing on the server side.
  
When running the server in debug mode I found out that this exception
is
actually due to a NumberFormatException thrown by the following line in
org.apache.axis2.transport.http.ProxyConfiguration:
  
        String port =
System.getProperty(HTTP_PROXY_PORT); <-- port = "" 
    if (port != null) {
   
this.setProxyPort(Integer.parseInt(port));  <-- ERROR here
    }
  
But this did not happen when using the client stub directly from a
standalone
application.
  
Debugging further I noticed the following difference:
In both case the method
org.apache.axis2.transport.http.AbstractHTTPSender#getHostConfiguration
is
called but the following test is false in case of the standalone
application
and true in case of the server application:
  
        if
(ProxyConfiguration.isProxyEnabled(msgCtx,targetURL)) {
   
log.debug("ProxyConfiguration");
   
ProxyConfiguration proxyConfiguration = new ProxyConfiguration();
   
proxyConfiguration.configure(msgCtx,client,config);
    }
  
So I thought that clearing the System property ("http.proxyHost")
would do the trick in the server skeleton before invoking the method
from the
client stub but ... this leads to another exception (this time on the
server
side) which I don't really understand:
  
        [INFO] Unable to sendViaPost to url[http://vivace.qub.ac.uk/MassService.asmx]
        org.apache.axis2.AxisFault: Transport
error: 415 Error: Unsupported Media Type
    at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)
    at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
    at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
    at
org.apache.axis2.description.OutInAxisOp

Re: [JIRA AXIS2-3215 created] was: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

2007-09-20 Thread Patrick Houbaux




As I think there is a bug in AXIS2
on this issue I created a JIRA one:
https://issues.apache.org/jira/browse/AXIS2-3215

together with stubs/skeleton/test project.

Any help on this would be really appreciated as I'm currently blocked.

Cheers,
Patrick.

Patrick Houbaux wrote:

  
  
  Hi Joe,
  
Well that I know and could have done it if that piece of code was not
part of AXIS2 libs ... not in my application :)
  
The real question is why AXIS2 detects a server proxy config while I'm
not using any ... i.e. when System.getProperty("http.proxyHost"`) is
set to "" by default  when running  AXIS2 in a servlet container. Hence
the idea of clearing this system property before invoking the stub.
  
Cheers,
Patrick.
  
Horninger, Joe (Contr) (Mission Systems) wrote:
  





Patrick,
 
I have a
simple solution for problem #1.  
You’re only checking for null.  What if you rewrite your if to if(port
!=
null && !””.equalsIgnoreCase(port) ).  That should fix the
NumberFormatException.  The Unable to sendViaPost to url issue may or
may not
be resolved with this…
 
Cheers!
 
    Joe
     
    


From:
Patrick Houbaux [mailto:[EMAIL PROTECTED]]

Sent: Wednesday,
September 19,
2007 9:07 AM
To:
axis-user@ws.apache.org
Subject: Strange
behavior with
AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

 
Hi all,

I have a weird problem that I am stuck with.

Here is the situation:

I have a web service client stub generated with wsdl2java using
xmlbeans which
works ok when I used it from a standalone application.

Now I have the need to use this client stub from an application server
(i.e.
tomcat + axis2_1_3) from which I'm exposing other web services as well
as this
one. So for this web service I have both the client stub and the server
skeleton on the server side (the skeleton is calling the client stub,
actually
passing through requests to the underlying server).

The problem: I'm getting the following exception
    
        org.apache.axis2.AxisFault: For input
string: "" on the client side and nothing on the server side.

When running the server in debug mode I found out that this exception
is
actually due to a NumberFormatException thrown by the following line in
org.apache.axis2.transport.http.ProxyConfiguration:

        String port =
System.getProperty(HTTP_PROXY_PORT); <-- port = "" 
    if (port != null) {
   
this.setProxyPort(Integer.parseInt(port));  <-- ERROR here
    }

But this did not happen when using the client stub directly from a
standalone
application.

Debugging further I noticed the following difference:
In both case the method
org.apache.axis2.transport.http.AbstractHTTPSender#getHostConfiguration
is
called but the following test is false in case of the standalone
application
and true in case of the server application:

        if
(ProxyConfiguration.isProxyEnabled(msgCtx,targetURL)) {
   
log.debug("ProxyConfiguration");
   
ProxyConfiguration proxyConfiguration = new ProxyConfiguration();
   
proxyConfiguration.configure(msgCtx,client,config);
    }

So I thought that clearing the System property ("http.proxyHost")
would do the trick in the server skeleton before invoking the method
from the
client stub but ... this leads to another exception (this time on the
server
side) which I don't really understand:

        [INFO] Unable to sendViaPost to url[http://vivace.qub.ac.uk/MassService.asmx]
        org.apache.axis2.AxisFault: Transport
error: 415 Error: Unsupported Media Type
    at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)
    at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
    at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at
uk.ac.qub.vivace.modelservice.MassServiceStub.GetPartMass(MassServiceStub.java:250)

I'm now short of ideas on how to interpret this and would really
appreciate some
help.
Any idea? What am I missing?

Cheers,
Patrick.


This message contains information that may be privileged or
confidential and is the property of Eurostep Group. It is intended only
fo

Re: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

2007-09-19 Thread Patrick Houbaux




Hi Joe,

Well that I know and could have done it if that piece of code was not
part of AXIS2 libs ... not in my application :)

The real question is why AXIS2 detects a server proxy config while I'm
not using any ... i.e. when System.getProperty("http.proxyHost"`) is
set to "" by default  when running  AXIS2 in a servlet container. Hence
the idea of clearing this system property before invoking the stub.

Cheers,
Patrick.

Horninger, Joe (Contr) (Mission Systems) wrote:

  
  

  
  
  Patrick,
   
  I have a
simple solution for problem #1.  
You’re only checking for null.  What if you rewrite your if to if(port
!=
null && !””.equalsIgnoreCase(port) ).  That should fix the
NumberFormatException.  The Unable to sendViaPost to url issue may or
may not
be resolved with this…
   
  Cheers!
   
  Joe
   
  
  
  
  From:
Patrick Houbaux [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday,
September 19,
2007 9:07 AM
  To:
axis-user@ws.apache.org
  Subject: Strange
behavior with
AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""
  
   
  Hi all,
  
I have a weird problem that I am stuck with.
  
Here is the situation:
  
I have a web service client stub generated with wsdl2java using
xmlbeans which
works ok when I used it from a standalone application.
  
Now I have the need to use this client stub from an application server
(i.e.
tomcat + axis2_1_3) from which I'm exposing other web services as well
as this
one. So for this web service I have both the client stub and the server
skeleton on the server side (the skeleton is calling the client stub,
actually
passing through requests to the underlying server).
  
The problem: I'm getting the following exception
    
        org.apache.axis2.AxisFault: For input
string: "" on the client side and nothing on the server side.
  
When running the server in debug mode I found out that this exception
is
actually due to a NumberFormatException thrown by the following line in
org.apache.axis2.transport.http.ProxyConfiguration:
  
        String port =
System.getProperty(HTTP_PROXY_PORT); <-- port = "" 
    if (port != null) {
   
this.setProxyPort(Integer.parseInt(port));  <-- ERROR here
    }
  
But this did not happen when using the client stub directly from a
standalone
application.
  
Debugging further I noticed the following difference:
In both case the method
org.apache.axis2.transport.http.AbstractHTTPSender#getHostConfiguration
is
called but the following test is false in case of the standalone
application
and true in case of the server application:
  
        if
(ProxyConfiguration.isProxyEnabled(msgCtx,targetURL)) {
   
log.debug("ProxyConfiguration");
   
ProxyConfiguration proxyConfiguration = new ProxyConfiguration();
   
proxyConfiguration.configure(msgCtx,client,config);
    }
  
So I thought that clearing the System property ("http.proxyHost")
would do the trick in the server skeleton before invoking the method
from the
client stub but ... this leads to another exception (this time on the
server
side) which I don't really understand:
  
        [INFO] Unable to sendViaPost to url[http://vivace.qub.ac.uk/MassService.asmx]
        org.apache.axis2.AxisFault: Transport
error: 415 Error: Unsupported Media Type
    at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)
    at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
    at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at
uk.ac.qub.vivace.modelservice.MassServiceStub.GetPartMass(MassServiceStub.java:250)
  
I'm now short of ideas on how to interpret this and would really
appreciate some
help.
Any idea? What am I missing?
  
Cheers,
Patrick.
  

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

Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: ""

2007-09-19 Thread Patrick Houbaux




Hi all,

I have a weird problem that I am stuck with.

Here is the situation:

I have a web service client stub generated with wsdl2java using
xmlbeans which works ok when I used it from a standalone application.

Now I have the need to use this client stub from an application server
(i.e. tomcat + axis2_1_3) from which I'm exposing other web services as
well as this one. So for this web service I have both the client stub
and the server skeleton on the server side (the skeleton is calling the
client stub, actually passing through requests to the underlying
server).

The problem: I'm getting the following exception
    
        org.apache.axis2.AxisFault: For input string: "" on the client
side and nothing on the server side.

When running the server in debug mode I found out that this exception
is actually due to a NumberFormatException thrown by the following line
in org.apache.axis2.transport.http.ProxyConfiguration:

        String port = System.getProperty(HTTP_PROXY_PORT); <-- port
= "" 
    if (port != null) {
    this.setProxyPort(Integer.parseInt(port));  <-- ERROR
here
    }

But this did not happen when using the client stub directly from a
standalone application.

Debugging further I noticed the following difference:
In both case the method
org.apache.axis2.transport.http.AbstractHTTPSender#getHostConfiguration
is called but the following test is false in case of the standalone
application and true in case of the server application:

        if (ProxyConfiguration.isProxyEnabled(msgCtx,targetURL)) {
    log.debug("ProxyConfiguration");
    ProxyConfiguration proxyConfiguration = new
ProxyConfiguration();
    proxyConfiguration.configure(msgCtx,client,config);
    }

So I thought that clearing the System property ("http.proxyHost") would
do the trick in the server skeleton before invoking the method from the
client stub but ... this leads to another exception (this time on the
server side) which I don't really understand:

        [INFO] Unable to sendViaPost to
url[http://vivace.qub.ac.uk/MassService.asmx]
        org.apache.axis2.AxisFault: Transport error: 415 Error:
Unsupported Media Type
    at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)
    at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
    at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at
uk.ac.qub.vivace.modelservice.MassServiceStub.GetPartMass(MassServiceStub.java:250)

I'm now short of ideas on how to interpret this and would really
appreciate some help.
Any idea? What am I missing?

Cheers,
Patrick.


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

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



Re: [AXIS2-1.2-RC2] Data Binding Error

2007-04-19 Thread Patrick Houbaux




Done:
https://issues.apache.org/jira/browse/AXIS2-2559

Cheers,
Patrick.

Deepal Jayasinghe wrote:

  Hi Patrick ;

Please create a JIRA and attach
- wsdl
- service aar
-client code

Thanks
Deepal

  
  
Hi all,

I generated the server side code with AXIS2-1.2-RC2 (with xmlbeans)
from my WSDL,  deploy my service on my servlet container and I got the
following error when I try to point to:

http://localhost:8080/axis2/services/SystemManagement/GetProjects via
a browser
and got the same thing with a Java client:

org.apache.axis2.AxisFault: Data binding error
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at
org.plcs.www.plmservices.SystemManagementStub.GetProjects(SystemManagementStub.java:666)
at com.eurostep.ws.test.TestClient.main(TestClient.java:42)

This GetProjects method is not implemented, it's strickly the
generated code in the skeleton implementation. According to the code
It should throw an exception saying
"Please implement SystemManagementSkeleton#GetProjects"

Is that a bug in AXIS2-1.2-RC2? What could be wrong with my install?

Cheers,
Patrick.

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

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

  
  

  


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

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



[AXIS2-1.2-RC2] Data Binding Error

2007-04-18 Thread Patrick Houbaux




Hi all,

I generated the server side code with AXIS2-1.2-RC2 (with xmlbeans)
from my WSDL,  deploy my service on my servlet container and I got the
following error when I try to point to:

http://localhost:8080/axis2/services/SystemManagement/GetProjects via a
browser 
and got the same thing with a Java client:

org.apache.axis2.AxisFault: Data binding error
    at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
    at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
    at
org.plcs.www.plmservices.SystemManagementStub.GetProjects(SystemManagementStub.java:666)
    at com.eurostep.ws.test.TestClient.main(TestClient.java:42)

This GetProjects method is not implemented, it's strickly the generated
code in the skeleton implementation. According to the code It should
throw an exception saying 
"Please implement SystemManagementSkeleton#GetProjects"

Is that a bug in AXIS2-1.2-RC2?
What could be wrong with my install?

Cheers,
Patrick.


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

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



Re: AXIS2 - Multiple client stubs overlapping

2007-04-18 Thread Patrick Houbaux




Amila,

I could recreate the problem I had with ADB on AXIS2-1.2-RC2:

When running a little I end up with the following exception:
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
    at
org.plcs.www.plmservices.QueryManagementStub.fromOM(QueryManagementStub.java:1692)
...
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
    at java.lang.String.substring(String.java:1768)
    at
org.plcs.www.plmservices.types.PLM_object$Factory.parse(PLM_object.java:378)

which appears in the generated code here:

public static PLM_object
parse(javax.xml.stream.XMLStreamReader reader) throws
java.lang.Exception{
    PLM_object object = new PLM_object();

    int event;
    java.lang.String nillableValue = null;
    java.lang.String prefix ="";
    java.lang.String namespaceuri ="";
    try {
    
    while (!reader.isStartElement() &&
!reader.isEndElement())
    reader.next();

    
    if
(reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
  java.lang.String fullTypeName =
reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
    "type");
  if (fullTypeName!=null){
Ln378---> Exception HERE!   java.lang.String
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
    nsPrefix = nsPrefix==null?"":nsPrefix;

    java.lang.String type =
fullTypeName.substring(fullTypeName.indexOf(":")+1);
    
    if (!"PLM_object".equals(type)){
    //find namespace for the prefix
    java.lang.String nsUri =
reader.getNamespaceContext().getNamespaceURI(nsPrefix);
    return
(PLM_object)org.plcs.www.system.ExtensionMapper.getTypeObject(
 nsUri,type,reader);
      }
    

  }

Cheers,
Patrick.


Patrick Houbaux wrote:

  
  I'm using AXIS2-1.2-RC2.
I did merge the WSDL as you suggested and everything works now as
expected. The performance problem was problably due to the fact that I
was obliged to generate the resources in separate resources folder for
each WSDL. The classloader might be for something in this as a bunch of
things are common to those resources.
  
If I remember correctly there was something wrong with inhenritance
when using ADB (The data type is really a complex one). I can try to
recreate the problem with ADB and open a JIRA issue when I got it.
  
Cheers,
Patrick.
  
Amila Suriarachchi wrote:
  

On 4/18/07, Patrick Houbaux <[EMAIL PROTECTED]>
wrote:

  Hello Amila,
  
I did try with other databinding framework, I actually started with ADB
but the type schema is a bit too complex for it so I changed to
xmlbeans which generate the java type data model correctly. 


What is the axis2 version you use? if you use Axis2 1.1.1 please try
with RC2. and if possible please create a jira with your wsdl.  


  I haven't
succeeded to make JiBX working (lack of experience from my side I guess
and the documentation is not really explicit on this).
  
I actually did more investigations and noticed that if I separate all
the resources (the binary) generated from each WSDL (using the -R
option) while all the sources are in the same output folder it works.
The only problem now is a performance problem which I don't know if
it's an AXIS2 problem or a server side problem yet (the server is .NET
based). I suspect an AXIS2 problem as .NET client do not have any
performance issues.


yes. generally xmlbeans and jaxb is slower than the adb and jibx. 



  When you suggest to merge the wsdl files in one, do you
mean that AXIS2
(xmbeans generation) supports several 
... in the wsdl?


yes.  but it will be there with the Axis2 1.2 which will release soon. 



  Cheers,
Patrick.
  
  
Amila Suriarachchi wrote:
  you also have the same problem as in 
http://issues.apache.org/jira/browse/AXIS2-2075

the only option i can see is to merge the two wsdl files and generate
the code once. 

Can you try out another databinding frame work?


On 4/17/07, Patrick Houbaux <[EMAIL PROTECTED]
> wrote:

  Hello,
  
I'm writing a client against several WSDL which are all sharing the
same schemas for types.
Let's say I have the following:
- WSDL1 using schema typeA and schema typeB
- WSDL2 using schema typeA and schema typeC
  
When I generate 

Re: AXIS2 - Multiple client stubs overlapping

2007-04-18 Thread Patrick Houbaux




I'm using AXIS2-1.2-RC2.
I did merge the WSDL as you suggested and everything works now as
expected. The performance problem was problably due to the fact that I
was obliged to generate the resources in separate resources folder for
each WSDL. The classloader might be for something in this as a bunch of
things are common to those resources.

If I remember correctly there was something wrong with inhenritance
when using ADB (The data type is really a complex one). I can try to
recreate the problem with ADB and open a JIRA issue when I got it.

Cheers,
Patrick.

Amila Suriarachchi wrote:

  
  On 4/18/07, Patrick Houbaux <[EMAIL PROTECTED]>
wrote:
  
Hello Amila,

I did try with other databinding framework, I actually started with ADB
but the type schema is a bit too complex for it so I changed to
xmlbeans which generate the java type data model correctly. 
  
  
What is the axis2 version you use? if you use Axis2 1.1.1 please try
with RC2. and if possible please create a jira with your wsdl. 
  
  
  
I haven't
succeeded to make JiBX working (lack of experience from my side I guess
and the documentation is not really explicit on this).

I actually did more investigations and noticed that if I separate all
the resources (the binary) generated from each WSDL (using the -R
option) while all the sources are in the same output folder it works.
The only problem now is a performance problem which I don't know if
it's an AXIS2 problem or a server side problem yet (the server is .NET
based). I suspect an AXIS2 problem as .NET client do not have any
performance issues.
  
  
yes. generally xmlbeans and jaxb is slower than the adb and jibx. 
  
  
  
When you suggest to merge the wsdl files in one, do you
mean that AXIS2
(xmbeans generation) supports several 
... in the wsdl?
  
  
yes.  but it will be there with the Axis2 1.2 which will release soon. 
  
  
  
Cheers,
Patrick.


Amila Suriarachchi wrote:
you also have the same problem as in 
  http://issues.apache.org/jira/browse/AXIS2-2075
  
the only option i can see is to merge the two wsdl files and generate
the code once. 
  
Can you try out another databinding frame work?
  
  
  On 4/17/07, Patrick Houbaux <[EMAIL PROTECTED]
  > wrote:
  
Hello,

I'm writing a client against several WSDL which are all sharing the
same schemas for types.
Let's say I have the following:
- WSDL1 using schema typeA and schema typeB
- WSDL2 using schema typeA and schema typeC

When I generate the client stub with AXIS2 (using xmlbeans bindings)
against WSDL1 and implement a small client using only this stub
everything works great.
When I start to generate the client stub with AXIS2 (using xmlbeans
binding) against WSDL2 in the same output folders where client stub for
WSDL1 was and run my small client without touching any lines  I get
some ClassCastException on the java type generated with AXIS2
(sources/resources were regenerated and overwritten against WSDL2).

I did repack the resources generated folder and added it to my project
classpath everytime I generated a new stub.

If anybody can advise on how to generate client stubs against several
WSDL sharing the same schema types, it would be really useful.

Thanks for any help.

I'm using AXIS2-1.2-RC2, and here are my settings for generating the
stubs:
generate.client.sm">
    
    
    
    
                        
                        
                        
                        
                        
                        
                        
                        
                        
     
   

generate.client.cm">
    
    
    
    
                        
                        
                        
                        
                        
                        
                        
                        
                        
     
   

I was wondering if using the option -uw would help in anyway.

Cheers,
Patrick.
 
This message contains information that may be
privileged or
confidential and is the property of Eurostep Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If
you receive this message in error, please notify the sender immediately
and delete all copies of this message. 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
-- 
Amila Suriarachchi,
WSO2 Inc.




This message contains information that may be privileged or
confidential and

Re: AXIS2 - Multiple client stubs overlapping

2007-04-18 Thread Patrick Houbaux




Hello Amila,

I did try with other databinding framework, I actually started with ADB
but the type schema is a bit too complex for it so I changed to
xmlbeans which generate the java type data model correctly. I haven't
succeeded to make JiBX working (lack of experience from my side I guess
and the documentation is not really explicit on this).

I actually did more investigations and noticed that if I separate all
the resources (the binary) generated from each WSDL (using the -R
option) while all the sources are in the same output folder it works.
The only problem now is a performance problem which I don't know if
it's an AXIS2 problem or a server side problem yet (the server is .NET
based). I suspect an AXIS2 problem as .NET client do not have any
performance issues.

When you suggest to merge the wsdl files in one, do you mean that AXIS2
(xmbeans generation) supports several 
... in the wsdl?

Cheers,
Patrick.

Amila Suriarachchi wrote:
you also have the same problem as in 
  http://issues.apache.org/jira/browse/AXIS2-2075
  
the only option i can see is to merge the two wsdl files and generate
the code once.
  
  
Can you try out another databinding frame work?
  
  
  On 4/17/07, Patrick Houbaux <[EMAIL PROTECTED]
  > wrote:
  
Hello,

I'm writing a client against several WSDL which are all sharing the
same schemas for types.
Let's say I have the following:
- WSDL1 using schema typeA and schema typeB
- WSDL2 using schema typeA and schema typeC

When I generate the client stub with AXIS2 (using xmlbeans bindings)
against WSDL1 and implement a small client using only this stub
everything works great.
When I start to generate the client stub with AXIS2 (using xmlbeans
binding) against WSDL2 in the same output folders where client stub for
WSDL1 was and run my small client without touching any lines  I get
some ClassCastException on the java type generated with AXIS2
(sources/resources were regenerated and overwritten against WSDL2).

I did repack the resources generated folder and added it to my project
classpath everytime I generated a new stub.

If anybody can advise on how to generate client stubs against several
WSDL sharing the same schema types, it would be really useful.

Thanks for any help.

I'm using AXIS2-1.2-RC2, and here are my settings for generating the
stubs:
generate.client.sm">
    
    
    
    
                        
                        
                        
                        
                        
                        
                        
                        
                        
     
   

generate.client.cm">
    
    
    
    
                        
                        
                        
                        
                        
                        
                        
                        
                        
     
   

I was wondering if using the option -uw would help in anyway.

Cheers,
Patrick.


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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
-- 
Amila Suriarachchi,
WSO2 Inc.


-- 


----------
| Patrick Houbaux
| Senior Consultant
| Eurostep ABEmail: [EMAIL PROTECTED]
| Drottninggatan 68  Mobile: +33 611 192 943
| SE-111 21 StockholmFax: +46 (0) 8-200 399
| Sweden URL: http://www.eurostep.com
|    Skype name: phoubaux
| Home address: 
| BAT A11 
| 12 Rue de Paris 
| F-78560 Le Port-Marly
| France
---



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

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



AXIS2 - Multiple client stubs overlapping

2007-04-17 Thread Patrick Houbaux




Hello,

I'm writing a client against several WSDL which are all sharing the
same schemas for types.
Let's say I have the following:
- WSDL1 using schema typeA and schema typeB
- WSDL2 using schema typeA and schema typeC

When I generate the client stub with AXIS2 (using xmlbeans bindings)
against WSDL1 and implement a small client using only this stub
everything works great.
When I start to generate the client stub with AXIS2 (using xmlbeans
binding) against WSDL2 in the same output folders where client stub for
WSDL1 was and run my small client without touching any lines  I get
some ClassCastException on the java type generated with AXIS2
(sources/resources were regenerated and overwritten against WSDL2).

I did repack the resources generated folder and added it to my project
classpath everytime I generated a new stub.

If anybody can advise on how to generate client stubs against several
WSDL sharing the same schema types, it would be really useful.

Thanks for any help.

I'm using AXIS2-1.2-RC2, and here are my settings for generating the
stubs:

    
    
    
    
                        
                        
                        
                        
                        
                        
                        
                        
                        
     
   


    
    
    
    
                        
                        
                        
                        
                        
                        
                        
                        
                        
     
   

I was wondering if using the option -uw would help in anyway.

Cheers,
Patrick.


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

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



Re: Re : Re : [Axis2] Axis2 1.2 RC2 Released

2007-04-05 Thread Patrick Houbaux




Check links in this message below ;)

Cheers,
Patrick.

Julien HENRY wrote:

  Can't manage to find 1.2-rc2 in releases. The latest release seems to be 1.1.

++

Julien

- Message d'origine 
De : Thilina Gunarathne <[EMAIL PROTECTED]>
À : axis-user@ws.apache.org
Envoyé le : Jeudi, 5 Avril 2007, 14h00mn 59s
Objet : Re: Re : [Axis2] Axis2 1.2 RC2 Released

Snapshots,
http://people.apache.org/repo/m2-snapshot-repository/

Releases,
http://people.apache.org/repo/m2-ibiblio-rsync-repository/

~Thilina

On 4/5/07, Julien HENRY <[EMAIL PROTECTED]> wrote:
  
  
Do you plan to provide a Maven 2 repository ?

++

Julien

- Message d'origine 
De : Deepal Jayasinghe <[EMAIL PROTECTED]>
À : "axis-dev@ws.apache.org" ;
"axis-user@ws.apache.org" 
Envoyé le : Mardi, 3 Avril 2007, 12h59mn 49s
Objet : [Axis2] Axis2 1.2 RC2 Released


 Hi all,

 I uploaded Axis2 1.2 RC2 release artifacts. Please help us by downloading
and reviewing them.

 Download locations :
 binary distributions-
http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2.zip
 source distribution
http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-src.zip
 docs distribution
http://people.apache.org/~deepal/axis2/1.2-RC2/axis2-1.2-RC2-docs.zip
 war distribution
 http://people.apache.org/~deepal/axis2/1.2-RC2/axis2.war

 jars
http://people.apache.org/~deepal/maven/org.apache.axis2/jars/

 mars (addressing and soapmonitor)
http://people.apache.org/~deepal/maven/org.apache.axis2/mars/

 poms
http://people.apache.org/~deepal/maven/org.apache.axis2/poms/


 According to the release plan, I'm expecting to release Axis2 1.2 on
 6th   April, 2007.


 Features included in the release :
 - WSDL 2.0 fully support
 (Reading , writing and codegen)
 - POJO – annotation
 - JAX-WS integration
 - JAX-WS -annotation
 - Un-wrapping (Response)
 - ADB - missing schema support
 - Maven2 support
 - JSON support
 - Binary serialization (Fast Inforset)
 - Multiple services support in code gen
 - HTTP code generation (both WSDL 1.1 and 2.0)
 - Fix/update helper mode
 - Custom deployers support
 - Message formatters
 - Message Builders

 In addition to above major features we have fixed numerous JIRA issues.


 Thanks,
  Deepal



 
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo! Questions/Réponses.

  
  

  


-- 


----------
| Patrick Houbaux
| Senior Consultant
| Eurostep ABEmail: [EMAIL PROTECTED]
| Drottninggatan 68  Mobile: +33 611 192 943
| SE-111 21 StockholmFax: +46 (0) 8-200 399
| Sweden URL: http://www.eurostep.com
|    Skype name: phoubaux
| Home address: 
| BAT A11 
| 12 Rue de Paris 
| F-78560 Le Port-Marly
| France
---



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

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



Re: AXIS2 - RunTimeException: : Unsupported type null Part

2007-04-05 Thread Patrick Houbaux




Hello Amila,

Yes the method reader.getNamespaceContext().getNamespaceURI(nsPrefix)
is returning null. That was my first guess when debugging  but could
not figure out why the prefix hashtable was not containing the prefix
of the element.

I'm sending you the test I was running on a separate personal email
since the server on this mailing list is keeping rejecting it.

Cheers,
Patrick.


Amila Suriarachchi wrote:
can you send your wsdl, skelton and the stub files? 
  
for me it seems to be an OM problem. I am not sure whether there is a
difference between the Stream readers returns when specifing 
param.getXMLStreamReaderWithoutCaching() and getXMLStreamReader().
  
However it seems that former method seems to be return null for the
following method
java.lang.String nsUri =
reader.getNamespaceContext().getNamespaceURI(nsPrefix);
  
  
  On 4/4/07, Patrick
Houbaux <
[EMAIL PROTECTED]> wrote:
  
Hi all,

I'm currently
using
axis2-1.2-RC2 and I notice the same following
things with axis2-1.1.1.

I have a wsdl from which I'm generating the server side skeleton and
the client side stub using ADB.

When I invoke a method from the client I get the following exception:
java.lang.RuntimeException: java.lang.RuntimeException: Unsupported
type null Part
    at com.eurostep.wstest2.Test2Stub.fromOM(Test2Stub.java:488)
    at
com.eurostep.wstest2.Test2Stub.getPLMObject(Test2Stub.java:167)
    at
com.eurostep.test2.client.Test2Client.main(Test2Client.java:33)
Caused by: java.lang.RuntimeException: Unsupported type null Part
    at
com.eurostep.wstest2.ExtensionMapper.getTypeObject(ExtensionMapper.java:191)
    at
org.plcs.www.plmservices.types.PLM_object$Factory.parse(PLM_object.java:386)
    at
org.plcs.www.message.GetPLMObjectOut$Factory.parse(GetPLMObjectOut.java:420)
    at com.eurostep.wstest2.Test2Stub.fromOM(Test2Stub.java:468)
    ... 2 more
java.lang.RuntimeException: java.lang.RuntimeException: Unsupported
type null Part

I noticed that in the client Stub the fromOM method is generated as
follow:
        private  java.lang.Object fromOM(
            org.apache.axiom.om.OMElement param,
            java.lang.Class type,
            java.util.Map extraNamespaces){
    try {
            if
(org.plcs.www.message.GetPLMObjectOut.class.equals(type)){
                return
org.plcs.www.message.GetPLMObjectOut.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }
    } catch (Exception e) {
    throw new RuntimeException(e);
    }
   return null;
    }

If I replace the call to:
    getXMLStreamReaderWithoutCaching()
by
    getXMLStreamReader()
this exception is not thrown anymore and the client is working like a
charm.

Is this a bug in the ADB code generator? If not, what could be the
source of such an error?

I have to fix the same thing on the server side in
Test2MessageReceiverInOut.fromOM(...) method.

Cheers,
Patrick.

  
  
  
-- 
Amila Suriarachchi,
WSO2 Inc.


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

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



Re: AXIS2 - ADB and multiref?

2007-04-04 Thread Patrick Houbaux




Thanks Anne! That makes sense.

I moved to AXIS2 because I had some other issues with AXIS1.x.
The WSDL I have is document/literal anyway.

Any idea when AXIS2 will support RPC/encoded?

Patrick.

Anne Thomas Manes wrote:
Multiref is not supported in document/literal messages.
(The multirefs
  
would not conform to the literal schema unless the schema explicitly
  
defines the use of multirefs.)
  
  
In order to use multirefs, you must use RPC/encoded. Axis2 does not
  
support RPC/encoded. Try Axis 1.x.
  
  
Anne
  
  
  
On 4/4/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote:
  
  
 Hi all,


 I'm currently using axis2-1.2-RC2 and I notice the same following
things

with axis2-1.1.1.


 I have a wsdl from which I'm generating the server side skeleton and
the

client side stub using ADB.

 In the service definition I have a method that returns the following
when

invoked:


 

 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

 

 "http://www.plcs.org/Message">

 
xmlns:s21="http://www.plcs.org/PLMServices/Types"

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

xsi:type="s21:Part">

 X001

 Part1

 Part #1

 

 
xmlns:s22="http://www.plcs.org/PLMServices/Types"

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

xsi:type="s22:Product_as_individual">

 X002

 PAI1

 PAI #1

 

 
xmlns:s23="http://www.plcs.org/PLMServices/Types"

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

xsi:type="s23:Part_version">

 X003

 PARTV
#1

 

 X001

 Part1

 Part
#1

 

 

 
xmlns:s24="http://www.plcs.org/PLMServices/Types"

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

xsi:type="s24:Product_as_planned">

 X005

 PAP #1

 
xsi:type="s24:Product_as_individual">

 X002

 PAI1

 PAI
#1

 

 

 
xmlns:s25="http://www.plcs.org/PLMServices/Types"

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

xsi:type="s25:Product_as_realized">

 X006

 PAR #1

 
xsi:type="s25:Product_as_individual">

 X002

 PAI1

 PAI
#1

 

 

 

 

 


 According to my server business logic implementation all elements


xsi:type="sYY:Product_as_individual">..

should be pointing to the same instance of the type
"Product_as_individual".


 How do I force the server to return multiref messages (assuming that
this

is going to respond a shorter message with all the of_product elements

referring to only instance of "Product_as_individual")?


 Cheers,

 Patrick.


-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

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


-- 


--
| Patrick Houbaux
| Senior Consultant
| Eurostep ABEmail: [EMAIL PROTECTED]
| Drottninggatan 68  Mobile: +33 611 192 943
| SE-111 21 StockholmFax: +46 (0) 8-200 399
| Sweden URL: http://www.eurostep.com
|    Skype name: phoubaux
| Home address: 
| BAT A11 
| 12 Rue de Paris 
| F-78560 Le Port-Marly
| France
---



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

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



AXIS2 - RunTimeException: : Unsupported type null Part

2007-04-04 Thread Patrick Houbaux




Hi all,

I'm currently using
axis2-1.2-RC2 and I notice the same following
things with axis2-1.1.1.

I have a wsdl from which I'm generating the server side skeleton and
the client side stub using ADB.

When I invoke a method from the client I get the following exception:
java.lang.RuntimeException: java.lang.RuntimeException: Unsupported
type null Part
    at com.eurostep.wstest2.Test2Stub.fromOM(Test2Stub.java:488)
    at
com.eurostep.wstest2.Test2Stub.getPLMObject(Test2Stub.java:167)
    at
com.eurostep.test2.client.Test2Client.main(Test2Client.java:33)
Caused by: java.lang.RuntimeException: Unsupported type null Part
    at
com.eurostep.wstest2.ExtensionMapper.getTypeObject(ExtensionMapper.java:191)
    at
org.plcs.www.plmservices.types.PLM_object$Factory.parse(PLM_object.java:386)
    at
org.plcs.www.message.GetPLMObjectOut$Factory.parse(GetPLMObjectOut.java:420)
    at com.eurostep.wstest2.Test2Stub.fromOM(Test2Stub.java:468)
    ... 2 more
java.lang.RuntimeException: java.lang.RuntimeException: Unsupported
type null Part

I noticed that in the client Stub the fromOM method is generated as
follow:
        private  java.lang.Object fromOM(
            org.apache.axiom.om.OMElement param,
            java.lang.Class type,
            java.util.Map extraNamespaces){
    try {
            if
(org.plcs.www.message.GetPLMObjectOut.class.equals(type)){
                return
org.plcs.www.message.GetPLMObjectOut.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }
    } catch (Exception e) {
    throw new RuntimeException(e);
    }
   return null;
    }

If I replace the call to:
    getXMLStreamReaderWithoutCaching()
by
    getXMLStreamReader()
this exception is not thrown anymore and the client is working like a
charm.

Is this a bug in the ADB code generator? If not, what could be the
source of such an error?

I have to fix the same thing on the server side in
Test2MessageReceiverInOut.fromOM(...) method.

Cheers,
Patrick.





-- 


------
| Patrick Houbaux
| Senior Consultant
| Eurostep ABEmail: [EMAIL PROTECTED]
| Drottninggatan 68  Mobile: +33 611 192 943
| SE-111 21 StockholmFax: +46 (0) 8-200 399
| Sweden URL: http://www.eurostep.com
|    Skype name: phoubaux
| Home address: 
| BAT A11 
| 12 Rue de Paris 
| F-78560 Le Port-Marly
| France
---



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

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



AXIS2 - ADB and multiref?

2007-04-04 Thread Patrick Houbaux




Hi all,

I'm currently using axis2-1.2-RC2 and I notice the same following
things with axis2-1.1.1.

I have a wsdl from which I'm generating the server side skeleton and
the client side stub using ADB.
In the service definition I have a method that returns the following
when invoked:


"http://schemas.xmlsoap.org/soap/envelope/">
    
        "http://www.plcs.org/Message">
            "http://www.plcs.org/PLMServices/Types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s21:Part">
                X001
                Part1
                Part #1
            
            "http://www.plcs.org/PLMServices/Types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s22:Product_as_individual">
                X002
                PAI1
                PAI #1
            
            "http://www.plcs.org/PLMServices/Types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s23:Part_version">
                X003
                PARTV #1
                
                    X001
                    Part1
                    Part
#1
                
            
            "http://www.plcs.org/PLMServices/Types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s24:Product_as_planned">
                X005
                PAP #1
                
                    X002
                    PAI1
                    PAI
#1
                
            
            "http://www.plcs.org/PLMServices/Types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="s25:Product_as_realized">
                X006
                PAR #1
                
                    X002
                    PAI1
                    PAI
#1
                
            
        
    


According to my server business logic implementation all elements
xsi:type="sYY:Product_as_individual">..
should be pointing to the same instance of the type
"Product_as_individual".

How do I force the server to return multiref messages (assuming that
this is going to respond a shorter message with all the of_product
elements referring to only instance of "Product_as_individual")?

Cheers,
Patrick.



-- 


--
| Patrick Houbaux
| Senior Consultant
| Eurostep ABEmail: [EMAIL PROTECTED]
| Drottninggatan 68  Mobile: +33 611 192 943
| SE-111 21 StockholmFax: +46 (0) 8-200 399
| Sweden URL: http://www.eurostep.com
|    Skype name: phoubaux
| Home address: 
| BAT A11 
| 12 Rue de Paris 
| F-78560 Le Port-Marly
| France
---



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

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