Generating SOAP request from WSDL's schema

2007-12-12 Thread Eric Nygma
Hi,

I have a requirement in which I have to programatically read a webservice's
WSDL, and construct the SOAP request to consume the service.
Reading the WSDL can be accomplished with WSDL4J. But I  am having problems
constructing the request message from the schema.

Is there some API which can do this for me. JAXB is not an option, because
it involves an intermediate step of generating class files from the schema,
and then class files are subsequently used my Marshallers. Rather,I am
looking for an API which ideally is fed an xsd and generates the
OMElement/DOM corresponsding to it, which can then be put inside a soap
envelope and dispatched.

Thanks very much in advance.

Regards
Eric.


Repeat: MessageContext.TRANSPORT_IN

2007-09-18 Thread Eric Nygma
Please , can someone answer my query :

I would like to know what the
org.apache.axis2.context.MessageContext.TRANSPORT_IN property signifies.
I have been getting an exception
org.apache.axis2.AxisFault: The input stream for an incoming message is
null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
TransportUtils.java:71)
and upon checking  mymessageContext.getProperty(MessageContext.TRANSPORT_IN)
, I got a Null. I want to know what I should be setting here.

Is there some place where I can get to learn the meanings of the various
properties for MessageContext . The javadocs weren't of much help.

-- Forwarded message --
From: Eric Nygma [EMAIL PROTECTED]
Date: Sep 14, 2007 4:25 PM
Subject: MessageContext.TRANSPORT_IN
To: axis-user@ws.apache.org

Hi ,

I am new to Axis2. I would like to know what the
org.apache.axis2.context.MessageContext.TRANSPORT_IN property signifies.
I have been getting an exception
org.apache.axis2.AxisFault: The input stream for an incoming message is
null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
TransportUtils.java:71)
and upon checking  mymessageContext.getProperty(MessageContext.TRANSPORT_IN)
, I got a Null. I want to know what I should be setting here.

Is there some place where I can get to learn the meanings of the various
properties for MessageContext . The javadocs weren't of much help.

Thanks
Eric.


Axis2 and JAX-WS/CXF

2007-08-06 Thread Eric Nygma
Hi,

Maybe these questions have been asked before.

[1] Does Axis2 implement JAX-WS spec ?
[2] Does Axis2 interoperate with JAX-WS , can a Axis2 client talk with a
JAX-WS service and vice versa. Specifically , does Axis2 interoperate with
Apache CXF.

Thanks in advance,
Eric.


Re: Axis2 and JAX-WS/CXF

2007-08-06 Thread Eric Nygma
Thanks !

On 8/6/07, Davanum Srinivas [EMAIL PROTECTED] wrote:

 [1] 1.3 will have support for the JAXWS specification.
 [2] Axis2 client can talk any SOAP Service.

 thanks,
 dims

 On 8/6/07, Eric Nygma [EMAIL PROTECTED] wrote:
  Hi,
 
  Maybe these questions have been asked before.
 
  [1] Does Axis2 implement JAX-WS spec ?
  [2] Does Axis2 interoperate with JAX-WS , can a Axis2 client talk with a
  JAX-WS service and vice versa. Specifically , does Axis2 interoperate
 with
  Apache CXF.
 
  Thanks in advance,
  Eric.
 
 


 --
 Davanum Srinivas :: http://davanum.wordpress.com

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




Trying to engage a module which is not available : addressing;

2007-06-27 Thread Eric Nygma

Hi,

I have a SAAJ client [ written using the saaj 1.3 api , package
javax.xml.soap ] to send a soap message to a webservice.

I run this client from within an Apache Synapse environment - which I
believe has axis2-{version}.jar in its 'classpath'. I placed
saaj-api.jarahead of the
axis2.jar in the pom.xml's dependency. Also the axis2.xml conf file has
module ref=addressing uncommented.

When I run the client I get the following : -

org.apache.axis2.deployment.DeploymentException: Trying to engage a module
which is not available : addressing; nested e
xception is:
   org.apache.axis2.AxisFault: Trying to engage a module which is not
available : addressing
javax.xml.soap.SOAPException:
org.apache.axis2.deployment.DeploymentException: Trying to engage a module
which is not av
ailable : addressing; nested exception is:
   org.apache.axis2.AxisFault: Trying to engage a module which is not
available : addressing
  at org.apache.axis2.saaj.SOAPConnectionImpl.call(
SOAPConnectionImpl.java:109)

Caused by: org.apache.axis2.deployment.DeploymentException: Trying to engage
a module which is not available : addressin
g; nested exception is:
   org.apache.axis2.AxisFault: Trying to engage a module which is not
available : addressing
   at org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(
DeploymentEngine.java:129)
   at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:118)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.j
ava:61)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationCo
ntextFactory.java:180)
   at org.apache.axis2.client.ServiceClient.initializeTransports(
ServiceClient.java:189)
   at org.apache.axis2.client.ServiceClient.configureServiceClient(
ServiceClient.java:118)
   at org.apache.axis2.client.ServiceClient.init(ServiceClient.java
:114)
   at org.apache.axis2.client.ServiceClient.init(ServiceClient.java
:207)
   at org.apache.axis2.saaj.SOAPConnectionImpl.call(
SOAPConnectionImpl.java:106)
   ... 15 more

Caused by: org.apache.axis2.AxisFault: Trying to engage a module which is
not available : addressing
   at org.apache.axis2.engine.AxisConfiguration.engageModule(
AxisConfiguration.java:356)
   at org.apache.axis2.deployment.DeploymentEngine.engageModules(
DeploymentEngine.java:664)
   at org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(
DeploymentEngine.java:125)


When I run the SAAJ client standalone-as in- outside of the Synapse
environment it works fine.
Can anyone help ?

Many Thanks.
e\.


finding if a service is up

2007-06-26 Thread Eric Nygma

Hi,
Given a wsdl uri, how can I determine using Axis2 whether the services
mentioned in the wsdl are up or not ?
Thanks,
e\


Re: finding if a service is up

2007-06-26 Thread Eric Nygma

I am sorry I didn't describe my question correctly. Apart from trying the
wsdl uri on the browser , Can I do this programmatically with some axis2 api
?

Thanks.
e\

On 6/26/07, Roman Heinrich [EMAIL PROTECTED] wrote:


Eric Nygma wrote:
 Hi,
 Given a wsdl uri, how can I determine using Axis2 whether the services
 mentioned in the wsdl are up or not ?
 Thanks,
 e\
if you`ll try for instance
http://localhost:/MyApp/services/MyService?wsdl

and the wsdl will be generated, then the service is up.

Regards,
Roman Heinrich

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