anyone can help me on exception hanlding in Axis2?

2010-02-12 Thread Li Ma
IF you can spare an hour or so with me on phone to help resolve my exception
halding issue, please let me know.
I'm in eastern standard time zone (New York).

thanks!

Li


Re: Please help me with this AxisFault

2009-11-16 Thread Vijay Mali
Hi Jonah,

Thanks for the response!

I have sorted this...!!! Thanks to AXIS -> WSDL2Javamakes life so easy!

Regards,
VJ


From: jonah 
Sent: Monday, November 16, 2009 11:00 AM
To: axis-user@ws.apache.org 
Subject: Re: Please help me with this AxisFault


Hi,pls paste wsdl content.


2009/11/15 Vijay Mali 

  Hi,


  I am new to Webservice. Please see my code below and the exception I am 
getting. Can someone please explain where am I going wrong?







  import java.net.URL;



  import javax.xml.namespace.QName;

  import javax.xml.rpc.ParameterMode;

  import javax.xml.rpc.ServiceFactory;



  import org.apache.axis.client.Call;

  import org.apache.axis.client.Service;

  .

  .

  .

  .

  .

  try {



Service service = new Service();

Call call = (Call)service.createCall(new 
QName("ValidateEmailSoap"));



String endpoint = 
"http://www.webservicex.net/ValidateEmail.asmx";;



call.setPortName(new QName("ValidateEmailSoap"));

call.setProperty( Call.SOAPACTION_USE_PROPERTY, new 
Boolean( true ) );

call.setProperty( Call.SOAPACTION_URI_PROPERTY, 
"http://www.webservicex.net/IsValidEmail";);



  

call.setTargetEndpointAddress(new URL(endpoint));

call.setOperationName( new QName("IsValidEmail") );



String email = new String("vm...@pps.co.za"); // pass email


call.addParameter("Email",org.apache.axis.Constants.XSD_STRING,  
ParameterMode.INOUT);

  

call.setReturnType(org.apache.axis.Constants.XSD_ANY);



Object answer = call.invoke(new Object [] {email});

  



System.out.println("Got result : " + answer.toString());



  } catch (Exception e) {

//System.err.println(e.toString());

e.printStackTrace();

  }



  I am getting following error. Can someone please explain what am I missing??



  AxisFault

  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server

  faultSubcode: 

  faultString: 

  System.Web.Services.Protocols.SoapException: Server was unable to process 
request. ---> System.NullReferenceException: Object reference not set to an 
instance of an object. 
  at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

  at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

  --- End of inner exception stack trace ---

  faultActor: 

  faultNode: 

  faultDetail: 


{http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException:
 Server was unable to process request. ---> System.NullReferenceException: 
Object reference not set to an instance of an object.

 at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

 at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

 --- End of inner exception stack trace ---

at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)

at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)

at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

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.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

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(C

Re: Please help me with this AxisFault

2009-11-16 Thread jonah
Hi,pls paste wsdl content.

2009/11/15 Vijay Mali 

>  *Hi,*
>
> * *
>
> *I am new to Webservice. Please see my code below and the exception I am
> getting. Can someone please explain where am I going wrong?*
>
> * *
>
> * *
>
>
>
> *import java.net.URL;*
>
> * *
>
> *import javax.xml.namespace.QName;*
>
> *import javax.xml.rpc.ParameterMode;*
>
> *import javax.xml.rpc.ServiceFactory;*
>
> * *
>
> *import org.apache.axis.client.Call;*
>
> *import org.apache.axis.client.Service;*
>
> *.*
>
> *.*
>
> *.*
>
> *.*
>
> *.*
>
> *try {*
>
> *  *
>
> *  Service service = new Service();*
>
> *  Call call = (Call)service.createCall(new QName(
> "ValidateEmailSoap"));*
>
> * *
>
> *  String endpoint = "
> http://www.webservicex.net/ValidateEmail.asmx";*
>
> *  *
>
> *  call.setPortName(new QName("ValidateEmailSoap"));*
>
> *  call.setProperty( Call.SOAPACTION_USE_PROPERTY, newBoolean(
> true ) );*
>
> *  call.setProperty( Call.SOAPACTION_URI_PROPERTY, "
> http://www.webservicex.net/IsValidEmail";);*
>
> *  *
>
> **
>
> *  call.setTargetEndpointAddress(new URL(endpoint));*
>
> *  call.setOperationName( new QName("IsValidEmail") );*
>
> *  *
>
> *  String email = new String("vm...@pps.co.za"); // pass
> email*
>
> *  call.addParameter("Email"
> ,org.apache.axis.Constants.XSD_STRING,  ParameterMode.INOUT);*
>
> **
>
> *  call.setReturnType(org.apache.axis.Constants.XSD_ANY);*
>
> *  *
>
> *  Object answer = call.invoke(new Object [] {email});*
>
> **
>
> * *
>
> *  System.out.println("Got result : " +
> answer.toString());*
>
> * *
>
> *} catch (Exception e) {*
>
> *  //System.err.println(e.toString());*
>
> *  e.printStackTrace();*
>
> *}*
>
>
>
> I am getting following error. Can someone please explain what am I
> missing??
>
>
>
> AxisFault
>
> faultCode: 
> {http://schemas.xmlsoap.org/soap/envelope/}Server
>
> faultSubcode:
>
> faultString:
> *System.Web.Services.Protocols.SoapException*: Server was unable to
> process request. ---> *System.NullReferenceException*: Object reference
> not set to an instance of an object.
>
> at ValidateEmail.ValidateEmail.VerifyEmail(String Email)
>
> at ValidateEmail.ValidateEmail.IsValidEmail(String Email)
>
> --- End of inner exception stack trace ---
>
> faultActor:
>
> faultNode:
>
> faultDetail:
>
>   {*
> http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException
> *: Server was unable to process request. ---> *
> System.NullReferenceException*: Object reference not set to an instance of
> an object.
>
>at ValidateEmail.ValidateEmail.VerifyEmail(String Email)
>
>at ValidateEmail.ValidateEmail.IsValidEmail(String Email)
>
>--- End of inner exception stack trace ---
>
>   at org.apache.axis.message.SOAPFaultBuilder.createFault(*
> SOAPFaultBuilder.java:222*)
>
>   at org.apache.axis.message.SOAPFaultBuilder.endElement(*
> SOAPFaultBuilder.java:129*)
>
>   at org.apache.axis.encoding.DeserializationContext.endElement(*
> DeserializationContext.java:1087*)
>
>   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>
>   at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>
>   at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>
>   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.handlers.soap.MustUnderstandChecker.invoke(*
> MustUnderstandChecker.java:62*)
>
>   at org.apache.axis.client.AxisClient.invoke(*AxisClient.java:206*)
>
>   at org.apache.axis.client.Call.invokeEngine(*Call.java:2784*)
>
>   at org.apache.axis.client.Call.invoke(*Cal

Please help me with this AxisFault

2009-11-14 Thread Vijay Mali
Hi,
 

I am new to Webservice. Please see my code below and the exception I am 
getting. Can someone please explain where am I going wrong?

 

 

 

import java.net.URL;

 

import javax.xml.namespace.QName;

import javax.xml.rpc.ParameterMode;

import javax.xml.rpc.ServiceFactory;

 

import org.apache.axis.client.Call;

import org.apache.axis.client.Service;

.

.

.

.

.

try {

  

  Service service = new Service();

  Call call = (Call)service.createCall(new 
QName("ValidateEmailSoap"));

 

  String endpoint = 
"http://www.webservicex.net/ValidateEmail.asmx";;

  

  call.setPortName(new QName("ValidateEmailSoap"));

  call.setProperty( Call.SOAPACTION_USE_PROPERTY, new Boolean( 
true ) );

  call.setProperty( Call.SOAPACTION_URI_PROPERTY, 
"http://www.webservicex.net/IsValidEmail";);

  



  call.setTargetEndpointAddress(new URL(endpoint));

  call.setOperationName( new QName("IsValidEmail") );

  

  String email = new String("vm...@pps.co.za"); // pass email

  
call.addParameter("Email",org.apache.axis.Constants.XSD_STRING,  
ParameterMode.INOUT);



  call.setReturnType(org.apache.axis.Constants.XSD_ANY);

  

  Object answer = call.invoke(new Object [] {email});



 

  System.out.println("Got result : " + answer.toString());

 

} catch (Exception e) {

  //System.err.println(e.toString());

  e.printStackTrace();

}

 

I am getting following error. Can someone please explain what am I missing??

 

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server

faultSubcode: 

faultString: System.Web.Services.Protocols.SoapException: Server was unable to 
process request. ---> System.NullReferenceException: Object reference not 
set to an instance of an object.

at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

--- End of inner exception stack trace ---

faultActor: 

faultNode: 

faultDetail: 

  
{http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException:
 Server was unable to process request. ---> System.NullReferenceException: 
Object reference not set to an instance of an object.

   at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

   at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

   --- End of inner exception stack trace ---

  at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

  at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

  at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)

  at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

  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.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

  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)

  at za.co.pps.servicemanager.ServiceManager.main(ServiceManager.java:51)

 

 

Regards,

VJ


Re: Please help me to debug RAMPART issue

2009-07-31 Thread Chinmoy Chakraborty
Hi,

I noticed following property was not set while sending the message back:

179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -  Property set on object
org.apache.axis2.context.messagecont...@12f0ce9
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Key =messageType
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Value =text/xml
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Value Class =
java.lang.String
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Value Classloader = null

and then it produces following error:

[http8080-Processor21] org.apache.axis2.transport.TransportUtils - Could
not find a Builder for type (text/html).  Using SOAP.
194422 DEBUG [http8080-Processor21]

httpclient.wire.content - << "Apache Tomcat/5.0.19 -
Error report
HTTP Status 500 - type
Status reportmessage description The
server encountered an internal error () that prevented it from fulfilling
this request.Apache
Tomcat/5.0.19"
194422

DEBUG [http8080-Processor21]org.apache.axiom.om.util.StAXUtils -
XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
194422 INFO  [http8080-Processor21]
org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder


Chinmoy






On Fri, Jul 31, 2009 at 2:59 PM, Chinmoy Chakraborty wrote:

> Hi,
>
> I turned on DEBUG and please find attached rampart_debug.log file. Does
> 'WSDoAllReceiver' process faults if any while invoking the business logic? I
> found following commented line at line no. 161 of WSDoAllReceiver.java src:
>
> ...
> // Do not process faults
> SOAPConstants soapConstants = WSSecurityUtil.getSOAPConstants(doc
> .getDocumentElement());
> if (WSSecurityUtil.findElement(doc.getDocumentElement(), "Fault",
> soapConstants.getEnvelopeURI()) != null) {
> return;
> }
> ..
>
> In line 8254 it throws the exception from the service (in the log file the
> service name is ABS) method. In line 8381 it shows :
>
> isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> 194047 DEBUG [http8080-Processor24]
> org.apache.axis2.addressing.AddressingHelper - [MessageContext:
> logID=urn:uuid:B669EB542CF5BAEF9D1249024862072] isReplyRedirected: ReplyTo
> is null. Returning false
>
> Is this the reason of not sending fault SOAP to the client if WSSecurity is
> on and use parameter based WS-Security?
>
> Chinmoy
>
>
>


ClassLoader problem with weblogic 8.1 sp6 and axis 1.4, can any body help me, many thanks.

2008-06-24 Thread Ramon Wang
Hi all

I'm now using axis 1.4 and weblogic 8.1 sp6, when I try to deploy axis2.war
(following the user guide of axis2, I have added the weblogic.xml) in
weblogic, I got the following error:

<2008-6-25 上午09时38分09秒 CST>(WarBasedAxisConfigurator.java
:157)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:511)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1099
)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:975)
... 18 more
Caused by: java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:333)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:334)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at
org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher.(GenericProviderDisp
atcher.java:43)
... 38 more
>
<2008-6-25 上午09时38分09秒 CST>

It seems there are some errors with commons logging, so I got the source
code of both commons logging and axis2 and debugged into, found that when
the LogFactoryImpl try to get an instance of class
GenericProviderDispatcher, the passed in parameter for
getInstance(LogFactoryImpl.java:334) should be a class object of
GenericProviderDispatcher, but actually it was a null, so I think it is a
class loader problem, but I didn't know how to fix it, it seems every one's
weblogic works well with their axis2 except me, so can any body give me some
suggestion, thank you so so much.


-- 
Kindest regards

Ramon Wang


[Axis2]please help me with axis2 handler

2008-01-03 Thread XCV
 hi,dear all:

   hello and i got puzzled when i try to code a handler, that is how can i wake 
up the message chain which suspended by return InvocationResponse.SUSPEND in 
method invoke(MessageContext msgContext)  ? Please somebody help me and thanks 
a lot!




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



Problem with JAX-WS and AXIS2, Help Me please

2007-08-02 Thread jnet2000
ient.java:163)
   at  
it.my.client.CustomerServiceCustomerServiceSOAP12PortStub.retrieveCustom 
erIdentifyByCF(CustomerServiceCustomerServiceSOAP12PortStub.java:154)

   at it.my.client.ClientProva.main(ClientProva.java:14)

msg soap

request
  http://www.w3.org/2003/05/soap- 
envelope">

 


   1234567890
   CCCFFF84L12H501Z

 
  

response

  http://www.w3.org/2003/05/soap- 
envelope">

 

   
  soapenv:Sender
   
   
  java.lang.NullPointerException

   
   

 
  

Code Java SEI
package it.my.endpoint.sei;


import it.my.bean.dto.out.CustomerServiceOutDTO;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;


@WebService(name="CustomerService" , targetNamespace="http://my.it";)
@SOAPBinding(  style=SOAPBinding.Style.DOCUMENT,
   parameterStyle=SOAPBinding.ParameterStyle.WRAPPED,
   use=SOAPBinding.Use.LITERAL
   )
  public interface CustomerServiceInterface {

 @WebMethod(action="http://my.it/retrieveCustomerIdentifyByCF";)
   @WebResult 
(name="RetrieveCustomerIdentifyByCFResponse",targetNamespace="http:// 
my.it/data")

   public CustomerServiceOutDTO retrieveCustomerIdentifyByCF(
  @WebParam(name="requestId") String requestId,
  @WebParam(name="cf") String cf
   );
}


WSDL
http://schemas.xmlsoap.org/wsdl/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:tns="http://my.it";
xmlns:typens="http://my.it/data";
targetNamespace="http://my.it";>
   
   http://www.w3.org/2001/XMLSchema";  
attributeFormDefault="qualified" targetNamespace="http://my.it/data";>


   
   
   type="typens:CustomerIdentify"/>

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   

   type="typens:CustomerServiceOutDTO"/>

   
   

   
   element="typens:RetrieveCustomerIdentifyByCFRequest"/>

   
   
   element="typens:RetrieveCustomerIdentifyByCFResponse"/>

   

   
   
   message="tns:RetrieveCustomerIdentifyByCFMessage" xmlns:wsaw="http:// 
www.w3.org/2006/05/addressing/wsdl" wsaw:Action="http://my.it/ 
CustomerServicePortType/RetrieveCustomerIdentifyByCF"/>
   message="tns:RetrieveCustomerIdentifyByCFResponseMessage"  
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";  
wsaw:Action="http://my.it/CustomerServicePortType/ 
RetrieveCustomerIdentifyByCFResponse" />

   
   

   type="tns:CustomerServicePortType">
   

   
   
   
   
   
   
   
   
   
   
   type="tns:CustomerServicePortType">
   http://schemas.xmlsoap.org/soap/ 
http" style="document"/>

   
   http://my.it/ 
retrieveCustomerIdentifyByCF"/>

   
   
   
   
   
   
   
   

   
   binding="tns:CustomerServiceSOAP11Binding">
   http://localhost:8080/axis2/ 
services/CustomerService"/>

   
   binding="tns:CustomerServiceSOAP12Binding">
   http://localhost:8080/axis2/ 
services/CustomerService"/>

   
   


I'm currently using a Sun Application Server 9, JAX-WS, AXIS2 1.3,  
JDK 1.6.



Please,could you kindness help me?
I'm newbie Axis2.
Is a problem of configure Axis2?
Where i'm mistake ?!?!

Thanks in advance for your prompt support.

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



[Axis2] I'm newbie, please help me

2007-04-03 Thread Fran

Hi! I'm newbie in web services and Axis2, and I need help.

I want to create a client that can open, read and close a file in the
web service, but I don't know if it's possible to create an openfile
method in my service that returns the FileReader associated to the
opened file in the server to my client, and my client can use it to
read the file invoking the read file method and to close the file
invoking the close method with the FileReader as a parameter.

I try to do it with POJOs, because I have written two classes that do
this in local, but I want to do it using Web Services.

Sorry for my bad English.

PS: I show you an example, that it's easy to understand:

class client {

  public static void main (String[] args) {

// Connect to the server

FileReader file = server.openFile (path);

int size = 1024;
byte[] ret = server.readFile (file, size);
// Do this until ret < size OR ret == null

server.closeFile (file);
}

And server class has openFile, readFile and closeFile public methods
that operate with the FileReader.

Thanks!

--
Saludos

Fran

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



[Axis2] [MTOM Policy] Please help me

2007-03-19 Thread Binoy K Philip




> Dear ...,
> I am facing problems can  help me ? Where do I get a good
> document(totorial)?
> 
> 1)I am trying  to implement axis fault .
> 2)I have two  methods ( one with return type string other with no
> return type (void) )which  throws userException1 and userException2
> respectively .
> 3)I have generated the FaultExcetion1,FaultExcetion2 class and also
> CustomisedMessageReceiverInOut  and
> CustomisedMessageReceiverRobustInOnly using eclipse code gen 
> 4)FaultExcetion1,FaultExcetion2  put  in both  client and server side
> and CustomisedMessageReceiverInOut  and
> CustomisedMessageReceiverRobustInOnly  in server side 
> 5) write service.xml 
> serviceGroup>
> 
> 
> http://www.w3.org/2004/08/wsdl/in-out";
> class="webservice.CustomisedMessageReceiverInOut"/>
> http://www.w3.org/2004/08/wsdl/robust-in-only";
> class="webservice.CustomisedMessageReceiverRobustInOnly"/>
> 
>  locked="false">webservice.Service
>  mep="http://www.w3.org/2004/08/wsdl/robust-in-only";>
> urn:saveInfo
>  faultName="saveInfoFault">http://webservice/CustomisedServicePortType/
> saveInfo/Fault/saveInfoFault
> 
> http://www.w3.org/2004/08/wsdl/in-out";>
> urn:getInfo
> http://webservice/CustomisedServicePortType/getIn
> foResponse
>  faultName="getInfoFault">http://webservice/CustomisedServicePortType/g
> etInfo/Fault/getInfoFault
> 
> http://www.w3.org/2004/08/wsdl/in-out";>
> urn:isAlive
> http://webservice/CustomisedServicePortType/isAli
> veResponse
> 
> 
> 
> 
> Tahnks in advance
> 
> Binoy K Philip 
> 
> E-mail: [EMAIL PROTECTED] 

-- 
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.



RE: [ Axis2] Please help me

2007-03-19 Thread Binoy K Philip



> Dear ...,
> I am facing problems can  help me ? Where do I get a good
> document(totorial)?
> 
> 1)I am trying  to implement axis fault .
> 2)I have two  methods ( one with return type string other with no
> return type (void) )which  throws userException1 and userException2
> respectively .
> 3)I have generated the FaultExcetion1,FaultExcetion2 class and also
> CustomisedMessageReceiverInOut  and
> CustomisedMessageReceiverRobustInOnly using eclipse code gen 
> 4)FaultExcetion1,FaultExcetion2  put  in both  client and server side
> and CustomisedMessageReceiverInOut  and
> CustomisedMessageReceiverRobustInOnly  in server side 
> 5) write service.xml 
> serviceGroup>
> 
> 
> http://www.w3.org/2004/08/wsdl/in-out";
> class="webservice.CustomisedMessageReceiverInOut"/>
> http://www.w3.org/2004/08/wsdl/robust-in-only";
> class="webservice.CustomisedMessageReceiverRobustInOnly"/>
> 
>  locked="false">webservice.Service
>  mep="http://www.w3.org/2004/08/wsdl/robust-in-only";>
> urn:saveInfo
>  faultName="saveInfoFault">http://webservice/CustomisedServicePortType/
> saveInfo/Fault/saveInfoFault
> 
> http://www.w3.org/2004/08/wsdl/in-out";>
> urn:getInfo
> http://webservice/CustomisedServicePortType/getIn
> foResponse
>  faultName="getInfoFault">http://webservice/CustomisedServicePortType/g
> etInfo/Fault/getInfoFault
> 
> http://www.w3.org/2004/08/wsdl/in-out";>
> urn:isAlive
> http://webservice/CustomisedServicePortType/isAli
> veResponse
> 
> 
> 
> 
> Tahnks in advance
> 
> Binoy K Philip 
> 
> E-mail: [EMAIL PROTECTED] 

-- 
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.



Re: can some one please help me about attachments in jax-ws?

2007-01-18 Thread Davanum Srinivas

Yet! :)

On 1/18/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

Try Sun's discussion list. Axis/Axis2 don't support JAX-WS.

On 1/15/07, legolas <[EMAIL PROTECTED]> wrote:
>
> Hi
> Thank you for reading my post.
> Its some days that i try to create a pair of client and a web service that
> could handle attachments (I must use Jax-WS ) but i can not find any
> document that show how to create the service itself.
> All Sun tutorials and samples just show the clinet side and not the server
> side of the problem.
> can some one please help me about this?
> whether by giving some links, sample code or hint that tell me what should i
> do in service side.
>
> Thanks
> --
> View this message in context: 
http://www.nabble.com/can-some-one-please-help-me-about-attachments-in-jax-ws--tf3017980.html#a8381591
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: can some one please help me about attachments in jax-ws?

2007-01-18 Thread Anne Thomas Manes

Try Sun's discussion list. Axis/Axis2 don't support JAX-WS.

On 1/15/07, legolas <[EMAIL PROTECTED]> wrote:


Hi
Thank you for reading my post.
Its some days that i try to create a pair of client and a web service that
could handle attachments (I must use Jax-WS ) but i can not find any
document that show how to create the service itself.
All Sun tutorials and samples just show the clinet side and not the server
side of the problem.
can some one please help me about this?
whether by giving some links, sample code or hint that tell me what should i
do in service side.

Thanks
--
View this message in context: 
http://www.nabble.com/can-some-one-please-help-me-about-attachments-in-jax-ws--tf3017980.html#a8381591
Sent from the Axis - User mailing list archive at Nabble.com.


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




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



can some one please help me about attachments in jax-ws?

2007-01-15 Thread legolas

Hi
Thank you for reading my post.
Its some days that i try to create a pair of client and a web service that
could handle attachments (I must use Jax-WS ) but i can not find any
document that show how to create the service itself.
All Sun tutorials and samples just show the clinet side and not the server
side of the problem.
can some one please help me about this?
whether by giving some links, sample code or hint that tell me what should i
do in service side.

Thanks
-- 
View this message in context: 
http://www.nabble.com/can-some-one-please-help-me-about-attachments-in-jax-ws--tf3017980.html#a8381591
Sent from the Axis - User mailing list archive at Nabble.com.


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



Simple SOAP server. Can axis help me ?

2006-11-29 Thread Vincent Quiniou
Hi all,

I would like to build a "harcoded" SOAP server. I.e. a server which reacts 

to an incoming SOAP message, analyses the message content and replies with
a predifined message.

I was wondering if Axis could help me gain some time as compared to the 
time needed to recode an HTTP server (I have a reference) and analyse HTTP 
requests.

Thanks for your help.

Cheers


RE: [Axis2] Help me better understand axis2

2006-09-19 Thread nancy
   
Hello,

I understood the following code,

   OMFactory fac = OMAbstractFactory.getOMFactory();
   OMNamespace omNs = fac.createOMNamespace(
"http://example2.org/example2";, "ex");
   OMElement method = fac.createOMElement("echo", omNs);
   OMElement value = fac.createOMElement("element", omNs);
   value.addChild(fac.createOMText(value, "Axis2 hello"));
   method.addChild(value);


also one more:

SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope envelope = fac.getDefaultEnvelope();
OMNamespace namespace =
fac.createOMNamespace(webserviceNameSpace,
operationName);

OMElement params1 = fac.createOMElement(operationName,
namespace); 



OMElement paramOM =
fac.createOMElement(paramName, namespace);

paramOM.setText(paramValue.toString());

params1.addChild(paramOM);

}
envelope.getBody().setFirstChild(params1);
return envelope;
}


But both take string as parameter. How can I send any other object other
than string?

With Warm Regards,  
Nancy Aggarwal 
Software Developer 
 

  
-Original Message-
From: Nirmit Desai [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006 6:29 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Help me better understand axis2

Look at the AXIOM javadoc

http://ws.apache.org/commons/axiom/apidocs/index.html

I am not sure how you can have a HashMap  type parameter in an Axis2
service operation. For best results, start from a WSDL and generate code
with databinding.

-Nirmit



   
 "nancy"   
 <[EMAIL PROTECTED] 
 affodildb.com> To 
  
 09/18/2006 06:32   cc 
 AM
   Subject 
   RE: [Axis2] Help me better  
 Please respond to understand axis2
 [EMAIL PROTECTED] 
  he.org   
   
   
   
   




Hi Sameera,

Thanks Sameera for the link. I have gone through the document.

Is there any link in which how to send the request having parameters other
than String is explained. As far as I know the setText method of OMelement
takes String parameter, also createOMElement method of OMfactory takes
string parameter?



With Warm Regards,
Nancy Aggarwal
Software Developer

(Embedded image moved to file: pic12149.gif)


From: Sameera Madushan [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 12:46 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Help me better understand axis2



Hi nancy,

 Since you have the implementation class. The next thing you have do is to
create the services.xml file. I will try to reply with the services.xml
file. Before hand you better refer the following tutorial.


...


...


For further details you can refer tutorial "Writing an Axis2 Service from
Scratch" by Deepal Jayasinghe under the following link


http://www.developer.com/services/article.php/3613896








http://www.developer.com/services/article.php/3613896

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


Hello all,





I am very confused how to create my web service. I am having these two
operations which I want to expose. How can I create its service.xml and
then after exposing I need to create a client? But how, I am unable to
start with. Please help me to better understand the axis2.








public class Test{





public int tingTong(int var1){


return var1+100;


}





public HashMap  tingTong(HashMap var1){


return var1;


}





 }


With Warm Regards,


Nancy Aggarwal


Software Developer





(Embedded image moved to file: pic18618.gif)








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



RE: [Axis2] Help me better understand axis2

2006-09-18 Thread Nirmit Desai
Look at the AXIOM javadoc

http://ws.apache.org/commons/axiom/apidocs/index.html

I am not sure how you can have a HashMap  type parameter in an Axis2
service operation. For best results, start from a WSDL and generate code
with databinding.

-Nirmit



   
 "nancy"   
 <[EMAIL PROTECTED] 
 affodildb.com> To 
  
 09/18/2006 06:32   cc 
 AM
   Subject 
   RE: [Axis2] Help me better  
 Please respond to understand axis2
 [EMAIL PROTECTED] 
  he.org   
   
   
   
   




Hi Sameera,

Thanks Sameera for the link. I have gone through the document.

Is there any link in which how to send the request having parameters other
than String is explained. As far as I know the setText method of OMelement
takes String parameter, also createOMElement method of OMfactory takes
string parameter?



With Warm Regards,
Nancy Aggarwal
Software Developer

(Embedded image moved to file: pic12149.gif)


From: Sameera Madushan [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 12:46 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Help me better understand axis2



Hi nancy,

 Since you have the implementation class. The next thing you have do is to
create the services.xml file. I will try to reply with the services.xml
file. Before hand you better refer the following tutorial.


...


...


For further details you can refer tutorial "Writing an Axis2 Service from
Scratch" by Deepal Jayasinghe under the following link


http://www.developer.com/services/article.php/3613896








http://www.developer.com/services/article.php/3613896

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


Hello all,





I am very confused how to create my web service. I am having these two
operations which I want to expose. How can I create its service.xml and
then after exposing I need to create a client? But how, I am unable to
start with. Please help me to better understand the axis2.








public class Test{





public int tingTong(int var1){


return var1+100;


}





public HashMap  tingTong(HashMap var1){


return var1;


}





 }


With Warm Regards,


Nancy Aggarwal


Software Developer





(Embedded image moved to file: pic18618.gif)








pic12149.gif
Description: GIF image


pic18618.gif
Description: GIF image
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [Axis2] Help me better understand axis2

2006-09-18 Thread nancy








Hi Sameera,

 

Thanks Sameera for the link. I have gone
through the document.

 

Is there any link in which how to send the
request having parameters other than String is explained. As far as I know the
setText method of OMelement takes String parameter, also createOMElement method
of OMfactory takes string parameter?

 

 

 



With
Warm Regards, 

Nancy Aggarwal 

Software Developer 

 



 











From: Sameera Madushan
[mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006
12:46 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Help me
better understand axis2



 

Hi nancy,

 Since you have the implementation class. The next thing you have do is to
create the services.xml file. I will try to reply with the services.xml file.
Before hand you better refer the following tutorial.

...

...

For further details you can refer
tutorial "Writing an Axis2 Service from Scratch" by
Deepal Jayasinghe under the following link

http://www.developer.com/services/article.php/3613896

 

 

http://www.developer.com/services/article.php/3613896

 



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







Hello
all,

  

I
am very confused how to create my web service. I am having these two operations
which I want to expose. How can I create its service.xml and then after
exposing I need to create a client? But how, I am unable to start with. Please
help me to better understand the axis2.

 

 

public
class Test{

 

public
int tingTong(int var1){

   
   
    return
var1+100;

   
}

 

public
HashMap  tingTong(HashMap var1){

   
   
    return var1;

   
}

 

 }

With Warm
Regards, 

Nancy Aggarwal 

Software
Developer 

 



  

 









 








Re: [Axis2] Help me better understand axis2

2006-09-18 Thread Sameera Madushan



	

	
	
	
	
	
	



	
	
	
	
	
	
	

Hi
nancy, Since you have the implementation class.  The
next thing you have do is to create the services.xml file. I will try
to reply with the services.xml file. Before hand you better refer the
following tutorial.
...
...

For
further details you can refer tutorial  "Writing
an Axis2 Service from Scratch" by
Deepal Jayasinghe under the following link
http://www.developer.com/services/article.php/3613896

http://www.developer.com/services/article.php/3613896
On 9/18/06, nancy <[EMAIL PROTECTED]> wrote:














Hello all,

  

I am very confused how to create my web service. I am having
these two operations which I want to expose. How can I create its service.xml
and then after exposing I need to create a client? But how, I am unable to
start with. Please help me to better understand the axis2.

 

 

public class Test{

 

public int tingTong(int var1){

            return
var1+100;

    }

 

public HashMap  tingTong(HashMap var1){

            return
var1;

    }

 

 }

With
Warm Regards, 

Nancy Aggarwal 

Software Developer 

 



 


 










[Axis2] Help me better understand axis2

2006-09-17 Thread nancy








Hello all,

 

I am very confused how to create my web service. I am having
these two operations which I want to expose. How can I create its service.xml
and then after exposing I need to create a client? But how, I am unable to
start with. Please help me to better understand the axis2.

 

 

public class Test{

 

public int tingTong(int var1){

            return
var1+100;

    }

 

public HashMap  tingTong(HashMap var1){

            return
var1;

    }

 

 }

With
Warm Regards, 

Nancy Aggarwal 

Software Developer 

 



 

 








Re: HELP ME PLEASE!! Problem returning and array inside of another array

2006-08-22 Thread Anne Thomas Manes

Make sure that you are using Axis 1.4.
Also, start with your WSDL file and generate the code from it.

Anne

On 8/22/06, HHDirecto. Net <[EMAIL PROTECTED]> wrote:



I read you solved to Eduardo this issue

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200511.mbox/[EMAIL 
PROTECTED]



I have the same problem but I can't solve it. My wsdd description is:



   

 

 



   http://interfazweb.serviciosweb.moduloingenieria.ceit.es";


languageSpecificType="java:es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.PlantaIW"/>



   http://interfazweb.serviciosweb.moduloingenieria.ceit.es";


languageSpecificType="java:es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.UsuarioIW"/>



  



   

  



The returned object is UsuarioIW, and it have an array of plantaIW elements
but the return of webservice is:



http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://interfazweb.serviciosweb.moduloingenieria.sample.es";>Uno
[EMAIL 
PROTECTED]trueUsuariofalse

12

midir11planta1948

943556685usuario1



And I think it should be:

1< int >2

< PlantaIW
>midir11planta1948



The .net client don't read successfull this arrays

Thanks in advance






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



Re: HELP ME PLEASE!! Problem returning and array inside of another array

2006-08-22 Thread HHDirecto . Net
I read you solved to Eduardo this 
issue

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200511.mbox/[EMAIL PROTECTED]
 
I have the same problem but I can't 
solve it. My wsdd description is:
 

  


    



    


  

  
http://interfazweb.serviciosweb.moduloingenieria.ceit.es"


    
languageSpecificType="java:es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.PlantaIW"/>


  


  
http://interfazweb.serviciosweb.moduloingenieria.ceit.es"


    
languageSpecificType="java:es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.UsuarioIW"/>


  


 

   



  



 
 
The returned object is UsuarioIW, 
and it have an array of plantaIW elements but the return of webservice 
is:
 
http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://interfazweb.serviciosweb.moduloingenieria.sample.es">Uno
[EMAIL PROTECTED]trueUsuariofalse

12

midir11planta1948
943556685usuario1

 
And I think it 
should be:
1< int >2
< 
PlantaIW 
>midir11planta1948
 
The .net client 
don't read successfull this arrays
Thanks in 
advance
 
 


Please help me! Axis 1.3: Array and .NET Client issue

2006-07-01 Thread Amit Andhale
Hi,
I have query regarding Products and Components Web Service. 
I have developed a 
Wrapped/Literal style J2EE Web Service which retrieves Products and Components. I am accessing this web service form .NET C# Client.

 
This Web Service details are as follows


getProductAndComponentList(String UUID)
 method returns 
Array of ProductView
 class which extends 
BaseView class 

ProductView
 array contains some attributes like Name, ID and 
Array of ProductComponentView
 class which also extends 
BaseView class.
 
When I call this Web Service from .NET C# Client I can get the 
ProductView Array.
In "ProductView" Array I can get the values of "ID", "Name" but getting Empty 
ProductComponentView
 array even if Components are there for the Product.
 
I have also written Java Client which returns correct response.
I also verified the SOAP Request and Response on the wire using "SOAPScope" tool which also shows me correct response.

 
But I am getting zero length 
ProductComponentView Array inside "ProductView" array for .NET Client.

 
Regards
Amit


Help Me!!

2006-05-19 Thread Nicolas Guaneme

Hello All,

I have this WSDL service


http://schemas.xmlsoap.org/wsdl/soap/";
   xmlns:tns="http://co.com.www.avisortech/MPPWebServices/";
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="MPPWebServices"
   targetNamespace="http://co.com.www.avisortech/MPPWebServices/";>
   
   http://co.com.www.avisortech/MPPWebServices/";>
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   

   
   
   ref="tns:getBabkListResponse">

   
   

   
   
   
   
   

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   

   
   
   
  
type="tns:getTransactionInformationResponseType">

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   message="tns:createTransactionPaymentRequest">

   
   
   
   
   
   
   
   
   
   
   
   http://schemas.xmlsoap.org/soap/http"; />
   
  
soapAction="http://co.com.www.avisortech/MPPWebServices/getBankList"; />

   
   
   
   
   
   
   
   
  
soapAction="http://co.com.www.avisortech/MPPWebServices/createTransactionPayment"; 
/>

   
   
   
   
   
   
   
   
  
soapAction="http://co.com.www.avisortech/MPPWebServices/getTransactionInformation"; 
/>

   
   
   
   
   
   
   
   
   
   
   location="http://localhost:8080/axis/services/MPPWebServicesSOAP"; />

   
   


I do the deploy and is OK, but I can't create the clientStub. I try 
to consuming this web services with PHP and .NET but never return the 
soap headers with the info of elements.
I don't know if the return is wrong.. I don't know how I must to do 
for return the elements of the response of each method.

Please help me...

Thanks.


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



Help me with Axis

2006-05-19 Thread Nicolas Guaneme

Hello All,



I have this WSDL service





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

  xmlns:tns="http://co.com.www.avisortech/MPPWebServices/";

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

  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="MPPWebServices"

  targetNamespace="http://co.com.www.avisortech/MPPWebServices/";>

  

  http://co.com.www.avisortech/MPPWebServices/";>

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  



  

  



  

  

  ref="tns:getBabkListResponse">


  

  



  

  

  

  

  



  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  



  

  

  

  

  

  

  

  



  

  

  


type="tns:getTransactionInformationResponseType">


  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  



  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  



  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  message="tns:createTransactionPaymentRequest">


  

  

  

  

  

  

  

  

  

  

  

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

  


soapAction="http://co.com.www.avisortech/MPPWebServices/getBankList"; />


  

  

  

  

  

  

  

  


soapAction="http://co.com.www.avisortech/MPPWebServices/createTransactionPayment"; 
/>


  

  

  

  

  

  

  

  


soapAction="http://co.com.www.avisortech/MPPWebServices/getTransactionInformation"; 
/>


  

  

  

  

  

  

  

  

  

  

  location="http://localhost:8080/axis/services/MPPWebServicesSOAP"; />


  

  





I do the deploy and is OK, but I can't create the clientStub. I try 
to consuming this web services with PHP and .NET but never return the 
soap headers with the info of elements.


I don't know if the return is wrong.. I don't know how I must to do 
for return the elements of the response of each method.


Please help me...



Thanks.



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



Help me!!

2006-05-18 Thread Nicolas Guaneme
Hello, I have a Web Service... I done the deply on the Axis Serser 
when I try to do debug to my service"I set teh breackpoint in the 
SOAPImpl after the method " run the next step an always return to 
the before line and I can't continue with the debug because no find 
every class of axis.


All jars is it in my app and the server..

For example:

public class MPPWebServicesSOAPImpl implements 
avisortech.www.com.co.MPPWebServices.MPPWebServices_Port{


this is teh declaration of my class, when run the debug stop in the 
breackpoint. ok but when I keypress the next step return to the 
definition of de class and find classess the axis but never find 
it.


What do I do?

Thanks.


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



Help Me.

2006-05-18 Thread Nicolas Guaneme
Hello, I have a Web Service... I done the deply on the Axis Serser 
when I try to do debug to my service"I set teh breackpoint in the 
SOAPImpl after the method " run the next step an always return to 
the before line and I can't continue with the debug because no find 
every class of axis.


All jars is it in my app and the server..

For example:

public class MPPWebServicesSOAPImpl implements 
avisortech.www.com.co.MPPWebServices.MPPWebServices_Port{


this is teh declaration of my class, when run the debug stop in the 
breackpoint. ok but when I keypress the next step return to the 
definition of de class and find classess the axis but never find 
it.


What do I do?

Thanks.


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



RE: could someone help me in java client to invoke webservices?

2006-02-01 Thread Dinesh Shahane
Looking at your WSDL, I think you need the following SOAPAction 
 



call.setSOAPActionURI("/Processes/SOAPServer ");


From: mm jj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 1:33 PM
To: axis-user@ws.apache.org
Subject: Re: could someone help me in java client to invoke webservices?

i did add the following line but nothing change. 
if you see the error, what is this "faultString: No handler for body element" 
and some other errors.


Dong Liu <[EMAIL PROTECTED]> wrote:
Please try after adding this line into your client

call.setSOAPActionURI("Operation");

Cheers,

Don

On 2/1/06, mm jj < [EMAIL PROTECTED]> wrote: 
thanks for reply. could you please look into the following code, error and 
WSDL. 
 
here is the code, error, and wsdl(this wsdl is created in TIBCO). I used AXIS 
1.3 to write and c ompile java code.
 
import org.apache.axis.client.*;
import javax.xml.rpc.ParameterMode ;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;
 
public class FibClient {
  public static void main(String[] args) throws Exception {
    String endpoint = " http://DUSU41009X1:80/Processes/SOAPServer";;
    //String endpoint = " http://DUSU41009X1:8080/Processes_sp_Definition";;
    String Sub = "SUBJECT";
    String Data = "DATA";
    Service service = n ew Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress(endpoint);
    call.setOperationName("Operation");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "wrapped"); 
    call.addParameter("op1", XMLType.XSD_STRING, ParameterMode.IN);
    call.addParameter("op2", XMLType.XSD_STRING, ParameterMode.IN);
    call.setReturnType(XMLType.XSD_STRING);
    call.setReturnType (XMLType.XSD_STRING);
    String ret = (String) call.invoke(new Object[]{Sub, Data});
    System.out.println("Got result : " + ret);
    
    
    
  }
}
--
 
init:
deps-jar:
compile-single:
run-single:
- Unable to find required classes (javax.activation.DataHandler an d 
javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
 faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: No handler for body element
 faultActor: 
 faultNode: 
 faultDetail: 
    {}detail: 
http://DUSU41009X1:80/Processes/SOAPServer""Operation
No handler for body element
    at org.apache.axis.message.SOAPFaultBuilder.createFault 
(SOAPFaultBuilder.java:222)
    at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
    at org.apache.crimson.parser.Parser2.content (Parser2.java:1963)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
    at org.apache.crimson.parser.Parser2.maybeElement (Parser2.java:1691)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    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.handlers.soap.MustUnderstandChecker.invoke 
(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    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)
    at FibClient.main(FibClient.java:24)
Exception in thread "main" 
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
 
-- 
 


http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns=" 
http://xmlns.example.com/1138294660453/OperationImpl"; xmlns:wsdl=" 
http://schemas.xmlsoap.org/wsdl/"; name="Untitled" targetNamespace=" 
http://xmlns.example.com/1138294660453/OperationImpl";>
    
    http://www.w3.org/2001/XMLSchema"; attributeFormDefault="unqualified" 
elementFormDefault="qualified" targetNamespace=" www.examples.com">
    
    

Re: could someone help me in java client to invoke webservices?

2006-02-01 Thread mm jj
        Generic web service request                              insert the request XML here   
                                                                                   http://schemas.xmlsoap.org/soap/http"/>    
     The operation has no documentation                            
                       http://ubs:80/Processes/SOAPServer"/>        Glenn Bech < [EMAIL PROTECTED]> wrote:  Public class Test {         Public static void main(String[] args) {     String wsdlURI = "http://localhost:/axis/myService.wsdl";  String nsURI = " http://schemnamespace/2004/01/22/";  String endPointURI = " http://localhost:/axis/services/Provisioning/";  String serviceName = "MyServiceName";  String portNameProv
  =
 "MyPortName";     ServiceFactory serviceFactory = ServiceFactory.newInstance();   Service provisioningService = serviceFactory.createService(new URL(wsdlURI), new QName(nsURI, serviceName));   SessionControlStub sessionControlStu b = new SessionControlStub(new URL(endPointURI), provisioningService); Object returnValue = sessionControlStub.login(argument);     }  }           From: mm jj [mailto:[EMAIL PROTECTED] ] Sent: 1. februar 2006 18:33To: axis-user@ws.apache.orgSubject: could someone help me in java client to invoke webservices?   could someone help me in java client to invoke webservices?Do you Yahoo!? With a free 1 GB, there's more in store with Yahoo! Mail.  __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com  
 
	
		 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: could someone help me in java client to invoke webservices?

2006-02-01 Thread Dong Liu
                
                                    
                
                http://schemas.xmlsoap.org/soap/http"/>    
    The operation has no documentation        
               
                 
        
http://ubs:80/Processes/SOAPServer"/>        Glenn Bech <
[EMAIL PROTECTED]> wrote:
Public class Test {   
     Public static void main(String[] args) {  
   
String wsdlURI = "http://localhost:/axis/myService.wsdl";  
String nsURI = "
http://schemnamespace/2004/01/22/";  String endPointURI = "
http://localhost:/axis/services/Provisioning/";  
String serviceName = "MyServiceName";  
String portNameProv = "MyPortName";  
   ServiceFactory serviceFactory = ServiceFactory.newInstance();
  Service provisioningService = serviceFactory.createService(new URL(wsdlURI), new QName(nsURI, serviceName));
  SessionControlStub sessionControlStu
 b = new
 SessionControlStub(new URL(endPointURI), provisioningService);   
  Object returnValue = sessionControlStub.login(argument);
     }  
}     
    
  From:
 mm jj [mailto:[EMAIL PROTECTED]
] Sent: 1. februar 2006 18:33To: 
axis-user@ws.apache.orgSubject: could someone help me in java client to invoke webservices?  
 could someone help me in java client to invoke webservices?  
  Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo!
 Mail.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



RE: could someone help me in java client to invoke webservices?

2006-02-01 Thread mm jj
                                                                       http://schemas.xmlsoap.org/soap/http"/>        The operation has no documentation                       
                         http://ubs:80/Processes/SOAPServer"/>        Glenn Bech <[EMAIL PROTECTED]> wrote:Public class Test {        Public static void main(String[] args) {     String wsdlURI = "http://localhost:/axis/myService.wsdl";  String nsURI = "http://schemnamespace/2004/01/22/";  String endPointURI = "http://localhost:/axis/services/Provisioning/";  String serviceName = "MyServiceName";  String portNameProv = "MyPortName";     ServiceFactory serviceFactory = ServiceFactory.newInstance();  Service provisioningService = serviceFactory.createService(new URL(wsdlURI), new QName(nsURI, serviceName));  SessionControlStub sessionControlStu
 b = new
 SessionControlStub(new URL(endPointURI), provisioningService);     Object returnValue = sessionControlStub.login(argument);     }  }           From: mm jj [mailto:[EMAIL PROTECTED] Sent: 1. februar 2006 18:33To: axis-user@ws.apache.orgSubject: could someone help me in java client to invoke webservices?   could someone help me in java client to invoke webservices?Do you Yahoo!?With a free 1 GB, there's more in store with Yahoo!
 Mail.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: could someone help me in java client to invoke webservices?

2006-02-01 Thread mm jj
    The operation has no documentation                       
                         http://ubs:80/Processes/SOAPServer"/>        Dong Liu <[EMAIL PROTECTED]> wrote:  Please post the details of your questions here, othe
 rwise no
 one could give you an answer. A good start point is always the code samples coming with the release. CheersDon  On 2/1/06, mm jj <[EMAIL PROTECTED]> wrote:could someone help me in java client to invoke webservices?  Do you Yahoo!?With a free 1 GB, there's more in store with Yahoo! Mail. 
		  
What are the most popular cars? Find out at Yahoo! Autos 

RE: could someone help me in java client to invoke webservices?

2006-02-01 Thread Glenn Bech








Public class Test {

 

   Public static void main(String[] args)
{

 

String
wsdlURI = "http://localhost:/axis/myService.wsdl";

String
nsURI = "http://schemnamespace/2004/01/22/";

String
endPointURI = "http://localhost:/axis/services/Provisioning/";

String
serviceName = "MyServiceName";

String
portNameProv = "MyPortName";

 

ServiceFactory
serviceFactory = ServiceFactory.newInstance();

Service
provisioningService = serviceFactory.createService(new URL(wsdlURI), new
QName(nsURI, serviceName));

SessionControlStub
sessionControlStub = new SessionControlStub(new URL(endPointURI),
provisioningService);

 

Object
returnValue = sessionControlStub.login(argument);

   }

}

 

 

 









From: mm jj
[mailto:[EMAIL PROTECTED] 
Sent: 1. februar 2006 18:33
To: axis-user@ws.apache.org
Subject: could someone help me in
java client to invoke webservices?



 



could someone help me in java client to invoke webservices?









Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo!
Mail.








Re: could someone help me in java client to invoke webservices?

2006-02-01 Thread Dong Liu
Please post the details of your questions here, otherwise no one could give you an answer. A good start point is always the code samples coming with the release. CheersDon
On 2/1/06, mm jj <[EMAIL PROTECTED]> wrote:
could someone help me in java client to invoke webservices?
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.



could someone help me in java client to invoke webservices?

2006-02-01 Thread mm jj
could someone help me in java client to invoke webservices?
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.

Re: Hi help me! how to install default axis web app in WAS5.1 it will be great help for me.

2005-11-30 Thread Cyrille Le Clerc
   Hello Giribabu,

   Here are two "How to install Axis on Websphere" :
 - Axis user mailing list :
   -> Title : "Example on deploying Axis on Web Sphere Application Server"
   -> Date : 04/11/2005
   -> URL : http://marc.theaimsgroup.com/?l=axis-user&m=113110091220760
 - Websphere Application Server newsgroup
   -> Title : "websphere and axis"
   -> Date 12/11/2005
   -> URL : 
http://groups.google.com/group/ibm.software.websphere.application-server/browse_frm/thread/07a1e2c80ea16bf9/389dd76307095a7f#389dd76307095a7f

   Do not forget Axis Wiki Install page :
http://wiki.apache.org/ws/FrontPage/Axis/Install

   Hope this helps,

   Cyrille

--
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On 11/30/05, giribabu venugopal <[EMAIL PROTECTED]> wrote:
>
> Hi
>
>  i want to install default web app (axis) in WAS5.1
>
> am trying if i install server crashing .


Hi help me! how to install default axis web app in WAS5.1 it will be great help for me.

2005-11-29 Thread giribabu venugopal
Hi
 
 i want to install default web app (axis) in WAS5.1 
 
am trying if i install server crashing .


PLS HELP ME URGENTLY ON THIS QUESTION

2005-11-21 Thread giribabu venugopal
i got URL from .net service Provider(web serice they are providing for us).
 
 
in that wsdl import and location tag is there, assume that i got (scehma file is jay.xsd)
url like http://server//data.asmx?scehma = jay
 
my scema file is 
 


http://tempuri.org/PrudentialData.xsd
" xmlns:mstns=" http://tempuri.org/PrudentialData.xsd" xmlns="
http://tempuri.org/PrudentialData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema " xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">


 
 

 
 
 

 
 
look like this please tell me how to read this schema  and get value from the service?
 
give any sample code to read this
 
 
thank u if u help it will be greatful for me.
 


Re: HELP ME PLEASE!! Problem returning and array inside of another array

2005-11-07 Thread Anne Thomas Manes
You can't use the soapenc:Array type with RPC/Literal. Either switch to
rpc/encoded (not recommended) or redefine your arrays so that they are
defined simply as elements with a maxOccurs="unbounded". 

AnneOn 11/7/05, Eduardo Alvarez <[EMAIL PROTECTED]> wrote:



















Hello,

I have a problem with my WS and I´m a little bit desperated.

I am develoving the web service using Axis 1.1 and a Jboss server.

I have a web service that returns an array of objects. One field of this object
is an array of objects also. The code in the server works fine but when the
server send to the client the answer, the client can´t read it correctly. 

There are no problems encoding the first array, but encoding the internal array
I obtain always an array with only one component, instead of n components.

I suposse that is a problem of some property of my wsdd but I can´t find if. I
have made millions of tests but all of them went wrong :(

This is my wsdl and my wsdd.


- WSDL ---

 

http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra
"
xmlns:intf="http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="java:modelo.alejandra.rima.hp.com"
xmlns="http://schemas.xmlsoap.org/wsdl/">



http://www.w3.org/2001/XMLSchema"
targetNamespace="java:modelo.alejandra.rima.hp.com">

http://schemas.xmlsoap.org/soap/encoding/"
/> 





 

 

 

 

 

 

 









 

 

 

 









 

 









 

 

 

 

 

 









 

 

 









 

 

 

 

 

 

 









 

 











 













 













 













 













 













 

 

 





 

 

 





 

 

 

 

 

 





 

 

 

 

 

 







 

 





 

 







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



 



http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
/> 





http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
/> 







 



http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
/> 





http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
/> 











http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"
/> 








 WSDD -









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




http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra"/
>




http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra
"
>
http://www.w3.org/2001/XMLSchema"/>
modelo.alejandra.rima.hp.com"/>
modelo.alejandra.rima.hp.com"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
modelo.alejandra.rima.hp.com
"
mode="OUT"/>

http://172.22.4.72:8080/axis/services/DiagnosticoAlejandra
"
>
http://www.w3.org/2001/XMLSchema"/>
modelo.alejandra.rima.hp.com"/>
modelo.alejandra.rima.hp.com"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
http://www.w3.org/2001/XMLSchema"
mode="OUT"/>
modelo.alejandra.rima.hp.com"
mode="OUT"/>




xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ConectividadPuertoVLan"
type="java:com.hp.rima.alejandra.modelo.ConectividadPuertoVLan"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:StatusPuerto"
type="java:com.hp.rima.alejandra.modelo.StatusPuerto"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfEstadoVLanPuerto"
type="java:com.hp.rima.alejandra.modelo.EstadoVLanPuerto[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfInformacionConectividadPuerto"
type="java:com.hp.rima.alejandra.modelo.InformacionConectividadPuerto[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:EstadoVLanPuerto"
type="java:com.hp.rima.alejandra.modelo.EstadoVLanPuerto"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="ja

HELP ME PLEASE!! Problem returning and array inside of another array

2005-11-07 Thread Eduardo Alvarez








Hello,

I have a problem with my WS and I´m a little bit desperated.

I am develoving the web service using Axis 1.1 and a Jboss server.

I have a web service that returns an array of objects. One field of this object
is an array of objects also. The code in the server works fine but when the
server send to the client the answer, the client can´t read it correctly. 

There are no problems encoding the first array, but encoding the internal array
I obtain always an array with only one component, instead of n components.

I suposse that is a problem of some property of my wsdd but I can´t find if. I
have made millions of tests but all of them went wrong :(

This is my wsdl and my wsdd.


- WSDL ---

 







 





 

 

 

 

 

 

 









 

 

 

 









 

 









 

 

 

 

 

 









 

 

 









 

 

 

 

 

 

 









 

 











 













 













 













 













 













 

 

 





 

 

 





 

 

 

 

 

 





 

 

 

 

 

 







 

 





 

 







 



 



 





 







 



 





 











 








 WSDD -









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


































xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ConectividadPuertoVLan"
type="java:com.hp.rima.alejandra.modelo.ConectividadPuertoVLan"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:StatusPuerto"
type="java:com.hp.rima.alejandra.modelo.StatusPuerto"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfEstadoVLanPuerto"
type="java:com.hp.rima.alejandra.modelo.EstadoVLanPuerto[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfInformacionConectividadPuerto"
type="java:com.hp.rima.alejandra.modelo.InformacionConectividadPuerto[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:EstadoVLanPuerto"
type="java:com.hp.rima.alejandra.modelo.EstadoVLanPuerto"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfVLan"
type="java:com.hp.rima.alejandra.modelo.VLan[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:InformacionConectividadPuerto"
type="java:com.hp.rima.alejandra.modelo.InformacionConectividadPuerto"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfConectividadPuertoVLan"
type="java:com.hp.rima.alejandra.modelo.ConectividadPuertoVLan[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:VLan"
type="java:com.hp.rima.alejandra.modelo.VLan"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:InformacionEstadoPuerto"
type="java:com.hp.rima.alejandra.modelo.InformacionEstadoPuerto"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ArrayOfInformacionEstadoPuerto"
type="java:com.hp.rima.alejandra.modelo.InformacionEstadoPuerto[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>

xmlns:ns="java:modelo.alejandra.rima.hp.com"
qname="ns:ElementoConectado"
type="java:com.hp.rima.alejandra.modelo.ElementoConectado"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>


---

The problem is in the estadoPuerto operation, with the field statusVLans of the
return object InformacionEstadoPuerto.

I have used wsdl2java for generating the wsdd, 

RE: [Axis2]-.Net I hope somebody will surely help me this time.

2005-09-30 Thread Kumuda Bhaskar
.net service will be exposing some services which should be called by
Java Client, for which we have to create a java class which reflects all
the methods exposed by the webservice, which we can know by seeing the
wsdl.
So, java client will make a call on stubs, which in turn takes care of
rest of things and invokes the webservice.

These java classes could be created by Axis's Wsdl2Java program which
needs the wsdl path

Thanks
Kumuda

-Original Message-
From: Carmine Gargiulo [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 5:23 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2]-.Net I hope somebody will surely help me this time.

I'm new of Axis what are the stubs??

In data Fri, 30 Sep 2005 13:44:31 +0200, Kumuda Bhaskar  
<[EMAIL PROTECTED]> ha scritto:

> Hi Deepal,
>
> Our program is running fine with Http.
>
> We are using WSDL2Java to create stubs for the .net webservices and we
> are calling that from Axis client.
>
> There is no problem with http. But for sake of performance
improvement,
> we want to use TCP support, where we are facing problems
>
>
> Thanks,
>
> KumudaRajarshi
>
>
> 
>
> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 30, 2005 11:35 AM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2]-.Net I hope somebody will surely help me this
time.
>
>
> Hi Kumudu,
>
>
> AS I know there is no TCP binding for interop between Axis2 and .Net ,
> so if you please first try with HTTP if that also have problem let us
> know.
>
> I tried to re generate the problem in my machine but I still couldn't
> able to do it , I will continue to re-generate that.
>
>
> Thanks,
>  Deepal
> 
> ~Future is Open~
>
>   - Original Message -
>
>   From: Kumuda Bhaskar <mailto:[EMAIL PROTECTED]>
>
>   To: axis-user@ws.apache.org
>
>   Sent: Thursday, September 29, 2005 3:42 PM
>
>   Subject: RE: [Axis2]-.Net I hope somebody will surely help me
> this time.
>
>   
>
>   Hi Deepal,
>
>   
>
>   As you said, I added the code shown in Bold letters and tried,
> still I am getting the same Exception
>
>   I will next try with InOutMepClient
>
>   
>
>   
>
>   public static MessageContext getMessageContext(QName opName,
> OperationDescription opdesc) throws Exception{
>
>   OMElement operation;
>
>   MessageContext msgContext = null;
>
>   SOAPFactory factory =
> OMAbstractFactory.getSOAP11Factory();
>
>   SOAPEnvelope envelope = factory.getDefaultEnvelope();
>
>   
>
//envelope.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";,
> "soap");
>
>   
>
envelope.declareNamespace("http://schemas.xmlsoap.org/ws/2004/03/address
> ing", "wsa");
>
>   
>
>   OMNamespace wsns =
>
factory.createOMNamespace("http://schemas.xmlsoap.org/ws/2004/03/address
> ing","wsa");
>
>   OMElement wsaAction = factory.createOMElement("Action",
> wsns);
>
>   
>
wsaAction.addChild(factory.createText("http://stockservice.contoso.com/w
> se/samples/2003/06/Concat"));
>
>   OMElement wsaMessageId =
> factory.createOMElement("MessageID", wsns);
>
>   
>
wsaMessageId.addChild(factory.createText("uuid:b6272374-e72a-464d-8af2-7
> 6199b15aea1"));
>
>   OMElement wsareplyTo =
> factory.createOMElement("ReplyTo", wsns);
>
>   OMElement wsaaddress =
> factory.createOMElement("Address", wsns);
>
>   
>
wsaaddress.addChild(factory.createText("http://schemas.xmlsoap.org/ws/20
> 04/03/addressing/role/anonymous"));
>
>   wsareplyTo.addChild(wsaaddress);
>
>   OMElement wsaTo = factory.createOMElement("To", wsns);
>
>   
>
wsaTo.addChild(factory.createText("soap://stockservice.contoso.com/wse/s
> amples/2003/06/TcpSyncStockService"));
>
>   
>
>   envelope.getHeader().addChild(wsaAction);
>
>   envelope.getHeader().addChild(wsaMessageId);
>
>   envelope.getHeader().addChild(wsareplyTo);
>
>   envelope.getHeader().addChild(wsaTo);
>
>   
>
>   
> envelope.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";,
> "xmlns");
>
>   OMNamespace ns1 =
>
factory.createOMNamespace(&qu

Re: [Axis2]-.Net I hope somebody will surely help me this time.

2005-09-30 Thread Carmine Gargiulo

I'm new of Axis what are the stubs??

In data Fri, 30 Sep 2005 13:44:31 +0200, Kumuda Bhaskar  
<[EMAIL PROTECTED]> ha scritto:



Hi Deepal,

Our program is running fine with Http.

We are using WSDL2Java to create stubs for the .net webservices and we
are calling that from Axis client.

There is no problem with http. But for sake of performance improvement,
we want to use TCP support, where we are facing problems


Thanks,

KumudaRajarshi




From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
Sent: Friday, September 30, 2005 11:35 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2]-.Net I hope somebody will surely help me this time.


Hi Kumudu,


AS I know there is no TCP binding for interop between Axis2 and .Net ,
so if you please first try with HTTP if that also have problem let us
know.

I tried to re generate the problem in my machine but I still couldn't
able to do it , I will continue to re-generate that.


Thanks,
 Deepal

~Future is Open~

- Original Message -

From: Kumuda Bhaskar <mailto:[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Thursday, September 29, 2005 3:42 PM

Subject: RE: [Axis2]-.Net I hope somebody will surely help me
this time.



Hi Deepal,



As you said, I added the code shown in Bold letters and tried,
still I am getting the same Exception

I will next try with InOutMepClient





public static MessageContext getMessageContext(QName opName,
OperationDescription opdesc) throws Exception{

OMElement operation;

MessageContext msgContext = null;

SOAPFactory factory =
OMAbstractFactory.getSOAP11Factory();

SOAPEnvelope envelope = factory.getDefaultEnvelope();


//envelope.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/";,
"soap");


envelope.declareNamespace("http://schemas.xmlsoap.org/ws/2004/03/address
ing", "wsa");



OMNamespace wsns =
factory.createOMNamespace("http://schemas.xmlsoap.org/ws/2004/03/address
ing","wsa");

OMElement wsaAction = factory.createOMElement("Action",
wsns);


wsaAction.addChild(factory.createText("http://stockservice.contoso.com/w
se/samples/2003/06/Concat"));

OMElement wsaMessageId =
factory.createOMElement("MessageID", wsns);


wsaMessageId.addChild(factory.createText("uuid:b6272374-e72a-464d-8af2-7
6199b15aea1"));

OMElement wsareplyTo =
factory.createOMElement("ReplyTo", wsns);

OMElement wsaaddress =
factory.createOMElement("Address", wsns);


wsaaddress.addChild(factory.createText("http://schemas.xmlsoap.org/ws/20
04/03/addressing/role/anonymous"));

wsareplyTo.addChild(wsaaddress);

OMElement wsaTo = factory.createOMElement("To", wsns);


wsaTo.addChild(factory.createText("soap://stockservice.contoso.com/wse/s
amples/2003/06/TcpSyncStockService"));



envelope.getHeader().addChild(wsaAction);

envelope.getHeader().addChild(wsaMessageId);

envelope.getHeader().addChild(wsareplyTo);

envelope.getHeader().addChild(wsaTo);




envelope.declareNamespace("http://www.w3.org/2001/XMLSchema-instance";,
"xmlns");

OMNamespace ns1 =
factory.createOMNamespace("http://stockservice.contoso.com/wse/samples/2
003/06/Concat","v");

operation = factory.createOMElement("Concat", ns1);

OMElement first =
factory.createOMElement("FirstStr",ns1);

first.addChild(factory.createText("Hello ") );

OMElement sec =
factory.createOMElement("SecondStr",ns1);

sec.addChild(factory.createText(" World") );

operation.addChild(first);

operation.addChild(sec);

envelope.getBody().addChild(operation);

ConfigurationContextFactory fac = new
ConfigurationContextFactory();

ConfigurationContext configContext =
fac.buildClientConfigurationContext("Concat");

try {

msgContext = new MessageContext(configContext);



ServiceDescription service = new
ServiceDescription(opName);

service.addOperation(opdesc);


configContext.getAxisConfiguration().addService(service);

msgContext.setServiceDescription(service);

msgContext.setOperationDescription(opdesc);

   

[Axis2]-.Net I hope somebody will surely help me this time.

2005-09-28 Thread Kumuda Bhaskar








Hi,

I was trying to call the .Net webservice from Axis2 client.
I am using axis2-0.92 the latest….

I am getting the following Exception

org.apache.axis2.AxisFault: null; nested exception
is: 

  javax.xml.stream.XMLStreamException

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:97)

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:47)

  at
org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:53)

  at
org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:177)

  at
com.hyperion.tcp.TCPClient.main(TCPClient.java:46)

Caused by: javax.xml.stream.XMLStreamException

  at
com.bea.xml.stream.MXParser.checkForXMLDecl(MXParser.java:712)

  at
com.bea.xml.stream.MXParser.setInput(MXParser.java:721)

  at
com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:235)

  at
com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:64)

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)

  ... 4 more

Exception
in thread "main"

 

From port peeker, I found
that the xml that is being created by Axis2 client is

 

http://stockservice.contoso.com/wse/samples/2003/06/Concatuuid:b6272374-e72a-464d-8af2-76199b15aea1http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymoussoap://stockservice.contoso.com/wse/samples/2003/06/TcpSyncStockServiceHello

World

 

Axis2 client souce code is as follows

/*

 * Copyright 2004,2005 The Apache Software Foundation.

 *

 * Licensed under the Apache License, Version 2.0 (the
"License");

 * you may not use this file except in compliance with the
License.

 * You may obtain a copy of the License at

 *

 *  http://www.apache.org/licenses/LICENSE-2.0

 *

 * Unless required by applicable law or agreed to in
writing, software

 * distributed under the License is distributed on an
"AS IS" BASIS,

 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.

 * See the License for the specific language governing
permissions and

 * limitations under the License.

 */

package com.hyperion.hfm.acistcptest;

 

import org.apache.axis2.AxisFault;

import org.apache.axis2.Constants;

import org.apache.axis2.addressing.EndpointReference;

import org.apache.axis2.clientapi.Call;

import org.apache.axis2.context.ConfigurationContext;

import org.apache.axis2.context.ConfigurationContextFactory;

import org.apache.axis2.context.MessageContext;

import org.apache.axis2.context.ServiceContext;

import org.apache.axis2.description.OperationDescription;

import org.apache.axis2.description.ServiceDescription;

import org.apache.axis2.description.TransportOutDescription;

import org.apache.axis2.soap.SOAPEnvelope;

import org.apache.axis2.soap.SOAPFactory;

import org.apache.axis2.transport.TransportSender;

import org.apache.axis2.transport.tcp.TCPTransportSender;

import org.apache.axis2.engine.AxisConfigurationImpl;

import org.apache.axis2.addressing.om.AddressingHeaders;

import org.apache.axis2.om.OMAbstractFactory;

import org.apache.axis2.om.OMDocument;

import org.apache.axis2.om.OMElement;

import org.apache.axis2.om.OMFactory;

import org.apache.axis2.om.OMNamespace;

import org.apache.axis2.addressing.om.*;

import javax.xml.namespace.QName;

import org.apache.axis2.clientapi.MessageSender;

 

import javax.xml.stream.FactoryConfigurationError;

import javax.xml.stream.XMLOutputFactory;

import javax.xml.stream.XMLStreamException;

import javax.xml.stream.XMLStreamWriter;

 

/**

 * This is a Client progam that accesses 'MyService' web
service in Axis2 samples

 */

public class AxisClient {

 

    private static String toEpr =
"soap.tcp://blrl2790:2342/StockService";

 

    public static void main(String[] args) throws AxisFault
{

 

        EndpointReference wsaTo = new
EndpointReference("soap://stockservice.contoso.com/wse/samples/2003/06/TcpSyncStockService");

        AddressingHeaders headers = new
AddressingHeaders(wsaTo,
"http://stockservice.contoso.com/wse/samples/2003/06/StockQuoteRequest");

        

        

        MessageContext requestContext = null; 

        //FaxReceive.request(new
TFaxReceive(account, password));

 

    QName opName = new
QName("soap://stockservice.contoso.com/wse/samples/2003/06/TcpSyncStockService",
"GetStockQuotes");

 

    OperationDescription opdesc = new
OperationDescription(opName);

        

        EndpointReference targetEPR = new
EndpointReference(toEpr);

        org.apache.axis2.clientapi.Call call = new
org.apache.axis2.clientapi.Call();

        call.setTo(targetEPR);

    

        call.engageModule(new
QName(Constants.MODULE_ADDRESSING));

    

        call.setWsaAction("http://stockservice.contoso.com/wse/samples/2003/06/StockQuoteRequest");

        

       

Please help me in solving this problem [axis 2 - .net]

2005-09-21 Thread Kumuda Bhaskar








Hi,

I am using TCP to call the .Net webservice. Can anyone tell
me the reason for this exception?? 

At the Axis client I am getting the following exception

java.net.SocketException: Connection reset

  at java.net.SocketInputStream.read(Unknown
Source)

  at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)

  at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)

  at sun.nio.cs.StreamDecoder.read(Unknown
Source)

  at java.io.InputStreamReader.read(Unknown
Source)

  at java.io.BufferedReader.fill(Unknown
Source)

  at java.io.BufferedReader.read(Unknown
Source)

  at
com.bea.xml.stream.MXParser.checkForXMLDecl(MXParser.java:687)

  at com.bea.xml.stream.MXParser.setInput(MXParser.java:709)

  at
com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:235)

  at
com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:64)

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:46)

  at
org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:54)

  at org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:174)Here : Connection reset

 

  at
com.hyperion.hfm.acistcptest.AxisClient.main(AxisClient.java:106)

org.apache.axis2.AxisFault: null; nested exception
is: 

  javax.xml.stream.XMLStreamException

  at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:96)

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:46)

  at
org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:54)

  at
org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:174)

  at
com.hyperion.hfm.acistcptest.AxisClient.main(AxisClient.java:106)

Caused by: javax.xml.stream.XMLStreamException

  at
com.bea.xml.stream.MXParser.checkForXMLDecl(MXParser.java:700)

  at
com.bea.xml.stream.MXParser.setInput(MXParser.java:709)

  at
com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:235)

  at com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:64)

  at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)

  ...
4 more

 

Regards

KumudaRajarshi








Someone must be able to help me out here

2005-04-27 Thread Plorks mail
Hello
I've created several handlers (server-side).  Because i'm not farmiliar with 
Axis and WSDL i'm not sure where to go next

Now i have my andlers i need them to talk to each other from a client.
I need to write a client, whether this is a simple html, jsp doen't matter.
I need my client to talk to my server-side code and create a SOAP header.  
Then I need to pass back the MessageContext from the client back to the 
server-side where it can look for a certainsoap header and process it

Can anyone help me here
_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters



Re:Please Help Me! java.lang.IllegalArgumentException: localPart cannot be null

2005-04-02 Thread angeloimm
Any ideas? I'm still blocked to this point and i'm not able to go on.. Please 
any suggestion will be welcome.
Thanks

-- Initial Header ---

>From  : "angeloimm" [EMAIL PROTECTED]
To  : "Axis Axis" axis-user@ws.apache.org
Cc  :
Date  : Thu, 31 Mar 2005 23:58:02 +0200
Subject : Please Help Me! java.lang.IllegalArgumentException: localPart cannot  
be null

> Hi all. I'm using Axis RC1.2 under JBoss 3.2.6, JDK 1.4.2_07 and Windows XP 
> Home edition.
> Well... i have this simple client:
>
> package it.eng.test.client.util;
> 
> import org.apache.axis.client.Call;
> import org.apache.axis.client.Service;
> import org.apache.axis.message.SOAPBodyElement;
> import org.apache.axis.utils.XMLUtils;
> import javax.xml.rpc.ServiceException;
> 
> import java.util.Vector;
> import org.w3c.dom.Document;
> import javax.xml.namespace.QName;
>
> import org.apache.log4j.Logger;
> import java.net.URL;
> import java.net.MalformedURLException;
>
>
> /**
>  * Title: Prototipo Piattaforma PMM piattaforma per la gestione di Web
>  * Services
>  *
>  * Description: Prototipo semplice per la costruzione della piattaforma PMM
>  * utilizzata per interagire con dei web services.
>  *
>  * Copyright: Copyright (c) 2005
>  *
>  * Company: Engineering Ingegneria Informatica
>  *
>  * @author Angelo Immediata
>  * @version 1.0
>  */
> public class SimpleAxisClient {
>
> /**
>  * Il logger
>  */
> private static final Logger LOG = Logger.getLogger(SimpleAxisClient.class.
> getName());
>
> /**
>  * Preparo il l'oggetto Call da utilizzare
>  * @param endpoint String -l'endpoint da utilizzare
>  * @param operation String -l'operazione da invocare
>  * @return Call -il Call generato.
>  * @throws ServiceException -Se ci sono problemi col servizio
>  */
> private Call getCall(String endpoint, String operation) throws
> ServiceException {
>
> if (LOG.isDebugEnabled()) {
>
> LOG.debug("Creating call.");
> }
> Call result = (Call)(new Service()).createCall();
> try {
> result.setTargetEndpointAddress(new URL(endpoint));
> } catch (MalformedURLException ex) {
>
> LOG.error( ex );
> }
>
> result.setOperation( new QName( endpoint, operation ), operation );
> if (LOG.isDebugEnabled()) {
>
> LOG.debug("Done!!");
> }
> return result;
> }
>
> /**
>  * Invoco il web service passandogli il Document generato dalla classe 
> it.eng.prototype.xml.Parser
>  * @param doc Document -il Document generato.
>  * @param endpoint String -l'endpoint del servizio.
>  * @param operation String -l'operazione da invocare.
>  * @return Document -il document in uscita al webService
>  * @throws Exception
>  */
> public Document getDocument(Document doc, String endpoint,
>   String operation) throws Exception {
> Call call = getCall(endpoint, operation);
> Vector result = (Vector) call.invoke
> (new SOAPBodyElement[] {new SOAPBodyElement(doc.
> getDocumentElement())});
> SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);
> if( LOG.isDebugEnabled() ){
>
> LOG.debug("Body ricevuto: " +
>   XMLUtils.DocumentToString(sbe.getAsDocument()));
> }
> return sbe.getAsDocument();
> }
> }
>
> When i try to invoke the web service by using Axis in this way:
>
> try {
> Document doc = client.getDocument(createDocument( data ),
> 
> "http://localhost:8082/ServicePublisher/services/Searcher";,
>   "byFiscalCode");
> if( LOG.isDebugEnabled() ){
>
> LOG.debug( "Ho ottenuto questo Document in risposta: " );
> LOG.debug(XMLUtil.domToString(doc));
> }
> } catch (Exception ex) {
>
> ex.printStackTrace();
> LOG.error( ex );
> }
>
> I have this error that is driving me to become crazy:
> 2005-03-31 23:47:53,698 DEBUG [it.eng.test.client.util.SimpleAxisClient] 
> Creating call.
> 2005-03-31 23:47:53,778 DEBUG [it.eng.test.client.util.SimpleAxisClient] 
> Done!!
> 2005-03-31 23:47:53,828 INFO  [STDOUT] java.lang.IllegalArgumentException: 
> localPart cannot be 

Re:Please Help Me! java.lang.IllegalArgumentException: localPart cannot be null

2005-04-02 Thread angeloimm


-- Initial Header ---

>From  : "angeloimm" [EMAIL PROTECTED]
To  : "Axis Axis" axis-user@ws.apache.org
Cc  :
Date  : Thu, 31 Mar 2005 23:58:02 +0200
Subject : Please Help Me! java.lang.IllegalArgumentException: localPart cannot  
be null

> Hi all. I'm using Axis RC1.2 under JBoss 3.2.6, JDK 1.4.2_07 and Windows XP 
> Home edition.
> Well... i have this simple client:
>
> package it.eng.test.client.util;
>
> import org.apache.axis.client.Call;
> import org.apache.axis.client.Service;
> import org.apache.axis.message.SOAPBodyElement;
> import org.apache.axis.utils.XMLUtils;
> import javax.xml.rpc.ServiceException;
>
> import java.util.Vector;
> import org.w3c.dom.Document;
> import javax.xml.namespace.QName;
>
> import org.apache.log4j.Logger;
> import java.net.URL;
> import java.net.MalformedURLException;
>
>
> /**
>  * Title: Prototipo Piattaforma PMM piattaforma per la gestione di Web
>  * Services
>  *
>  * Description: Prototipo semplice per la costruzione della piattaforma PMM
>  * utilizzata per interagire con dei web services.
>  *
>  * Copyright: Copyright (c) 2005
>  *
>  * Company: Engineering Ingegneria Informatica
>  *
>  * @author Angelo Immediata
>  * @version 1.0
>  */
> public class SimpleAxisClient {
>
> /**
>  * Il logger
>  */
> private static final Logger LOG = Logger.getLogger(SimpleAxisClient.class.
> getName());
>
> /**
>  * Preparo il l'oggetto Call da utilizzare
>  * @param endpoint String -l'endpoint da utilizzare
>  * @param operation String -l'operazione da invocare
>  * @return Call -il Call generato.
>  * @throws ServiceException -Se ci sono problemi col servizio
>  */
> private Call getCall(String endpoint, String operation) throws
> ServiceException {
>
> if (LOG.isDebugEnabled()) {
> 
> LOG.debug("Creating call.");
> }
> Call result = (Call)(new Service()).createCall();
> try {
> result.setTargetEndpointAddress(new URL(endpoint));
> } catch (MalformedURLException ex) {
>
> LOG.error( ex );
> }
>
> result.setOperation( new QName( endpoint, operation ), operation );
> if (LOG.isDebugEnabled()) {
>
> LOG.debug("Done!!");
> }
> return result;
> }
>
> /**
>  * Invoco il web service passandogli il Document generato dalla classe 
> it.eng.prototype.xml.Parser
>  * @param doc Document -il Document generato.
>  * @param endpoint String -l'endpoint del servizio.
>  * @param operation String -l'operazione da invocare.
>  * @return Document -il document in uscita al webService
>  * @throws Exception
>  */
> public Document getDocument(Document doc, String endpoint,
>   String operation) throws Exception {
> Call call = getCall(endpoint, operation);
> Vector result = (Vector) call.invoke
> (new SOAPBodyElement[] {new SOAPBodyElement(doc.
> getDocumentElement())});
> SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);
> if( LOG.isDebugEnabled() ){
>
> LOG.debug("Body ricevuto: " +
>   XMLUtils.DocumentToString(sbe.getAsDocument()));
> }
> return sbe.getAsDocument();
> }
> }
>
> When i try to invoke the web service by using Axis in this way:
>
> try {
> Document doc = client.getDocument(createDocument( data ),
> 
> "http://localhost:8082/ServicePublisher/services/Searcher";,
>   "byFiscalCode");
> if( LOG.isDebugEnabled() ){
>
> LOG.debug( "Ho ottenuto questo Document in risposta: " );
> LOG.debug(XMLUtil.domToString(doc));
> }
> } catch (Exception ex) {
>
> ex.printStackTrace();
> LOG.error( ex );
> }
>
> I have this error that is driving me to become crazy:
> 2005-03-31 23:47:53,698 DEBUG [it.eng.test.client.util.SimpleAxisClient] 
> Creating call.
> 2005-03-31 23:47:53,778 DEBUG [it.eng.test.client.util.SimpleAxisClient] 
> Done!!
> 2005-03-31 23:47:53,828 INFO  [STDOUT] java.lang.IllegalArgumentException: 
> localPart cannot be null
> 2005-03-31 23:47:53,828 INFO  [STDOUT]at 
> javax.xml.namespace.QName.(QName.java:106)
> 2005-03-31 23:47:53,828 I

Please Help Me! java.lang.IllegalArgumentException: localPart cannot be null

2005-03-31 Thread angeloimm
Hi all. I'm using Axis RC1.2 under JBoss 3.2.6, JDK 1.4.2_07 and Windows XP 
Home edition.
Well... i have this simple client:

package it.eng.test.client.util;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.message.SOAPBodyElement;
import org.apache.axis.utils.XMLUtils;
import javax.xml.rpc.ServiceException;

import java.util.Vector;
import org.w3c.dom.Document;
import javax.xml.namespace.QName;

import org.apache.log4j.Logger;
import java.net.URL;
import java.net.MalformedURLException;


/**
 * Title: Prototipo Piattaforma PMM piattaforma per la gestione di Web
 * Services
 *
 * Description: Prototipo semplice per la costruzione della piattaforma PMM
 * utilizzata per interagire con dei web services.
 *
 * Copyright: Copyright (c) 2005
 *
 * Company: Engineering Ingegneria Informatica
 *
 * @author Angelo Immediata
 * @version 1.0
 */
public class SimpleAxisClient {

/**
 * Il logger
 */
private static final Logger LOG = Logger.getLogger(SimpleAxisClient.class.
getName());

/**
 * Preparo il l'oggetto Call da utilizzare
 * @param endpoint String -l'endpoint da utilizzare
 * @param operation String -l'operazione da invocare
 * @return Call -il Call generato.
 * @throws ServiceException -Se ci sono problemi col servizio
 */
private Call getCall(String endpoint, String operation) throws
ServiceException {

if (LOG.isDebugEnabled()) {

LOG.debug("Creating call.");
}
Call result = (Call)(new Service()).createCall();
try {
result.setTargetEndpointAddress(new URL(endpoint));
} catch (MalformedURLException ex) {

LOG.error( ex );
}

result.setOperation( new QName( endpoint, operation ), operation );
if (LOG.isDebugEnabled()) {

LOG.debug("Done!!");
}
return result;
}

/**
 * Invoco il web service passandogli il Document generato dalla classe 
it.eng.prototype.xml.Parser
 * @param doc Document -il Document generato.
 * @param endpoint String -l'endpoint del servizio.
 * @param operation String -l'operazione da invocare.
 * @return Document -il document in uscita al webService
 * @throws Exception
 */
public Document getDocument(Document doc, String endpoint,
  String operation) throws Exception {
Call call = getCall(endpoint, operation);
Vector result = (Vector) call.invoke
(new SOAPBodyElement[] {new SOAPBodyElement(doc.
getDocumentElement())});
SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);
if( LOG.isDebugEnabled() ){

LOG.debug("Body ricevuto: " +
  XMLUtils.DocumentToString(sbe.getAsDocument()));
}
return sbe.getAsDocument();
}
}

When i try to invoke the web service by using Axis in this way:

try {
Document doc = client.getDocument(createDocument( data ),
"http://localhost:8082/ServicePublisher/services/Searcher";,
  "byFiscalCode");
if( LOG.isDebugEnabled() ){

LOG.debug( "Ho ottenuto questo Document in risposta: " );
LOG.debug(XMLUtil.domToString(doc));
}
} catch (Exception ex) {

ex.printStackTrace();
LOG.error( ex );
}

I have this error that is driving me to become crazy:
2005-03-31 23:47:53,698 DEBUG [it.eng.test.client.util.SimpleAxisClient] 
Creating call.
2005-03-31 23:47:53,778 DEBUG [it.eng.test.client.util.SimpleAxisClient] Done!!
2005-03-31 23:47:53,828 INFO  [STDOUT] java.lang.IllegalArgumentException: 
localPart cannot be null
2005-03-31 23:47:53,828 INFO  [STDOUT]  at 
javax.xml.namespace.QName.(QName.java:106)
2005-03-31 23:47:53,828 INFO  [STDOUT]  at 
javax.xml.namespace.QName.(QName.java:81)
2005-03-31 23:47:53,828 INFO  [STDOUT]  at 
org.apache.axis.message.PrefixedQName.(PrefixedQName.java:30)
2005-03-31 23:47:53,828 INFO  [STDOUT]  at 
org.apache.axis.message.MessageElement.copyNode(MessageElement.java:2045)
2005-03-31 23:47:53,828 INFO  [STDOUT]  at 
org.apache.axis.message.MessageElement.copyNode(MessageElement.java:1997)
2005-03-31 23:47:53,848 INFO  [STDOUT]  at 
org.apache.axis.message.MessageElement.(MessageElement.java:197)
2005-03-31 23:47:53,848 INFO  [STDOUT]  at 
org.apache.axis.message.SOAPBodyElement.(SOAPBodyElement.java:70)
2005-03-31 23:47:53,848 INFO  [STDOUT]  at 
it.eng.test.client.util.SimpleAxisClient.getDocument(SimpleAxisClient.java:81)
2005-03-31 23:47:53,848 INFO  [STDOUT]  at 
it.eng.test.client.Dispatcher.doPost(Dispatcher.java:46)
2005-03-31 23:47:53,848 INFO  [STDOUT]  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2005-03-31 23:47:53,848 INFO  [STDOUT]  at 
javax.servlet.http.HttpServlet.service(Htt