RE: how to get the xml recieved in call.invoke

2008-10-30 Thread Taariq Levack
Do you need it for testing or debugging?
You can use something like tcpmon for that.

BTW if you caught the exception there is no response message, everything
is in the fault you caught.
If your call was successful only then do you have a response object.


-Original Message-
From: piltrafeta [mailto:[EMAIL PROTECTED] 
Sent: 30 October 2008 22:12
To: axis-user@ws.apache.org
Subject: Re: how to get the xml recieved in call.invoke


I'm sorry but i don't knows exactly what to do with this...

my application is the client, so what i'm doing in my code is:

   org.apache.axis.client.Call _call = createCall();
   
   setRequestHeaders(_call);
   setAttachments(_call);
   try {
   java.lang.Object _resp = _call.invoke(new java.lang.Object[]
{autentica, idSumaria});
   
   } catch (org.apache.axis.AxisFault axisFaultException) {
   throw axisFaultException;
   }

So when i execute the invoke the exception is catched and i'd like to
view
the response soap message.
How i have to integrate your code in mine??

Thanks!


Aravind.Yarram wrote:
> 
> void logRequest(MessageContext msgContext) throws AxisFault {

> //This step should not fail Message reqMessage =
> msgContext.getRequestMessage(); if(reqMessage==null) {

> logger.error("No request Message available in the
> MessageContext"); return; }
> if(logger.isDebugEnabled()) { MimeHeaders
mimeHeaders
> = reqMessage.getMimeHeaders(); if(mimeHeaders!=null)

> { Iterator headerIterator =
mimeHeaders.getAllHeaders();
> if(headerIterator.hasNext()) {
> StringBuffer buffer = new StringBuffer();
> buffer.append("\r\n").append(" SOAP Request Header
> Start ").append("\r\n");
> while(headerIterator.hasNext()) {

> MimeHeader header = (MimeHeader)headerIterator.next();

> buffer.append(header.getName()).append(":
> ").append(header.getValue()).append("\r\n");

> } buffer.append(" SOAP Request Header End
> "); logger.debug(buffer);
}
> } } if(logger.isInfoEnabled()) {
> SOAPEnvelope env = reqMessage.getSOAPEnvelope(); String
> targetServiceName = msgContext.getTargetService(); String
> transportName = msgContext.getTransportName();
> StringBuffer buffer = new StringBuffer();
> buffer.append("\r\n").append(" SOAP Request Detail
> Start ").append("\r\n")  
> .append("Target Service Name:
> "+targetServiceName).append("\r\n")  
> .append("Transport Name:
> "+transportName).append("\r\n")  
> .append("Soap Envelope:
").append(env).append("\r\n")  
> .append(" SOAP Request Detail End ");   
> logger.info(buffer); } } piltrafeta
> <[EMAIL PROTECTED]> 
> piltrafeta <[EMAIL PROTECTED]> 10/30/2008 03:44 PM Please
respond
> to axis-user@ws.apache.org To axis-user@ws.apache.org
> cc 
> Subject how to get the xml recieved in call.invoke 
> hello, i'm using Axis and i'm having an exception when i call the
invoke
> method. the exception is : AxisFault  faultCode: {
> http://schemas.xmlsoap.org/soap/envelope/ }Server.userException 
> faultSubcode:  faultString: org.xml.sax.SAXParseException: Character
> reference "&#x10" is an invalid XML
character. 
> faultActor:  faultNode:  faultDetail:  {
> http://xml.apache.org/axis/ }stackTrace:org.xml.sax.SAXParseException:
> Character reference "&#x10" is an invalid
XML
> character.  at
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn
> Source)  at
> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)

> at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown
> Source)  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(
Unknown
> Source)  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown
> Source)  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn
> Source)  at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

> at
>
org.apache.axis.encoding.Deseri

Export Control: Axis2 version 1.2

2008-10-30 Thread Michelle Meyer
Hi,

I am engaged in export control compliance and need to know the ECCN of Axis2 
version 1.2 and whether any license exceptions are available. I know that there 
is some information on export control at http://www.apache.org/licenses/export/ 
but especially for Axis2 version 1.2 there is none. On this webpage is stated 
that each and every ASF-product that is not on the list provided there, does 
not have one of the two possible ECCNs 5D002 or 5D992. Is that true for Axis2 
version 1.2? Who can help?

Regards, Michelle.
___
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00


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



Re: how to get the xml recieved in call.invoke

2008-10-30 Thread piltrafeta

I'm sorry but i don't knows exactly what to do with this...

my application is the client, so what i'm doing in my code is:

   org.apache.axis.client.Call _call = createCall();
   
   setRequestHeaders(_call);
   setAttachments(_call);
   try {
   java.lang.Object _resp = _call.invoke(new java.lang.Object[]
{autentica, idSumaria});
   
   } catch (org.apache.axis.AxisFault axisFaultException) {
   throw axisFaultException;
   }

So when i execute the invoke the exception is catched and i'd like to view
the response soap message.
How i have to integrate your code in mine??

Thanks!


Aravind.Yarram wrote:
> 
> void logRequest(MessageContext msgContext) throws AxisFault {
> //This step should not fail Message reqMessage =
> msgContext.getRequestMessage(); if(reqMessage==null) {
> 
> logger.error("No request Message available in the
> MessageContext"); return; }
> if(logger.isDebugEnabled()) { MimeHeaders mimeHeaders
> = reqMessage.getMimeHeaders(); if(mimeHeaders!=null)
> { Iterator headerIterator = mimeHeaders.getAllHeaders();  
>   
> if(headerIterator.hasNext()) {
> StringBuffer buffer = new StringBuffer();
> buffer.append("\r\n").append(" SOAP Request Header
> Start ").append("\r\n");
> while(headerIterator.hasNext()) {
> MimeHeader header = (MimeHeader)headerIterator.next();
> buffer.append(header.getName()).append(":
> ").append(header.getValue()).append("\r\n");   
>  
> } buffer.append(" SOAP Request Header End
> "); logger.debug(buffer); }  
>   
> } } if(logger.isInfoEnabled()) {
> SOAPEnvelope env = reqMessage.getSOAPEnvelope(); String
> targetServiceName = msgContext.getTargetService(); String
> transportName = msgContext.getTransportName();
> StringBuffer buffer = new StringBuffer();
> buffer.append("\r\n").append(" SOAP Request Detail
> Start ").append("\r\n")  
> .append("Target Service Name:
> "+targetServiceName).append("\r\n")  
> .append("Transport Name:
> "+transportName).append("\r\n")  
> .append("Soap Envelope: ").append(env).append("\r\n") 
>  
> .append(" SOAP Request Detail End ");   
> logger.info(buffer); } } piltrafeta
> <[EMAIL PROTECTED]> 
> piltrafeta <[EMAIL PROTECTED]> 10/30/2008 03:44 PM Please respond
> to axis-user@ws.apache.org To axis-user@ws.apache.org
> cc 
> Subject how to get the xml recieved in call.invoke 
> hello, i'm using Axis and i'm having an exception when i call the invoke
> method. the exception is : AxisFault  faultCode: {
> http://schemas.xmlsoap.org/soap/envelope/ }Server.userException 
> faultSubcode:  faultString: org.xml.sax.SAXParseException: Character
> reference "&#x10" is an invalid XML character. 
> faultActor:  faultNode:  faultDetail:  {
> http://xml.apache.org/axis/ }stackTrace:org.xml.sax.SAXParseException:
> Character reference "&#x10" is an invalid XML
> character.  at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)  at
> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) 
> 
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>  
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>  
> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) 
> 
> at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown
> Source)  at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(Unknown
> Source)  at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)  at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)  at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>  
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
> 
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) 
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)  
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) 
> at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>  
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)  

Re: how to get the xml recieved in call.invoke

2008-10-30 Thread Aravind . Yarram
void logRequest(MessageContext msgContext) throws AxisFault{//This step should not failMessage reqMessage = msgContext.getRequestMessage();if(reqMessage==null){logger.error("No request Message available in the MessageContext");return;}if(logger.isDebugEnabled()){MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();if(mimeHeaders!=null){Iterator headerIterator = mimeHeaders.getAllHeaders();if(headerIterator.hasNext()){StringBuffer buffer = new StringBuffer();buffer.append("\r\n").append(" SOAP Request Header Start ").append("\r\n");while(headerIterator.hasNext()){MimeHeader header = (MimeHeader)headerIterator.next();buffer.append(header.getName()).append(": ").append(header.getValue()).append("\r\n");}buffer.append(" SOAP Request Header End ");logger.debug(buffer);}}}if(logger.isInfoEnabled()){SOAPEnvelope env = reqMessage.getSOAPEnvelope();String targetServiceName = msgContext.getTargetService();String transportName = msgContext.getTransportName();StringBuffer buffer = new StringBuffer();buffer.append("\r\n").append(" SOAP Request Detail Start ").append("\r\n")  .append("Target Service Name: "+targetServiceName).append("\r\n")  .append("Transport Name: "+transportName).append("\r\n")  .append("Soap Envelope: ").append(env).append("\r\n")  .append(" SOAP Request Detail End ");   logger.info(buffer);}}piltrafeta <[EMAIL PROTECTED]>
piltrafeta <[EMAIL PROTECTED]> 10/30/2008 03:44 PMPlease respond toaxis-user@ws.apache.orgToaxis-user@ws.apache.org
cc
Subjecthow to get the xml recieved in call.invoke
hello,i'm using Axis and i'm having an exception when i call the invoke method.the exception is :AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException: Character reference"" is an invalid XML character. faultActor:  faultNode:  faultDetail:  {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:Character reference "" is an invalid XML character. atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(UnknownSource) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown Source) atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(UnknownSource) atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(UnknownSource) atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) atorg.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) atorg.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) atorg.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) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:181

how to get the xml recieved in call.invoke

2008-10-30 Thread piltrafeta

hello,
i'm using Axis and i'm having an exception when i call the invoke method.

the exception is :

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: Character reference
"" is an invalid XML character.
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Character reference "" is an invalid XML character.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown 
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
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)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
   .

So I think that the file i'm reciving from the web service has a problem.
I'd like to get this file, does anybody knows how i can get it?

thanks!
-- 
View this message in context: 
http://www.nabble.com/how-to-get-the-xml-recieved-in-call.invoke-tp20254035p20254035.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



XMLBeans customization parameters in Maven

2008-10-30 Thread Benjamin.Shrom
Hello,

Anybody knows how to provide external XMLBeans configuration file as a 
parameter in
axis2-wsdl2code-maven-plugin ?

Plug-in has namespaceURIs, however it's doesn't allow external customization 
file.

Regards,

Benjamin.

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



Web service deployed as WAR

2008-10-30 Thread Krzysztof Adamczyk
Hi!

I need to deploy a simple Web Service as a web application (WAR).
Is it possible without including all the Axis2 libs in my WAR?
I know that if would deploy it as AAR i wouldn't need these libs,
but for some reasons I have to have a WAR application.
Any help appreciated.

Greetings,
Chris

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



Re: compatibility with Servicemix ODE

2008-10-30 Thread Paul Fremantle
Can you provide a bit more info???!

Paul

On Thu, Oct 30, 2008 at 12:09 PM, Sylvester <[EMAIL PROTECTED]> wrote:
> Hi,
> I am having some compatibility issues with ODE.. Services deployed in Axis2
> don't work, but those in Axis do work. Any ideas? I use the doclit wrapped
> style. tomcat 6.0.18.
>
> Sylvester
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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



compatibility with Servicemix ODE

2008-10-30 Thread Sylvester

Hi,
I am having some compatibility issues with ODE.. Services deployed in 
Axis2 don't work, but those in Axis do work. Any ideas? I use the doclit 
wrapped style. tomcat 6.0.18.


Sylvester


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



Re: Axis2 + jms

2008-10-30 Thread Asankha C. Perera

Hi Jinda He

ConfigurationContext myConfigContext =
  ConfigurationContextFactory

  .createConfigurationContextFromFileSystem("C:\\tools\\axis\\axis2-1.3\ 
a \repository",

  "axis2.xml");
 
 HelloWorldStub stub = new HelloWorldStub(myConfigContext);
 
 
but still I got error :
 
org.apache.axis2.transport.jms.AxisJMSException: Error creating 
temporary queue for response
 at 
org.apache.axis2.transport.jms.JMSSender.handleException(JMSSender.java:331)

 at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:166)
 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 webserviceSample.HelloWorldStub.sayHello(HelloWorldStub.java:141)
 at webserviceSample.TestClient.getHelloMessage(TestClient.java:44)
 at webserviceSample.TestClient.main(TestClient.java:23)

What you are trying to do is a synchronous out-in operation, in which 
case the JMS transport sender tries to create a temporary Queue on the 
outgoing JMS Connection, to wait-for, receive and process the 
synchronous response. From the above stacktrace, I cannot determine the 
JMS provider, but I believe this is Weblogic JMS? Can you send me the 
full stack trace, and check if the JMS server allows you (with the 
credentials or anonymous connection you use) to create temporary queues


asankha


Learning Curve

2008-10-30 Thread shekher thakur
HI All,

I am new to the world of WebServices. I want to leran about them but i am
totally confused from where i should start leraning about the
Webservices like

1) The Messaging Protocol it is using(SOAP)
2) About WSDL structure
3) ABout UUDI

and many others things.Can any body guide me the path which i can follow so
that i can start my learning curve.My goal is to start from the beginning as
i am totally a new to this field

any help in this regard will be much appriciated

Thanks
Shekher


Re: Axis2 + jms

2008-10-30 Thread Asankha C. Perera

Hi Shen

Please switch to Axis2 1.4.1 where this issue is fixed - I just verified 
this. However, make sure that your AAR files do not have a WSDL for the 
services (e.g. the SimpleStockQuoteService from Synapse usually has this 
one!)


asankha

Shen, Chunxia wrote:

Hi asankha,
 
Good morning!

I use Axis2 1.4 version.
I use axis tool axis2server.bat to start the server.
Below is the screenshot of my webservice.
Seems the JMS url is not there.
Attached files for your reference.