Auditing support for Apache Rampart

2008-03-17 Thread Heshan Suriyaarachchi
Hi

I am a 3rd year Computer Science undergraduate of University of Colombo
School of Computing (UCSC) . I am hoping to participate in this year's
Google Summer of Code. I went through the Apache Project Idea's List and
found this project interesting.

Apache Rampart is the security module of Axis2. It secures SOAP messages
according to specifications in the WS-Security stack. Rampart currently
doesn't store the auditing details about SOAP messages. As it is said
systematic audit record generation is considered a mission-critical function
in any software development environment.

Most COTS (Commercial Off The Shelf) Web servers include an audit or
security event logging service that provides the application with the
mechanism it needs to log security events to multiple logs. Configurable
property- driven parameters allow the administrator to modify the semantics
of the application's log data capture without needing to rewrite the
application code.

Currently there is no standards/specifications regarding this and it is an
implementation specific thing. So I would like to start an open discussion
on the main features and the additional features that should be implemented
under this project and I need Axis2/Rampart users to give feedback so I can
refine the requirements and features.

Thanx in advance
Heshan Suriyaarachchi


Re: set timeout for web service

2008-03-17 Thread Michele Mazzucco

Henry,

this question has already been asked several times -- the problem is  
on the client side, not the server side. Options.setTimeout will do  
the job.


Michele

On 17 Mar 2008, at 22:35, henry human wrote:


Hi
I have a web service created using WSDL2Java.
Because the clients’ requests sometime need more than
30 seconds to be done, it is required to increase the
timeout in the web service.
Increasing the timeout in the axis2.xml did not help
and the service still breaks after 30 seconds with an
error: read timeout!
How could I set the timeout in the web service?

Thanks
Henry


  E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go

-
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]



Re: set timeout for web service

2008-03-17 Thread Arlindo Luis Marcon Junior

Hi...

in the client side...

maybe,,, you tried use the method "setTimeOutInMilliSeconds();"
in client code,,, further increase the timeout in the axis2.xml file

sample:
Options options = new Options();
options.setTimeOutInMilliSeconds();


[/jr]

henry human escreveu:
Hi 
I have a web service created using WSDL2Java.

Because the clients’ requests sometime need more than
30 seconds to be done, it is required to increase the
timeout in the web service.
Increasing the timeout in the axis2.xml did not help
and the service still breaks after 30 seconds with an
error: read timeout!
How could I set the timeout in the web service?

Thanks
Henry


  E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go

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


  



--
Arlindo Luis Marcon Junior
E-mail: [EMAIL PROTECTED]
Internet Web Page: http://lattes.cnpq.br/6483462042489662
ICQ: 138864173
Curitiba - Paraná - Brasil



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



set timeout for web service

2008-03-17 Thread henry human
Hi 
I have a web service created using WSDL2Java.
Because the clients’ requests sometime need more than
30 seconds to be done, it is required to increase the
timeout in the web service.
Increasing the timeout in the axis2.xml did not help
and the service still breaks after 30 seconds with an
error: read timeout!
How could I set the timeout in the web service?

Thanks
Henry


  E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go

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



SOAP faults for parts of the message?

2008-03-17 Thread mikle

I am working on a web service which accepts arrays of items for posting..
some may be accepted, others not..

I don't want the clients to have to resend the whole message..

I have thought about sending back an array of rejected items with the reason
along with the correlationID.. but I read that null arrays (in case of no
rejected items) are problematic and not good for interop..

I'm not sure how SOAP faults work..is it possible to return faults together
with a response?

Mike
-- 
View this message in context: 
http://www.nabble.com/SOAP-faults-for-parts-of-the-message--tp16103225p16103225.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Re: classloading question with axis2 and jboss

2008-03-17 Thread Lucente, Richard D
The issue has to do with class loading order.  After a serious round of
debugging, what I found was that the tomcat classloader attempts to load
the class then fails.  The parent classloader within JBoss attempts to
load the class then fails.  Finally axis2 loads the class using the web
service's classloader from the service.aar's lib directory.  In a
generic case, this is how things worked in my deployment.
 
The issue I'm having is that I'm attempting to override the
javax.xml.registry.* classes shipped with JBoss with updated interfaces
to talk to a third party provider.  My service.aar contains a lib
directory with the custom jars inside.  However, the classloading scheme
described above causes the JBoss javax.xml.registry.* classes to always
be found first.  I never can load from my classloader.  When I attempted
to get the service classloader from the current MessageContext, I still
got the tomcat classloader which failed and then delegated to JBoss.
JBoss then loaded its implementation.
 
I'm using JBoss 4.0.5.GA and Axis2-1.2.
 
Can I change the classloading order so the service.aar's classloader
goes first?
 
Help!


Java Web Start and Axis2 problems

2008-03-17 Thread Lucio Agostinho Rocha
Hi,

I'm trying to realize a communication between a java web start (JWS) program 
and a web service but when I invoke a call inside JWS program this JWS stop to 
response. Some suggestions? I'm trying the 'quickstartadb' code in samples 
axis2 folder.

The JWS code:

try{
StockQuoteServiceStub stub =
new StockQuoteServiceStub
("http://"; + enderecoIPServidor + 
":8080/axis2/services/StockQuoteService");

getPrice(stub);
update(stub);

} catch(Exception e){
e.printStackTrace();
System.err.println("\n\n\n");
}



   
-
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento! 

RE: [AXIS2] RESTful using Sun JAX-RS and AXIS2 SOAP

2008-03-17 Thread Venkatesh Jayaraman (jvenky)
https://issues.apache.org/jira/browse/AXIS2-3619

 

Created JIRA for this.

 

Thank You.

-Venky

 



From: Brian De Pradine [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 11:34 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] RESTful using Sun JAX-RS and AXIS2 SOAP

 


Hi Venky, 

This is definitely not in the next release of axis2 (i.e. version 1.4),
but feel free to raise a JIRA so that it may be considered for a future
release. 

Cheers

Brian DePradine
Web Services Development
IBM Hursley
External  +44 (0) 1962 816319 Internal 246319

If you can't find the time to do it right the first time, where will you
find the time to do it again?


"Venkatesh Jayaraman (jvenky)" <[EMAIL PROTECTED]> wrote on 17/03/2008
16:25:12:

> Added AXIS2 header to get attention.
> 
> Are we planning to support WADL ??
> 
> Thanks
> 
> -Venky
> 
> -Original Message-
> From: Venkatesh Jayaraman (jvenky) 
> Sent: Sunday, March 16, 2008 12:32 PM
> To: axis-user@ws.apache.org
> Subject: RESTful using Sun JAX-RS and AXIS2 SOAP
> 
> I see sun is publishing following link for RESTful interface /JAX-RS
> 
> http://blogs.sun.com/sandoz/resource/TS-6411.pdf
> 
> Are we planning to use JAX-RS binding in AXIS2??
> 
> Thanks for your response in advance.
> 
> -Venky
> 
> -
> 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]
> 






 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU 









Re: [AXIS2] RESTful using Sun JAX-RS and AXIS2 SOAP

2008-03-17 Thread Brian De Pradine
Hi Venky,

This is definitely not in the next release of axis2 (i.e. version 1.4), 
but feel free to raise a JIRA so that it may be considered for a future 
release.

Cheers

Brian DePradine
Web Services Development
IBM Hursley
External  +44 (0) 1962 816319 Internal 246319

If you can't find the time to do it right the first time, where will you 
find the time to do it again?


"Venkatesh Jayaraman (jvenky)" <[EMAIL PROTECTED]> wrote on 17/03/2008 
16:25:12:

> Added AXIS2 header to get attention.
> 
> Are we planning to support WADL ??
> 
> Thanks
> 
> -Venky
> 
> -Original Message-
> From: Venkatesh Jayaraman (jvenky) 
> Sent: Sunday, March 16, 2008 12:32 PM
> To: axis-user@ws.apache.org
> Subject: RESTful using Sun JAX-RS and AXIS2 SOAP
> 
> I see sun is publishing following link for RESTful interface /JAX-RS
> 
> http://blogs.sun.com/sandoz/resource/TS-6411.pdf
> 
> Are we planning to use JAX-RS binding in AXIS2??
> 
> Thanks for your response in advance.
> 
> -Venky
> 
> -
> 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]
> 






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







Interop problems with .Net and Axis 2 using MTOM

2008-03-17 Thread Amo23

I used Axis 2 to create an MTOM enabled client and a service that sends a PDF
as a byte[].

I then took the clients C# WSDL and generated the necessary files using
WSDL2Java and created a client just like i did in Java.

I keep getting the following error.

The client code has been added after the error.

Can someone point out what im doing wrong here or guide me as to what i have
to do ?

Thanks,


___
Exception in thread "main" org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
com.myceridianprototype.StorePDFforArchivingStub.UploadDocument(StorePDFforArchivingStub.java:196)
at com.myceridianprototype.LocalClient.main(LocalClient.java:47)
Caused by: java.lang.NullPointerException
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:156)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
... 6 more

import javax.activation.FileDataSource;
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMText;
import org.apache.axis2.Constants;

import com.amo.service.TestServiceStub;
import com.amo.service.TestServiceStub.WritetoFileSystem;

public class ExihibitAClient {

private static final String EPR =
"http://localhost/services/TestService/Test.asmx";;

private static final String INPUT_FILE = "C:\\HOLD\\small.pdf";

public static void main(String[] args) throws Exception

{
System.out.println("In the TestClient Main Method");
System.out.println("EPR: "+EPR);
System.out.println("Input File Name: "+INPUT_FILE);
TestServiceStub stub = new TestServiceStub(EPR);

stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);

stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(1);


javax.activation.DataHandler dataHandler = new
javax.activation.DataHandler(new FileDataSource(INPUT_FILE));

WritetoFileSystem write = new WritetoFileSystem();
write.setFilename("outputfile.pdf");
write.setArray(dataHandler);

stub.writetoFileSystem(write);
System.out.println("done calling service...");

}



}
___
-- 
View this message in context: 
http://www.nabble.com/Interop-problems-with-.Net-and-Axis-2-using-MTOM-tp16097043p16097043.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



how to get axis2 to process annotations

2008-03-17 Thread Virtual Light
I have been looking and not finding much about axis2 annotation processing.  
How do I get axis2 to process annotations?  

Bill


Issue with generated wsdl when https is enabled

2008-03-17 Thread sgopal

Hi,
We have axis running under tomcat and Apache as the webserver.
This was the wsdl that was generated when https was not enabled in Apache

 

http://10.1.1.151:10130/axis2/services/ActiveDormantWebService"; /> 


http://10.1.1.151:10130/axis2/services/ActiveDormantWebService"; /> 


http://10.1.1.151:10130/axis2/services/ActiveDormantWebService"; /> 

  


After enabling https in Apache, the following wsdl is being generated by
axis where in the 
port name has changed from http to http1. 
This creates issues when using JAX-WS or RPC.

 

https://10.1.1.151:10160/axis2/services/ActiveDormantWebService";
/> 


http://10.1.1.151:10130/axis2/services/ActiveDormantWebService"; /> 


https://10.1.1.151:10160/axis2/services/ActiveDormantWebService";
/> 


http://10.1.1.151:10130/axis2/services/ActiveDormantWebService"; /> 


https://10.1.1.151:10160/axis2/services/ActiveDormantWebService";
/> 


http://10.1.1.151:10130/axis2/services/ActiveDormantWebService"; /> 

  



Thanks for your help,
Srinivasan
-- 
View this message in context: 
http://www.nabble.com/Issue-with-generated-wsdl-when-https-is-enabled-tp16097040p16097040.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



[Axis2] how to create custom serializer for only one part of a message

2008-03-17 Thread Larry Strollo
An xsd file shared by all of my wsdls defines a common simple datatype.  I
need to encrypt/decrypt this datatype any time it's used in any message.  I
spent the last few hours searching the archives, and I came across several
threads that show how to create a custom serializer for a specific message,
but nothing on how to do this for only one specific XML bean so that it's
picked up automatically by all messages.Can anyone offer advice, or
point me towards somewhere else to look?

Thanks
Larry Strollo


[AXIS2] RESTful using Sun JAX-RS and AXIS2 SOAP

2008-03-17 Thread Venkatesh Jayaraman (jvenky)
Added AXIS2 header to get attention.

Are we planning to support WADL ??

Thanks

-Venky

-Original Message-
From: Venkatesh Jayaraman (jvenky) 
Sent: Sunday, March 16, 2008 12:32 PM
To: axis-user@ws.apache.org
Subject: RESTful using Sun JAX-RS and AXIS2 SOAP

I see sun is publishing following link for RESTful interface /JAX-RS

http://blogs.sun.com/sandoz/resource/TS-6411.pdf

Are we planning to use JAX-RS binding in AXIS2??

Thanks for your response in advance.

-Venky

-
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]



WebService.endpointInterface annotation when web service is started programatically with SimpleHTTPServer

2008-03-17 Thread Mihai Rus

Hello everybody,

I'm using Axis2 1.3 with Jdk1.6.0_04. I want to deploy an annotated POJO as
a web service, programmatically, using SimpleHTTPServer. I want to use an
endpoint interface for this POJO, so I can filter the methods that will be
used by the web service, but the WebService.endpointInterface annotation
seems not to be taken into account by Axis. Here is my POJO and interface:

package test;

import java.rmi.RemoteException;

import javax.jws.WebService;

@WebService(endpointInterface = "test.TestPojoInterface")
public class TestPojo implements TestPojoInterface{
  
  public String echo(String s) throws RemoteException{
return s;
  }
  
  public String testEcho(String s) {
return s;
  }

}


package test;

import java.rmi.RemoteException;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService(name = "TestName", serviceName="TestServiceName",
targetNamespace = "http://www.isdc.ro";)
public interface TestPojoInterface {

  @WebMethod
  public String echo(String s) throws RemoteException; 
}

By deploying this POJO :


AxisService axisService = AxisService.createService(
  TestPojo.class.getName(), 
  context.getAxisConfiguration());

SimpleHTTPServer server = new SimpleHTTPServer(context, PORT);
server.start();

I get a deployed service named TestPojo (I have given another name in the
annotated interface), with 2 methods (I have only one method in the
annotated interface)

The service has the following wsdl:

http://www.nabble.com/file/p16093693/TestPojo.xml TestPojo.xml 


Does Axis2 1.3 know how to interpret WebService.endpointInterface
annotation

The only annotation which seams to be taken into account is
WebService.targetNamespace, when I used just a POJO, without an interface. 

Kind regards,
Mihai Rus
-- 
View this message in context: 
http://www.nabble.com/WebService.endpointInterface-annotation-when-web-service-is-started-programatically-with-SimpleHTTPServer-tp16093693p16093693.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis2 and NTLM

2008-03-17 Thread Natalia Ignatowicz
I finally got it working!
Thanks a lot for your advices, Ajith!

Greetings,
Natalia


 Original-Nachricht 
> Datum: Wed, 12 Mar 2008 16:00:07 -0400
> Von: "Ajith Ranabahu" <[EMAIL PROTECTED]>
> An: axis-user@ws.apache.org
> Betreff: Re: Axis2 and NTLM

> Hi,
> I am not an expert in this part of the API but here is what I
> understand. Please see my comments inline.
> 
> On Wed, Mar 12, 2008 at 6:40 AM, Natalia Ignatowicz
> <[EMAIL PROTECTED]> wrote:
> > I've already found that page but it didn't help. Some parts of the code
> are deprecated (HttpTransportProperties.NTLMAuthentication and
> HTTPConstants.NTLM_Authentication don't exist in Axis2 1.3).
> >
> 
> AFAIK if you are looking for NTLM on the server side then Axis2 would
> have nothing to do with it (except for the case where Simple Axis
> server is used. But I don't see why you would do that in production
> anyway). Your container (say Tomcat) should be configured to handle
> such things and Axis2 would not see it (nor would want to). For NTLM
> on Tomcat you can use something like this
> (http://jcifs.samba.org/src/docs/ntlmhttpauth.html)
> 
> 
> >  Maybe I'm missing some basic points here. Is it even possible for an
> Axis-Webservice to request NTLM-Auth? If yes, then how has the server to be
> configured? Or is NTLM only supported for Axis-Clients connecting to a
> .NET-Webservice or something like that?
> 
> Basically the answer to this is yes. The NTLM support and
> configuration mentioned in all Axis2-NTLM docs are for the client (see
> my comment on top). Since the client is based on Commons HTTPClient
> you might find some useful info here
> (http://hc.apache.org/httpclient-3.x/authentication.html#NTLM)
> 
> HTH
> 
> Ajith
> 
> >
> >  Greets,
> >  Natalia
> >
> 
> 
> 
> -- 
> Ajith Ranabahu
> 
> Reading, after a certain age, diverts the mind too much from its
> creative pursuits. Any man who reads too much and uses his own brain
> too little falls into lazy habits of thinking - Albert Einstein
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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



Re: Axis 2 client, Axis 1.4 server, unexpected element

2008-03-17 Thread Richard Fagot
I would like to add sent soap messages :


  http://schemas.xmlsoap.org/soap/envelope/";>
 
http://ws.awas.ext"; />
 
  



http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   
  http://ws.awas.ext";>
 

   une
   deux
   trois

ursula
 
  
   


2008/3/17, Richard Fagot <[EMAIL PROTECTED]>:
> Hi all,
>
>I have to create a web service with a lot of operations. On the
>  server side, I must use axis 1.4. On the client side I must use Axis
>  2-1.3.
>For the server I have written an interface representing all
>  operations (multiple complex arguments, complex returns) and the
>  implementation of these interface and then generated the correspondant
>  WSDL. I used this WSDL for the client side in Axis 2. At execution the
>  client throw an exception of the type : org.apache.axis2.AxisFault:
>  org.apache.axis2.databinding.ADBException: Unexpected subelement
>  MyElement
>
>   I have generated and used with success a client made with Axis 1.4.
>  I have simplified the server interface begining with a method with no
>  argument returning a simple string until I encounter the same issue as
>  with the complete WS. This exception appears when the return object is
>  a complex one containing an array of values.
>
>   Here is the minimal sample generating the exception. Help is welcom :)
>
>   Server Side (Axis 1.4) - Generation of the WSDL 
>
>  
>   
> serviceelementname="awas" bindingName="awas" style="WRAPPED"
>  namespace="http://ws.awas.ext";
>  
> location="http://${java.rmi.server.hostname}/${wt.server.id}/servlet/service/awas";
>  output="${wsdl.file}">
>
>http://ws.awas.ext"; package="ext.awas.ws" />
>   
>  
>
>   Server Side (Axis 1.4) - WS Interface Class 
>  package ext.awas.ws;
>
>  public interface AwasWS {
>
>SimpleObject getUrsula();
>  }
>
>   Server Side (Axis 1.4) - Returned type 
>  package ext.awas.ws;
>
>  public class SimpleObject {
>private String name;
>private String[] values;
>
>public SimpleObject() {
>name = "";
>values = new String[0];
>}
>
>public void setName(String name) {
>this.name = name;
>}
>
>public String getName() {
>return name;
>}
>
>public void setValues(String[] values) {
>this.values = values;
>}
>
>public String[] getValues() {
>return values;
>}
>  }
>
>   Client Side (Axis 2-1.3) - Generation of the client part *
> classname="org.apache.axis2.tool.ant.AntCodegenTask"
>  classpathref="axis.classpath"/>
>
>  wsdlfilename="${basedir}/wsdl/awas.wsdl" unpackclasses="true"
>  serverside="false" unwrap="yes"/>
>
>
>
>   Client Side (Axis 2-1.3) - WS call 
>  try {
>ConfigurationContext configContext =
>  ConfigurationContextFactory.createDefaultConfigurationContext();
>
>AwasStub stub = new AwasStub(configContext,
>"http://localhost:9090/servlet/service/awas";);
>
>SimpleObject ursula = stub.getUrsula(new GetUrsula());
>
>System.out.println(ursula.getName());
>ArrayOf_xsd_string values = ursula.getValues();
>String[] item = values.getItem();
>for (int i = 0; i < item.length; i++) {
>System.out.println(item[i]);
>}
>  } catch (Exception e) {
>e.printStackTrace();
>  }
>
>   The Exception (exists only on the client side) 
>  org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
>  Unexpected subelement values
>at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>at ext.awas.ws.AwasStub.fromOM(AwasStub.java:431)
>at ext.awas.ws.AwasStub.getUrsula(AwasStub.java:146)
>at ext.airbus.axis2.auth.Axis2AuthTest.main(Axis2AuthTest.java:45)
>  Caused by: java.lang.Exception:
>  org.apache.axis2.databinding.ADBException: Unexpected subelement
>  values
>at ext.awas.ws.SimpleObject$Factory.parse(SimpleObject.java:509)
>at 
> ext.awas.ws.GetUrsulaResponse$Factory.parse(GetUrsulaResponse.java:377)
>at ext.awas.ws.AwasStub.fromOM(AwasStub.java:428)
>... 2 more
>  Caused by: org.apache.axis2.databinding.ADBException: Unexpected
>  subelement values
>at ext.awas.ws.SimpleObject$Factory.parse(SimpleObject.java:467)
>... 4 more
>  sincerely,
>  Richard Fagot
>
>  --
>  
> -
>  Richard Fagot  Mail : [EMAIL PROTECTED]
>
>  Genigraph   

Axis 2 client, Axis 1.4 server, unexpected element

2008-03-17 Thread Richard Fagot
Hi all,

   I have to create a web service with a lot of operations. On the
server side, I must use axis 1.4. On the client side I must use Axis
2-1.3.
   For the server I have written an interface representing all
operations (multiple complex arguments, complex returns) and the
implementation of these interface and then generated the correspondant
WSDL. I used this WSDL for the client side in Axis 2. At execution the
client throw an exception of the type : org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unexpected subelement
MyElement

  I have generated and used with success a client made with Axis 1.4.
I have simplified the server interface begining with a method with no
argument returning a simple string until I encounter the same issue as
with the complete WS. This exception appears when the return object is
a complex one containing an array of values.

 Here is the minimal sample generating the exception. Help is welcom :)

 Server Side (Axis 1.4) - Generation of the WSDL 


 
 http://ws.awas.ext";
location="http://${java.rmi.server.hostname}/${wt.server.id}/servlet/service/awas";
output="${wsdl.file}">
   
   http://ws.awas.ext"; package="ext.awas.ws" />
 


 Server Side (Axis 1.4) - WS Interface Class 
package ext.awas.ws;

public interface AwasWS {

   SimpleObject getUrsula();
}

 Server Side (Axis 1.4) - Returned type 
package ext.awas.ws;

public class SimpleObject {
   private String name;
   private String[] values;

   public SimpleObject() {
   name = "";
   values = new String[0];
   }

   public void setName(String name) {
   this.name = name;
   }

   public String getName() {
   return name;
   }

   public void setValues(String[] values) {
   this.values = values;
   }

   public String[] getValues() {
   return values;
   }
}

 Client Side (Axis 2-1.3) - Generation of the client part *
 
   
   
   


 Client Side (Axis 2-1.3) - WS call 
try {
   ConfigurationContext configContext =
ConfigurationContextFactory.createDefaultConfigurationContext();

   AwasStub stub = new AwasStub(configContext,
   "http://localhost:9090/servlet/service/awas";);

   SimpleObject ursula = stub.getUrsula(new GetUrsula());

   System.out.println(ursula.getName());
   ArrayOf_xsd_string values = ursula.getValues();
   String[] item = values.getItem();
   for (int i = 0; i < item.length; i++) {
   System.out.println(item[i]);
   }
} catch (Exception e) {
   e.printStackTrace();
}

 The Exception (exists only on the client side) 
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement values
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
   at ext.awas.ws.AwasStub.fromOM(AwasStub.java:431)
   at ext.awas.ws.AwasStub.getUrsula(AwasStub.java:146)
   at ext.airbus.axis2.auth.Axis2AuthTest.main(Axis2AuthTest.java:45)
Caused by: java.lang.Exception:
org.apache.axis2.databinding.ADBException: Unexpected subelement
values
   at ext.awas.ws.SimpleObject$Factory.parse(SimpleObject.java:509)
   at 
ext.awas.ws.GetUrsulaResponse$Factory.parse(GetUrsulaResponse.java:377)
   at ext.awas.ws.AwasStub.fromOM(AwasStub.java:428)
   ... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected
subelement values
   at ext.awas.ws.SimpleObject$Factory.parse(SimpleObject.java:467)
   ... 4 more
sincerely,
Richard Fagot

-- 
-
Richard Fagot  Mail : [EMAIL PROTECTED]

Genigraph   URL : http://www.genigraph.fr
Tertial II
216, route de Saint-SimonTel : +33 (0)5 34 60 92 81
31100 Toulouse, France   Fax : +33 (0)5 34 60 92 89


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



Re: axis 1.4 and ws-addressing

2008-03-17 Thread Doug Davis
Actually, WSA is supported natively in the latest version. See the sample:
http://svn.apache.org/viewvc/webservices/axis/trunk/java/samples/wsa/

thanks
-Doug
__
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  [EMAIL PROTECTED]



"Rushikesh Thakkar" <[EMAIL PROTECTED]> 
03/17/2008 10:16 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: axis 1.4 and ws-addressing







Chek out http://ws.apache.org/sandesha/sandesha1.html to use WS-Addressing 
with Axis 1.4

-Rushikesh

On Mon, Mar 17, 2008 at 9:53 AM, Erwin Reinhoud <[EMAIL PROTECTED]> 
wrote:
Hello All,

Does anyone have an answer?

Thanks in advance.

Kind regards,
Erwin

-Oorspronkelijk bericht-
Van: Erwin Reinhoud
Verzonden: donderdag 13 maart 2008 8:53
Aan: axis-user@ws.apache.org
Onderwerp: axis 1.4 and ws-addressing


Hello All,

Does anybody have a link to apply ws-addressing? I looked at the site and 
did a search but could not find it. Axis 1.4 does support ws-addressing?

Thanks in advance.

Kind regards,

Erwin

-
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]




Re: axis2 axiom client error: com.ctc.wstx.exc.WstxEOFException:

2008-03-17 Thread Peter Hartmann
Hello,

axelspin wrote:
> I guess that the problem is the chunked encoding, but actually I am using anv
> axis2 client to talk with an axis2 service. could it be a network problem
> that can`t handle chunked messages?

I had the same problem using an Axis2 client with a non-Axis2 server, so
I think the problem is Axis-related and not network-related. Trying to
send non-chunked HTTP should work, like this:


stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
false);


stub here is an instance of the generated code stub.


Regards,

Peter


> 
> 
> axelspin wrote:
>> hi All
>> I am using the axis2 client to send a request like the following (TCPmon)
>>
>> POST /axis2/services/Seismolink; HTTP/1.1
>>
>> Content-Type: text/xml; charset=UTF-8
>>
>> SOAPAction: "urn:anonOutInOp"
>>
>> User-Agent: Axis2
>>
>> Host: bsfso1:9101
>>
>> Transfer-Encoding: chunked
>>
>>
>>
>> 247
>>
>> 
>>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>   
>>  
>> 
>> 
>>
>>   
>>  > xmlns="http://www.opengis.net/gml";>2005-04-27T13:05:38
>>  > xmlns="http://www.opengis.net/gml";>2005-04-27T13:10:38
>>   
>>
>>CHIF
>>BHZ
>>.
>> 
>>  
>>   
>>0
>>
>> and I get the following
>>
>> HTTP/1.1 500 Internal Server Error
>>
>> Server: Apache-Coyote/1.1
>>
>> Content-Type: text/xml;charset=UTF-8
>>
>> Date: Mon, 17 Mar 2008 10:12:34 GMT
>>
>> Connection: close
>>
>> Proxy-Connection: close
>>
>>
>>
>> 
>>http://www.w3.org/2005/08/addressing";
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>   
>> 
>> http://www.w3.org/2005/08/addressing/soap/fault
>>   
>>   
>>  
>> 
>> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF
>> in prolog at [row,col {unknown-source}]: [1,0]
>> 
>>  
>>   
>>
>>
>> Now, if I proxy my request trimming the bytes of the body with few changes
>> on the header like:
>>
>> POST /axis2/services/Seismolink HTTP/1.1
>>
>> Content-Type: text/xml
>>
>> SOAPAction: "urn:anonOutInOp"
>>
>> Cache-Control: no-cache
>>
>> Pragma: no-cache
>>
>> User-Agent: Java/1.5.0_07
>>
>> Host: bsfso1:9101
>>
>> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
>>
>> Connection: keep-alive
>>
>> Content-Length: 575
>>
>>
>>
>> 
>>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>   
>>  
>> 
>> 
>>
>>   
>>  > xmlns="http://www.opengis.net/gml";>2005-04-27T13:05:38
>>  > xmlns="http://www.opengis.net/gml";>2005-04-27T13:10:38
>>   
>>
>>CHIF
>>BHZ
>>.
>> 
>>  
>>   
>>
>>
>>
>> it works perfectly..
>>
>> what`s wrong weith the first requests? I am using the SendReceive method
>> of the axis2 client (basic axiom client)
>>
>> It seems I  have to proxy all my request to remove some garbage..!!
>>
>> Please Help!
>>
> 


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



Re: axis 1.4 and ws-addressing

2008-03-17 Thread Rushikesh Thakkar
Chek out http://ws.apache.org/sandesha/sandesha1.html to use WS-Addressing
with Axis 1.4

-Rushikesh

On Mon, Mar 17, 2008 at 9:53 AM, Erwin Reinhoud <[EMAIL PROTECTED]>
wrote:

> Hello All,
>
> Does anyone have an answer?
>
> Thanks in advance.
>
> Kind regards,
> Erwin
>
> -Oorspronkelijk bericht-
> Van: Erwin Reinhoud
> Verzonden: donderdag 13 maart 2008 8:53
> Aan: axis-user@ws.apache.org
> Onderwerp: axis 1.4 and ws-addressing
>
>
> Hello All,
>
> Does anybody have a link to apply ws-addressing? I looked at the site and
> did a search but could not find it. Axis 1.4 does support ws-addressing?
>
> Thanks in advance.
>
> Kind regards,
>
> Erwin
>
> -
> 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]
>
>


Re: org.apache.axis2.dataretrieval.DataRetrievalException

2008-03-17 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Adnan,

Please log a bug report and upload your sample project.

thanks,
dims

Adnan Badar wrote:
| Hi,
| I downloaded latest version of AXIS2-nighly build release date 10-Mar-08.
| Before this, system was working fine with old release (nightly build). I am
| trying to configure new release to check whether AXIS2 generates WSDL WSI
| compliance, Using previous nightly build I am not achieving. If still this
| release is not supporting WSI then below effort is not useful for me.
|
| I am getting below error for one of the web service, this when i click
| service through administration interface. For other services, its working
| all fine but not WSI compliant.
|
| http://localhost:/webservices/services/AnnualFishingService?wsdl
|
|
| This is my services.xml:
|  
| 
|Annual Fishing Service
| 
|
| 
|getAnnualLicenseDelegate
|setAnnualLicenseDelegate
|  
|
|
|   
|   http://www.w3.org/2004/08/wsdl/in-only";
|class="
| org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
|   http://www.w3.org/2004/08/wsdl/in-out";
|class="
| org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
| 
|
| 
|
|
|
| This is the stack trace on server side.
|
| 10:20:00,683 INFO org.apache.axis2.dataretrieval.AxisDataLocatorImpl:83 -
| getData request failed for dialect, http://schemas.xmlsoap.org/wsdl/
| org.apache.axis2.dataretrieval.DataRetrievalException
| at org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(
| WSDLDataLocator.java:134)
| at org.apache.axis2.dataretrieval.WSDLDataLocator.getData(
| WSDLDataLocator.java:73)
| at org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(
| AxisDataLocatorImpl.java:80)
| at org.apache.axis2.description.AxisService.getData(AxisService.java:2616)
| at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1426)
| at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1294)
|
| at org.apache.axis2.transport.http.ListingAgent.processListService(
| ListingAgent.java:287)
| at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:240)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
| at com.evermind.server.http.ServletRequestDispatcher.invoke(
| ServletRequestDispatcher.java:824)
| at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(
| ServletRequestDispatcher.java:330)
| at com.evermind.server.http.HttpRequestHandler.processRequest(
| HttpRequestHandler.java:830)
| at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
|
| at 
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
|
| at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(
| ReleasableResourcePooledExecutor.java:186)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: java.lang.NullPointerException
| at org.apache.axis2.description.AxisService2WSDL11.generateSoap11Binding(
| AxisService2WSDL11.java:1353)
| at org.apache.axis2.description.AxisService2WSDL11.generateSoap11Port(
| AxisService2WSDL11.java:1166)
| at org.apache.axis2.description.AxisService2WSDL11.generateService(
| AxisService2WSDL11.java:493)
| at org.apache.axis2.description.AxisService2WSDL11.generateOM(
| AxisService2WSDL11.java:237)
| at org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(
| WSDLDataLocator.java:130)
| ... 16 more
| 10:33:38,513 INFO org.apache.axis2.dataretrieval.AxisDataLocatorImpl:83 -
| getData request failed for dialect, http://schemas.xmlsoap.org/wsdl/
| org.apache.axis2.dataretrieval.DataRetrievalException
| I need to resolve this urgently for very critical implmenetation, can any
| one help in this regard.
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFH3mbngNg6eWEDv1kRAu5KAJwO0ZUo9sDiq+6rcoxRLWdS/QqChwCgrPJF
0czMNIze0ZsaU1+SyyVCTTs=
=ANV4
-END PGP SIGNATURE-

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



PHP Soap Client and Axis2 problem

2008-03-17 Thread Chino Aureus
Hi All,

I'm currently testing axis2 and have little knowledge about how to use it..
My client is written in PHP:

http://localhost:8080/axis2/services/Temperature?wsdl";, array('exceptions'
=> 0));

try {
  $params   = "Hello World!";
  $result = $client->echo($params);

  print_r($result);
} catch (SoapFault $result) {
  print_r($result);
}
?>

Here's the Pojo I a exposing:

public class Echo {
public String echo(String cValue) {
return cValue;
}

public String getMe() {
return "Hello World";
}

}


My services.xml is



This service is to get the running Axis version

ws.example.Echo









I can successfully invoke getMe but not echo.  No error appears in the log
but it seems the parameter being password to echo is null.

Please advsie how to solve my problem.

Thanks :)


Re: axis2 axiom client error: com.ctc.wstx.exc.WstxEOFException:

2008-03-17 Thread axelspin

I guess that the problem is the chunked encoding, but actually I am using anv
axis2 client to talk with an axis2 service. could it be a network problem
that can`t handle chunked messages?


axelspin wrote:
> 
> hi All
> I am using the axis2 client to send a request like the following (TCPmon)
> 
> POST /axis2/services/Seismolink; HTTP/1.1
> 
> Content-Type: text/xml; charset=UTF-8
> 
> SOAPAction: "urn:anonOutInOp"
> 
> User-Agent: Axis2
> 
> Host: bsfso1:9101
> 
> Transfer-Encoding: chunked
> 
> 
> 
> 247
> 
> 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  
> 
> 
>
>   
>   xmlns="http://www.opengis.net/gml";>2005-04-27T13:05:38
>   xmlns="http://www.opengis.net/gml";>2005-04-27T13:10:38
>   
>
>CHIF
>BHZ
>.
> 
>  
>   
>0
> 
> and I get the following
> 
> HTTP/1.1 500 Internal Server Error
> 
> Server: Apache-Coyote/1.1
> 
> Content-Type: text/xml;charset=UTF-8
> 
> Date: Mon, 17 Mar 2008 10:12:34 GMT
> 
> Connection: close
> 
> Proxy-Connection: close
> 
> 
> 
> 
>http://www.w3.org/2005/08/addressing";
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
> 
> http://www.w3.org/2005/08/addressing/soap/fault
>   
>   
>  
> 
> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF
> in prolog at [row,col {unknown-source}]: [1,0]
> 
>  
>   
>
> 
> Now, if I proxy my request trimming the bytes of the body with few changes
> on the header like:
> 
> POST /axis2/services/Seismolink HTTP/1.1
> 
> Content-Type: text/xml
> 
> SOAPAction: "urn:anonOutInOp"
> 
> Cache-Control: no-cache
> 
> Pragma: no-cache
> 
> User-Agent: Java/1.5.0_07
> 
> Host: bsfso1:9101
> 
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> 
> Connection: keep-alive
> 
> Content-Length: 575
> 
> 
> 
> 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  
> 
> 
>
>   
>   xmlns="http://www.opengis.net/gml";>2005-04-27T13:05:38
>   xmlns="http://www.opengis.net/gml";>2005-04-27T13:10:38
>   
>
>CHIF
>BHZ
>.
> 
>  
>   
>
> 
> 
> it works perfectly..
> 
> what`s wrong weith the first requests? I am using the SendReceive method
> of the axis2 client (basic axiom client)
> 
> It seems I  have to proxy all my request to remove some garbage..!!
> 
> Please Help!
> 

-- 
View this message in context: 
http://www.nabble.com/axis2-axiom-client-error%3A-com.ctc.wstx.exc.WstxEOFException%3A-tp16091937p16092357.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



axis2 axiom client error: com.ctc.wstx.exc.WstxEOFException:

2008-03-17 Thread axelspin

hi All
I am using the axis2 client to send a request like the following (TCPmon)

POST /axis2/services/Seismolink; HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: "urn:anonOutInOp"

User-Agent: Axis2

Host: bsfso1:9101

Transfer-Encoding: chunked



247


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


   
  
 http://www.opengis.net/gml";>2005-04-27T13:05:38
 http://www.opengis.net/gml";>2005-04-27T13:10:38
  
   
   CHIF
   BHZ
   .

 
  
   0

and I get the following

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/xml;charset=UTF-8

Date: Mon, 17 Mar 2008 10:12:34 GMT

Connection: close

Proxy-Connection: close




   http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
  

http://www.w3.org/2005/08/addressing/soap/fault
  
  
 

com.ctc.wstx.exc.WstxEOFException: Unexpected EOF
in prolog at [row,col {unknown-source}]: [1,0]

 
  
   

Now, if I proxy my request trimming the bytes of the body with few changes
on the header like:

POST /axis2/services/Seismolink HTTP/1.1

Content-Type: text/xml

SOAPAction: "urn:anonOutInOp"

Cache-Control: no-cache

Pragma: no-cache

User-Agent: Java/1.5.0_07

Host: bsfso1:9101

Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Connection: keep-alive

Content-Length: 575




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


   
  
 http://www.opengis.net/gml";>2005-04-27T13:05:38
 http://www.opengis.net/gml";>2005-04-27T13:10:38
  
   
   CHIF
   BHZ
   .

 
  
   


it works perfectly..

what`s wrong weith the first requests? I am using the SendReceive method of
the axis2 client (basic axiom client)

It seems I  have to proxy all my request to remove some garbage..!!

Please Help!
-- 
View this message in context: 
http://www.nabble.com/axis2-axiom-client-error%3A-com.ctc.wstx.exc.WstxEOFException%3A-tp16091937p16091937.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Must Understand check failed for header Exception

2008-03-17 Thread Appasamy Thirugnana
FYI
 
 If we insert the following code in the axis generated stub
the error org.apache.axis2.AxisFault: Must Understand check failed for
header will not occur
 
Iterator it = env.getHeader().examineAllHeaderBlocks();
while(it.hasNext())
{
 SOAPHeaderBlock headerBlock=
(SOAPHeaderBlock)it.next();
 
headerBlock.setRole("http://www.w3.org/2003/05/soapenvelope/role/next";);
}

References:
www.javapassion.com/webservices/SOAPProcessingModel.pdf
www.grid2004.org/spring2004/SOAP3.ppt
 
Thanks
Appu 


 

-Original Message-
From: Appasamy Thirugnana [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 09:39
To: axis-user@ws.apache.org
Subject: Must Understand check failed for header Exception

 
Please help me  as I am struggling with this exception for long time

Thanks in advance
Appu

Hi,
 
  In order to set soapenv:mustUnderstand="1"   
 
  I tried modifying the stub in my client the following manner while
adding header
 
 if (messageHeader5 != null) 
{
org.apache.axiom.om.OMElement omElementmessageHeader5 =
toOM(messageHeader5,
optimizeContent(
new javax.xml.namespace.QName(
"http://www.some.com/NewService.wsdl
 ",
"Superset")));
 addHeader(omElementmessageHeader5, env,true);   ->
Included the third parameter "true" to make mustUnderstand="1"  
  
 }
 
 
 
Now i am getting the evnevlope as expected with mustUnderstand="1"   
 
but the request is not going out giving me the following exception
 
org.apache.axis2.AxisFault: Must Understand check failed for header
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
: MessageHeader
 at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
 at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
 at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 at com.new.service.NewServiceStub.NewService(NewServiceStub.java:220)
 at TestService1.main(TestService1.java:107)
 
 
 
 
I found  that the soap header needs to be processed and its
"isProcessed" to be set to true to avoid excpetion
 
 
and I tried in stub with following code for processing the header which
is going out
 
Iterator it = env.getHeader().examineAllHeaderBlocks();
while(it.hasNext())
{
 SOAPHeaderBlock headerBlock=
(SOAPHeaderBlock)it.next();
 headerBlock.setProcessed();
 
System.out.println("Processed:->"+headerBlock.isProcessed()+""); --->Its
giving "true"
}
 
 
Still I am getting the error. Please tell me is there any other way to
get rid of this issue.
 
Thanks
Appu


 

-
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]



Not able to find Deployed service

2008-03-17 Thread Amit Kumar
Hi,
I have deployed one web service. Till running admin client it is working fine. 
But when I am trying to see my deployed service .. It is showing this exception 
:

Sorry, something seems to have gone wrong... here are the details:

Fault - Could not find class for the service named: 
fibonacci.ws.FibonacciSoapBindingImpl
Hint: you may need to copy your class files/tree into the right location (which 
depends on the servlet system you are using).; nested exception is: 
java.lang.ClassNotFoundException: fibonacci.ws.FibonacciSoapBindingImpl
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: Could not find class for the service named: 
fibonacci.ws.FibonacciSoapBindingImpl
Hint: you may need to copy your class files/tree into the right location (which 
depends on the servlet system you are using).; nested exception is: 
java.lang.ClassNotFoundException: fibonacci.ws.FibonacciSoapBindingImpl
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}hostname:SPICITY53How Can I resolve this 
problem.Thanks in advance.


Re: Interop WCF Service/Axis2 Client and Stream

2008-03-17 Thread Andreas Necker
Hi,

2008/3/14, Thilina Gunarathne <[EMAIL PROTECTED]>:
> Yes.. Please post the other WSDL and specially the schema part (may be
>  it's a separate .xsd file)..
>
here are the the WSDLs and XSDs.

>  What exactly did you mean by streaming.. Is it MTOM??..  Are you
>  trying to send back a binary file data to the client..
>
Yes, the CheckOutDocument Methods sends back a (File)Stream.
The message encoding is MTOM (-> "Service configuration" in my first Mail).
I think the interesting parts are the CheckOutDocumentResult @xsd0
and the StreamBody definition @xsd4.

Thanks
Andreas

FileTransfer.WSDL


http://tempuri.org/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata";
xmlns:tns="http://tempuri.org/";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:i0="http://www.dummy.de/DmsService";
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:wsa10="http://www.w3.org/2005/08/addressing";
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>
  

  
http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization";
/>
  

  
  http://www.dummy.de/DmsService";
location="http://ntfe:8013/DmsBatch/FileTransfer/?wsdl=wsdl0"; />
  
  

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

  http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument";
style="document" />
  

  
  

  
  

  
  

  
  

  

  
  

  http://ntfe:8013/DmsBatch/FileTransfer/"; />

  



http://ntfe:8013/DmsBatch/FileTransfer/?wsdl=wsdl0


http://www.dummy.de/DmsService";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata";
xmlns:tns="http://www.dummy.de/DmsService";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:wsa10="http://www.w3.org/2005/08/addressing";
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>
  
http://www.dummy.de/DmsService/Imports";>
  http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd0";
namespace="http://www.dummy.de/DmsService"; />
  http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd2";
namespace="http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";
/>
  http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd1";
namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
  http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd3";
namespace="http://schemas.datacontract.org/2004/07/System"; />
  http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd4";
namespace="http://schemas.microsoft.com/Message"; />

  
  

  
  

  
  
http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";
/>
  
  
http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";
/>
  
  
http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";
/>
  
  

  http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument";
message="tns:IFileTransfer_CheckOutDocument_InputMessage" />
  http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentResponse";
message="tns:IFileTransfer_CheckOutDocument_OutputMessage" />
  http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentServiceOperationFailedExceptionFault";
name="ServiceOperationFailedExceptionFault"
message="tns:IFileTransfer_CheckOutDocument_ServiceOperationFailedExceptionFault_FaultMessage"
/>
  http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentServiceOperationFailedRetryExceptionFault";
name="ServiceOperationFailedRetryExceptionFault"
message="tns:IFileTransfer_CheckOutDocument_ServiceOperationFailedRetryExceptionFault_FaultMessage"
/>
  http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentAuthenticationExceptionFault";
name="AuthenticationExceptionFault"
message="tns:IFileTransfer_CheckO

RE: axis 1.4 and ws-addressing

2008-03-17 Thread Erwin Reinhoud
Hello All,

Does anyone have an answer?

Thanks in advance.

Kind regards,
Erwin

-Oorspronkelijk bericht-
Van: Erwin Reinhoud 
Verzonden: donderdag 13 maart 2008 8:53
Aan: axis-user@ws.apache.org
Onderwerp: axis 1.4 and ws-addressing


Hello All,

Does anybody have a link to apply ws-addressing? I looked at the site and did a 
search but could not find it. Axis 1.4 does support ws-addressing?

Thanks in advance.

Kind regards,

Erwin

-
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]



axis2 - error while invoking "Myservice"

2008-03-17 Thread prabuddha abeygunasekara
var YAHOO = {'Shortcuts' : {}};
YAHOO.Shortcuts.hasSensitiveText = false;
YAHOO.Shortcuts.sensitivityType = [];
YAHOO.Shortcuts.doUlt = false;
YAHOO.Shortcuts.location = "us";
YAHOO.Shortcuts.document_id = 0;
YAHOO.Shortcuts.document_type = "";
YAHOO.Shortcuts.document_title = "Error when calling \x5c\x22Myservice\x5c\x22";
YAHOO.Shortcuts.document_publish_date = "";
YAHOO.Shortcuts.document_author = "[EMAIL PROTECTED]";
YAHOO.Shortcuts.document_url = "";
YAHOO.Shortcuts.document_tags = "";
YAHOO.Shortcuts.annotationSet = {
"lw_1205743176_0": {
"text": "Fri, 28 Mar 2008 03:56:12 GMT",
"extended": 0,
"startchar": 3570,
"endchar": 3598,
"start": 3570,
"end": 3598,
"extendedFrom": "",
"predictedCategory": "",
"predictionProbability": "0",
"weight": 1,
"type": ["shortcuts:/us/instance/identifier/date_time"],
"category": ["IDENTIFIER"],
"context": "EOF in pr log  at [row,col {unknown-source}]: [1,0] [DEBUG] 
\x3c\x3c Date: Fri, 28 Mar 2008 03:56:12 GMT [DEBUG] \x3c\x3c Server: 
Simple-Server/1.1 [DEBUG] \x3c\x3c Transfer-Encoding: chunked [DEBUG] \x3c\x3c 
Content-Type: text/xml; charset=UTF-8",
"metaData": {
"isoEndDate": "",
"isoStartDate": "20080328T035612+",
"past": "false",
"recurring": "false"
}
 }
};
Hi,

I'm getting following error msg when I'm trying to invoke the "Myservice" in 
the axis repository. 

/***
log4j:WARN No appenders could be found for logger 
(org.apache.axis2.util.Loader).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: The server localhost failed to respond
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
at userguide.clients.EchoBlockingClient.main(EchoBlockingClient.java:46)
Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server 
localhost failed to respond
at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)
at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
... 10 more

/***

This is in the Server side 

/***

[DEBUG] start writeTo()
[DEBUG]   preserve=false
[DEBUG]   isOptimized=false
[DEBUG]   isDoingSWA=false
[DEBUG] XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
[DEBUG] << HTTP/1.1 500 com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in pr
log
 at [row,col {unknown-source}]: [1,0]
[DEBUG] << Date: Fri, 28 Mar 2008 03:56:12 GMT
[DEBUG] << Server: Simple-Server/1.1
[DEBUG] << Transfer-Encoding: chunked
[DEBUG] << Content-Type: text/xml; charset=UTF-8
[DEBUG] << Connection: Close
[DEBUG] end writeTo()
[DEBUG] Did not find RequestResponseTransport cannot set response written
[DEBUG] [MessageContext: logID=urn:uuid:9229FB4ACEB5A2DC6D1206676572947] Invoki
g flowComplete() in Phase "MessageOut"
[DEBUG] [MessageContext: logID=urn:uuid:9229FB4ACEB5A2DC6D1206676572947] Invoki
g flowComplete() for Handler 'AddressingOutHandler' in Phase 'MessageOut'
[DEBUG] [EMAIL PROTECTED] terminat
d
[DEBUG] Read timed out
[DEBUG] [EMAIL PROTECTED] terminat
d






  Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.



Fri, 28 Mar 2008 03:56:12 GMT
Add to Calendar










  
___

Re: Custom HTTP transport setting

2008-03-17 Thread Upul Godage
Give the repository path, the first parameter of
ConfigurationContextFactory.createConfigurationContextFromFileSystem
("/home/user/axis2-1.3/repository", axix2.xml_location); Then it will pickup
the addressing.mar from the repository_location/modules which is
addressing-1.3.mar.

Or if you are not using addressing then you can remove the addressing module
from engaging by removing the
 in the axis2.xml


Upul


On Mon, Mar 17, 2008 at 1:05 PM, westpine <[EMAIL PROTECTED]> wrote:

>
> Ok!  One step closer :) But still does not work
> I get axis2.xml (without any changes yet) from conf and got this error:
> "Login error: The system is attempting to engage a module that is not
> available: addressing"
>
> This what i've done:
>
> ConfigurationContext context =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
> "C:\\axis2.xml");
> ews = new ExchangeWebService(context, url_str);
>
> What could be a source of error?
>
>
>
>
> Upul Godage wrote:
> >
> > You can get a copy of the default, let's say the conf/axis2.xml, and
> > change
> > the http sender entry and do other customizations.  For example if you
> do
> > not need other listeners or senders other than http you can remove those
> > entries.
> >
> > Upul
> >
> > On Mon, Mar 17, 2008 at 11:59 AM, westpine <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Thaks! One more question. I know that axis2.xml could be linked by its
> >> path
> >> in service constructor (if using, like I do, generated stubs). But I
> know
> >> only this part of it, related to transport sender. But I need whole
> file.
> >> Where I can get it  or what else parameters (besides transport sender)
> I
> >> have to include in it to make it valid?
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Custom-HTTP-transport-setting-tp16047723p16089132.html
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Custom-HTTP-transport-setting-tp16047723p16089630.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Custom HTTP transport setting

2008-03-17 Thread westpine

Ok!  One step closer :) But still does not work 
I get axis2.xml (without any changes yet) from conf and got this error:
"Login error: The system is attempting to engage a module that is not
available: addressing"

This what i've done: 

ConfigurationContext context =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
"C:\\axis2.xml");
ews = new ExchangeWebService(context, url_str);

What could be a source of error?




Upul Godage wrote:
> 
> You can get a copy of the default, let's say the conf/axis2.xml, and
> change
> the http sender entry and do other customizations.  For example if you do
> not need other listeners or senders other than http you can remove those
> entries.
> 
> Upul
> 
> On Mon, Mar 17, 2008 at 11:59 AM, westpine <[EMAIL PROTECTED]> wrote:
> 
>>
>> Thaks! One more question. I know that axis2.xml could be linked by its
>> path
>> in service constructor (if using, like I do, generated stubs). But I know
>> only this part of it, related to transport sender. But I need whole file.
>> Where I can get it  or what else parameters (besides transport sender) I
>> have to include in it to make it valid?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Custom-HTTP-transport-setting-tp16047723p16089132.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Custom-HTTP-transport-setting-tp16047723p16089630.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Custom HTTP transport setting

2008-03-17 Thread Upul Godage
You can get a copy of the default, let's say the conf/axis2.xml, and change
the http sender entry and do other customizations.  For example if you do
not need other listeners or senders other than http you can remove those
entries.

Upul

On Mon, Mar 17, 2008 at 11:59 AM, westpine <[EMAIL PROTECTED]> wrote:

>
> Thaks! One more question. I know that axis2.xml could be linked by its
> path
> in service constructor (if using, like I do, generated stubs). But I know
> only this part of it, related to transport sender. But I need whole file.
> Where I can get it  or what else parameters (besides transport sender) I
> have to include in it to make it valid?
>
> --
> View this message in context:
> http://www.nabble.com/Custom-HTTP-transport-setting-tp16047723p16089132.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>