Re: Structure with Array of Structure

2007-01-31 Thread Nadir Amra
Martin,

In order for us the debug, you need to create a JIRA and attach the wsdl 
and the SOAP response that is causing the problem.

Nadir K. Amra


Martin Hillmeier [EMAIL PROTECTED] wrote on 01/31/2007 01:59:01 AM:

 My webservice returns a structure that contains an array of structures.
 I use AXIS-C (wsdl2ws-Tool generated classes) to acces this webservice. 
 But always when retrieving the array it's size is 0.
 If the webservice function directly returns an array of structures 
 (not included in another structure) it works fine.
 Is there a bug in AXIS-C or do I something wrong when accessing the 
 array data.
 I tried it with the latest SVN source (2007-01-29).
 I use the following code to read an object of type  
 WSPhoneBookEntryListWrapper from webservice.
 This object contains an array of WSPhoneBookEntry items.
 When I execute the following code, size is always 0 although the 
 webservice has filled
 the array with elements.
 
 WSPhoneBookEntryListWrapper* pPhonebookList = 
 webservice-listPhoneBookPrivate();
 ArrayOf_tns3_WSPhoneBookEntry* list = 
pPhonebookList-getphoneBookEntries();
 WSPhoneBookEntry_Array* pPhonebookArray = list-getitem();
 int size;
 WSPhoneBookEntry** phonebookEntry = pPhonebookArray-get(size);
 
 
 Thanks
 Martin

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



Re: Connnect one service to another service

2007-01-31 Thread Alan Birtles
Simply connect to the service in exactly the same way as you would  
from a client (i.e. create a client instance and simply send a  
message). If you want more complex service to service communication  
you should take a look at synapse


Quoting Torch [EMAIL PROTECTED]:



I am currently using Axis2.  I have successfully managed to deploy my
services on Tomcat but I am unsure how to connect from one service to
another.

At  the moment I can connect from a client to a web service (client --
service) but I wish to take this one step further (client -- service --
service).

If anyone can provide help on the matter that would be much appreciated.

Torch.
--
View this message in context:   
http://www.nabble.com/Connnect-one-service-to-another-service-tf3146826.html#a8723667

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]



setting a diferent location for the wsdl

2007-01-31 Thread Noé Amorim

Hi.
I'm using generated stubs (WSDL2Java) to acess my webservice.
The only thing i need to do before using the functions onj thw wsdl is:

ExampleService service = new ExampleServiceLocator();
ServicesPortType port = service.getServicesPort();

But if the wsdl changes place on the machine or network, i don't have
to generate new stubs,
is saw that on ExampleServiceLocator class there 2 other constructers:

public ExampleServiceLocator(org.apache.axis.EngineConfiguration config) {
   super(config);
   }

   public ExampleServiceLocator(java.lang.String wsdlLoc,
javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException
{
   super(wsdlLoc, sName);
   }


and this is the where's axis knows where to go:
private java.lang.String ServicesPort_address =
http://localhost/interacesso2/endpoint.php;;

My question is:

Can some give a few examples how to use the other 2 constructers, if
for example the wsdl is moved to 212.15.34.56 and put in a new place,
let's say interacesso3/endpoint.php?

Thank you.
Noe Rocha.

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



[ANN] [Axis2] Training course on Axis2

2007-01-31 Thread Ruchith Fernando

Hi All,

A few of us are traveling to Phoenix AZ in two weeks and are wondering
whether anyone would be interested in joining a 1/2 day course /
tutorial on Axis2  (A 1/2 day Synapse course will also be available
for those interested)

This would be on Wednesday the 14th of February

Please drop me a note at [EMAIL PROTECTED] and let us know if you're
interested.

Thanks,
Ruchith

--
www.ruchith.org
www.wso2.org

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



Re: Help with Message Style Web services

2007-01-31 Thread Anne Thomas Manes

See responses inline ...

On 1/31/07, Gurpreet Singh Dhanoa, HCL-Industry Solutions [EMAIL PROTECTED]
wrote:


 Probably you can see this WSDL as well.



The getPerson WSDL has the same problems as the getContent WSDL.

--


*From:* Gurpreet Singh Dhanoa, HCL-Industry Solutions
*Sent:* Tuesday, January 30, 2007 10:38 PM
*To:* 'Anne Thomas Manes'; 'axis-user@ws.apache.org'
*Subject:* RE: Help with Message Style Web services



Anne,



Answers to your questions



-  Why you selected message style?

Message style is used by the architects considering interoperability
issues in mind. They want to receive the XML and send back the XML and do
not want to deal with the SOAP engine serialization. It provide the web
service more freedom and we do not jump into the issues of mapping the
complex types across platforms



Message style doesn't necessarily make interoperability better (and, as
you've experienced, it can often make interoperability more challenging
because it doesn't generate an explicit contract for you).

Message style is an application programming style that only affects the way
your particular part of the communication (in this case service) processes
the message. Keep in mind that just because your piece (the service) uses
message style, that doesn't force the client to use the equivalent to
message style. The client may prefer to deserialize the XML into objects --
as is the case with anyone using .NET.

If you want to ensure better interoperability, then the most important thing
you must do is define a schema for the message body and use that for the
basis of your development. (i.e., Schema-first approach). In all cases, your
WSDL should specify the schema of the messages it expects to exchange.

For best interoperability with SOAP, you should make sure the WSDL conforms
to the wrapped document/literal convention.

By the way -- if you really just want to exchange XML messages, and you
don't want to exploit any of the capabilities that the SOAP envelope or Axis
provides, then you'd probably do better just using plain old XML (POX)
over HTTP.

- Does the message have a defined message structure, or was your goal to

enable the exchange of any content?

It is pure message based and we are not passing any content (attachments)
in the web service. We have defined unqualified schemas for request and
response and negotiate on those schemas while sending the request and
response.



I wasn't asking about attachments, I was asking about the contents of the
SOAP envelope. Your WSDL does not define the message structure (schema). It
defines two elements: getContent and getContentReturn, both defined as
xsd:anyType. (i.e, no information about the expected structure of these two
messages.) Negotiating the schemas out-of-band makes the interaction much
more difficult. If your service expects to exchange a message with a defined
schema, then you should explicitly specify the schema in the WSDL. (By
explicitly specify I mean either define the schema inline, import it, or
include it into the wsdl:types section.)

The only reason to ever define xsd:anyType in your WSDL is if you intend the
service to accept any information -- e.g., perhaps you're designing a
generic dispatcher: it receives a message, determines the type of content
and dispatches it to the appropriate processor. But for any kind of
predetermined process, you should never use xsd:anyType. (Some people use
xsd:any or xsd:anyType to enable extensibility, but it's a bad idea. Just
say no.)

- Did you write a WSDL with a defined schema for the message structure?




I generated the WSDL from the Apache Axis by appending ?WSDL to the web
service URL. I have attached the WSDL with this email. Unfortunately .Net
client cannot understand this WSDL and they want to change the WSDL manually
and include the schema definition in it.



When using the message style, it's your responsibility to write your own
WSDL (or edit the one generated by Axis) so that it contains the schema of
the request and response messages. Since you've given Axis no information
about the message content, you can't assume that Axis can generate the
schema for you. The .NET users' request is completely reasonable. You should
edit the WSDL and include a schema that defines the structure of the
getContent and getContentReturn messages. Then you should redeploy the
service using the wsdlFile option in the WSDD to point to your revised
WSDL file. Aslo, to enable interoperability with .NET, you must ensure that
your schema specifies elementFormDefault=qualified.

- What are the challenges that .NET clients are facing?

.Net Client chaged the WSDL file whatever.wsdl and after that they are
able to invoke the web service. I turned on the Tcp trace and can see a
valid request and response getting exchanged. The problem is that when ever
.Net gets back a response it is not able to return the object back to the
.Net program. I am confused and thinking it 

Re: Issue loading .xsb resource from XBean-packaged.jar in service [Was:Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type]

2007-01-31 Thread robert lazarski

Are you aware of the ServiceTCCL param ?

parameter name=ServiceTCCL locked=falseservice/parameter

Try adding that services.xml. See the spring example here:
http://ws.apache.org/axis2/1_1/spring.html#263

Some more information is here:
http://marc2.theaimsgroup.com/?l=axis-cvsm=115946726426905w=3

HTH,
Robert

On 1/30/07, Bo Xie [EMAIL PROTECTED] wrote:

Hi all,

  I need some advice for the following.

  0. I use WSDL2JAVA with XmlBean binding to generate the service side code
following the quickstartxmlbean example.
  1. Our service related XMLBean types/element xsd are packaged in
XBean-packaged.jar in our .aar file under services.
  2. Looks like when convert a derived type to XML, the code in
SchemaTypeSystemImpl(which is in WEB-INF/lib/xbean-2.2.0.jar) is trying to
load derived type info from XBean-packaged.jar. For example, it tried to
load a derived type
schemaorg_apache_xmlbeans/type/http_3A_2F_2Fquickstart_2Esamples_2Fxsd_2F2007_2F01_2F01/FreeFormPolicyObject.xsb
  3. The problem is the class loader used by xbean-2.2.0.jar is the
WebappClassLoader, not the classloader from Axis service. So it cannot load
the resource!
  4. I tried to put XBean-packaged.jar under WEB-INF/lib w or w/o removing
the Xbean-package.jar in .aar, but in both cases got ClassCastException
during
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse()

  I assume now the XBean-packaged.jar are needed both by the web service
code and xbean-2.2.0.jar. Any advice on how to make it work?

Thanks,
-Bo


On 1/22/07, Bo Xie [EMAIL PROTECTED] wrote:
 Hi,

My previous issue is caused by org.apache.xmlbeans.impl
  .schema.SchemaTypeLoaderImpl's findTypeRef () not be able to load the
following resource in service:



schemaorg_apache_xmlbeans/type/http_3A_2F_2Fquickstart_2Esamples_2Fxsd/EU_2DAddress.xsb

 This resource is actually in my .aar file under
dir\XBean-packaged.jar(generated from WSDL2JAVA)

 Do anyone know how to make it work?

 Thanks a lot!

 -Bo




 On 1/21/07, Bo Xie  [EMAIL PROTECTED]  wrote:
  Hi all,
 
  Sorry to ask this again, does anyone know what could cause the
following call to return null, is it some kind of setup/configure issue in
the service? How to workaround it? It is in
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl's
findTypeRef (). This causes the derived type cannot be created properly with
the xsi:type attribute.
 
  SchemaTypeSystem ts = typeSystemForComponent(schema +
METADATA_PACKAGE_LOAD + /type/, name);
 
 
  Thanks,
  -Bo
 
 
 
 
  On 1/19/07, Bo Xie [EMAIL PROTECTED]  wrote:
   Hi,
  
 Looks like the problem is with the _typeCache in
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl's
findTypeRef () not being populated correctly for derived type when deployed
as a service. This in turn was caused by typeSystemForComponent() in
findTypeRef() returning null. As comparison, the _typeCache is populated
correctly if I run it locally in a test program's main() and in this case
the typeSystemForComponent() is not null.
  
 Below is the findTypeRef method which suppose to return the derived
type if Qname passed in is a derived type. In my case, the QName is {
http://quickstart.samples/xsd}EU-Address .
  
 When in service, the _typeCache is populated with CACHED_NOT_FOUND
for QName {http://quickstart.samples/xsd}EU-Address . So
findTypeRef  will return null. This will result in the changeType() call to
not return the derived type. (See call stack at the bottom.)
  
 In the local test program, the _typeCache was initially empty and
was populated with the correct value at the end of findTypeRef call.
  
 The only way that CACHED_NOT_FOUND can be set for any QName type is
when the following line in findTypeRef () return null.
   SchemaTypeSystem ts = typeSystemForComponent(schema +
METADATA_PACKAGE_LOAD + /type/, name);
  
 I have no idea why this typeSystemForComponent() could return null
in service. Can someone help clarify the myth here? When I trace into the
first incoming message, it indeed shows that the typeSystemForComponent
return null!
  
 Below are the findTypeRef method and the call stack.
  
   Thanks,
   -Bo
  
   public SchemaType.Ref findTypeRef(QName name)
   {
   /**
* The maps are synchronized, we use two accesses to the cache
(one read
* and one write), but the code inbetween is not synchronized.
The
* assumption is that the underlying datastructures (the
search path and
* the classloader) do not change, so two threads running the
code in
* parallel will come up with the same result.
*/
   Object cached = _typeCache.get(name);
   if (cached == CACHED_NOT_FOUND)
   return null; ==exit here in bad one
  
   SchemaType.Ref result = (SchemaType.Ref) cached;
   if (result == null)
   {
   for (int i = 0; i  _searchPath.length; i++)
   if (null != (result =

Re: Getting error invoking axis2 service from php client - databinding jibx

2007-01-31 Thread Anne Thomas Manes

Your PHP is not building an appropriate message that matches the
schema as defined by the WSDL. I suggest you ask your question on a
PHP discussion list.

Anne

On 1/30/07, Harish Hirasave [EMAIL PROTECTED] wrote:

Anne,

I am sorry I confused you . The wsdl I posted IVRService.wsdl is the one
I am having problems with. I just wanted to mention that I have a
similar problem with getPrice method in the StockQuoteService.wsdl. Here
is the soap request for the getPrice method invoked from a php client.
The wsdl for this is StockQuoteService.wsdl


?xml version='1.0' encoding='utf-8'?SOAP-ENV:Envelope
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
SOAP-ENV:Body

getPrice xmlns=http://quickstart.samples/xsd;IBM/getPrice
/SOAP-ENV:Body
/SOAP-ENV:Envelope



The soap request from a php client for IVRService.wsdl is below and this
also has a similar problem.


?xml version='1.0' encoding='utf-8'?SOAP-ENV:Envelope
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
SOAP-ENV:Body

getEligibleIVRPromotions
xmlns=http://bellsouth_ivrservice_axis2.webservice.rrt.com/xsd;7709733
488/getEligibleIVRPromotions
/SOAP-ENV:Body
/SOAP-ENV:Envelope

Soap response

?xml version='1.0' encoding='utf-8'?soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Heade
r
/soapenv:Bodysoapenv:Faultfaultcodesoapenv:Client/faultcodefau
ltstringMissing required element
{http://bellsouth_ivrservice_axis2.webservice.rrt.com/xsd}phone/faultst
ringdetail //soapenv:Fault/soapenv:Body/soapenv:Envelope

Please let me know if the problem is in the wsdl or it is something
else.

Thanks
Harish

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 7:15 PM
To: axis-user@ws.apache.org
Subject: Re: Getting error invoking axis2 service from php client -
databinding jibx

Your WSDL looks fine and it validates with no warnings, but I suspect
you posted the wrong WSDL. It does not include any operations of
elements called getPrice.

Your Python client is sending an RPC/encoded message, but Axis2 does
not support RPC/encoded. This is probably the source of your problem.
You either need to find a Python SOAP framework that supports
doc/literal, or you'll need to construct your SOAP messages
programmatically.

The PHP message you posted terminated before the body, so I can't tell
what might have been wrong.

Anne

On 1/30/07, Harish Hirasave [EMAIL PROTECTED] wrote:
 Anne,

 I have tried invoking the method in the IVRService.wsdl with 3
different
 clients and the soap request is different for each client. Is this a
 problem in the wsdl that is causing it? Attached is the wsdl.

 I invoked the StockQuoteService in the axis 2 example with a python
 client and the soap request looks like this which is again not correct
 and results in a error as it is missing the symbol element.

 ?xml version='1.0' encoding='utf-8'?SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 SOAP-ENV:Body
 getPrice SOAP-ENC:root=1
 v1 xsi:type=xsd:stringIBM/v1
 /getPrice
 /SOAP-ENV:Body
 /SOAP-ENV:Envelope

 Soap Response

 ?xml version='1.0' encoding='utf-8'?soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Heade
 r

/soapenv:Bodysoapenv:Faultfaultcodesoapenv:Client/faultcodefau
 ltstringjava.lang.RuntimeException: Unexpected subelement
 v1/faultstringdetail
 //soapenv:Fault/soapenv:Body/soapenv:Envelope

 The soap request from a php client looks like this

 ?xml version='1.0' encoding='utf-8'?SOAP-ENV:Envelope
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 SOAP-ENV:Body

 Soap Response

 ?xml version='1.0' encoding='utf-8'?soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Heade
 r

/soapenv:Bodysoapenv:Faultfaultcodesoapenv:Client/faultcodefau
 ltstringjava.lang.RuntimeException: Unexpected subelement
 getPrice/faultstringdetail
 //soapenv:Fault/soapenv:Body/soapenv:Envelope

  I am not able to figure out why there is a discrepancy each time.
 Please help. Please suggest a good non java client to test the
service.


 Thanks
 Harish

 -Original Message-
 From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 27, 2007 6:32 AM
 To: axis-user@ws.apache.org
 Subject: Re: Getting error 

wsdl2Java problem

2007-01-31 Thread Sauber

Hi

i just started to test the axis2 and i am kind of a newbie to webservices.
My problem is that i dont even seams to get my eniorment set up correct, iam
running the folowing wsdl2java.bat and i get the folowing exception
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2Java. 

i use 
- jdk1.5.0.9
- windows

i have set the axis2home is there any .jar file missing can anyone give me
some advices?



-- 
View this message in context: 
http://www.nabble.com/wsdl2Java-problem-tf3148763.html#a8729033
Sent from the Axis - User mailing list archive at Nabble.com.


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



AW: wsdl2Java problem

2007-01-31 Thread Stadelmann Josef
axis2home - axis2_home

maybe that helps; Josef


-Ursprüngliche Nachricht-
Von: Sauber [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 31. Januar 2007 14:38
An: axis-user@ws.apache.org
Betreff: wsdl2Java problem


Hi

i just started to test the axis2 and i am kind of a newbie to webservices.
My problem is that i dont even seams to get my eniorment set up correct, iam
running the folowing wsdl2java.bat and i get the folowing exception
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2Java. 

i use 
- jdk1.5.0.9
- windows

i have set the axis2home is there any .jar file missing can anyone give me
some advices?



-- 
View this message in context: 
http://www.nabble.com/wsdl2Java-problem-tf3148763.html#a8729033
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]



Re: AW: wsdl2Java problem

2007-01-31 Thread Sauber

of course its AXIS2_HOME i was a bit sloppy when i wrote it.


Stadelmann Josef wrote:
 
 axis2home - axis2_home
 
 maybe that helps; Josef
 
 
 -Ursprüngliche Nachricht-
 Von: Sauber [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 31. Januar 2007 14:38
 An: axis-user@ws.apache.org
 Betreff: wsdl2Java problem
 
 
 Hi
 
 i just started to test the axis2 and i am kind of a newbie to webservices.
 My problem is that i dont even seams to get my eniorment set up correct,
 iam
 running the folowing wsdl2java.bat and i get the folowing exception
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/axis2/wsdl/WSDL2Java. 
 
 i use 
 - jdk1.5.0.9
 - windows
 
 i have set the axis2home is there any .jar file missing can anyone give me
 some advices?
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/wsdl2Java-problem-tf3148763.html#a8729033
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wsdl2Java-problem-tf3148763.html#a8729224
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] Weird error

2007-01-31 Thread schalk
Hi All,

When running the following code:

log.debug(Set AuthHeader elements...\n);
DataServiceStub.AuthHeader authHeaderElements = new
DataServiceStub.AuthHeader();
   
authHeaderElements.setUserName(resources.getMessage(engenSOAPUsername, null,
NO_USERNAME, null));
   
authHeaderElements.setPassword(PasswordService.getInstance().encrypt(resources.getMessage(engenSOAPPassword,
null, NO_PASSWORD, null)));

log.debug(Adding header...\n);
DataServiceStub.AuthHeader1 authHeader = new
DataServiceStub.AuthHeader1();
authHeader.setAuthHeader(authHeaderElements);

log.debug(Adding SOAP Body elements...\n);
DataServiceStub.Send soapBody = new DataServiceStub.Send();
soapBody.setDataIdentifier(orderrequest);
soapBody.setXmlData(mrequest.getStringParameter(e-Frame message));

log.debug(Send SOAP...\n);
DataServiceStub.SendResponse resp = new DataServiceStub.SendResponse();
try {
log.debug(Instatiating DataServiceStub...\n);
DataServiceStub dss = new DataServiceStub();
resp = dss.Send(soapBody, authHeader);
log.debug(SOAPHeader:  + authHeader + \n);
log.debug(SOAPBody:  + soapBody + \n);
} catch(AxisFault af) {
log.error(AxisFault:  + af + \n);
}

I get the following error:

DEBUG  - [soap-service] - Reading data sent from EDI...

DEBUG  - [soap-service] - Set AuthHeader elements...

DEBUG  - [soap-service] - Adding header...

DEBUG  - [soap-service] - Adding SOAP Body elements...

DEBUG  - [soap-service] - Send SOAP...

DEBUG  - [soap-service] - Instatiating DataServiceStub...

ERROR  -
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cxws].[OrderProcessClient]]
- Servlet.service() for servlet OrderProcessClient threw exception
java.lang.IncompatibleClassChangeError
at
za.co.cxchange.soap.engen.client.DataServiceStub.Send(DataServiceStub.java:107)
at
za.co.cxchange.soap.engen.client.OrderProcessClient.processRequest(OrderProcessClient.java:58)
at
za.co.cxchange.soap.engen.client.OrderProcessClient.doPost(OrderProcessClient.java:74)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Any ideas? Appologies for all of the code.

Thanks!
Schalk


--
Open WebMail Project (http://openwebmail.org)


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



AW: AW: wsdl2Java problem

2007-01-31 Thread Stadelmann Josef
Hi Klas

Check the two environment variables, and then check to see that both are in the 
path  

path=  ;%JAVA_HOME%\bin;%AXIS2_HOME%\bin;.

then you should be able to use wsdl2java from C:\ or any other default dir and 
get at least help as shown below.

C:\wsdl2java
Using AXIS2_HOME:   C:\axis2-1.1
Using JAVA_HOME:C:\j2sdk1.4.2_13
Usage: WSDL2Java -uri url or path : A url or path to a WSDL
  -o pathSpecify a directory path for the generated 
code.
  -a   Generate async style code only (Default: 
off).
  -s   Generate sync style code only (Default: 
off). Takes precedence over -a.
  -p pkg1Specify a custom package name for the 
generated code.
  -l languageValid languages are java and csharp 
(Default: java).
  -t   Generate a test case for the generated code.
  -ss  Generate server side code (i.e. skeletons) 
(Default: off).
  -sd  Generate service descriptor (i.e. 
services.xml). (Default: off). Valid with -ss.
  -d databinding Valid databinding(s) are adb, xmlbeans, 
jibx, jaxme and jaxbri (Default: adb).
  -g   Generates all the classes. Valid only with 
-ss.
  -pn port_name  Choose a specific port when there are 
multiple ports in the wsdl.
  -sn service_name   Choose a specific service when there are 
multiple services in the wsdl.
  -u   Unpacks the databinding classes
  -r pathSpecify a repository against which code is 
generated.
  -ns2p ns1=pkg1,ns2=pkg2  Specify a custom package name for each 
namespace specified in the wsdls schema.
  -ssi Generate an interface for the service 
implementation (Default: off).
  -wv  WSDL Version. Valid Options : 2, 2.0, 1.1
  -S  Specify a directory path for generated source
  -R  Specify a directory path for generated 
resources
  -em  Specify an external mapping file
  -f  Flattens the generated files
  -uw  Switch on un-wrapping.
C:\

C:\path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program 
Files\Personal Communications\;C:\Program Files\IBM\Trace Facility
\;c:\_integra\wv\tools;C:\Program Files\Putty\;C:\Program Files\Microsoft 
Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual S
tudio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual 
Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\Common\Tools
\WinNT;C:\j2sdk1.4.2_13\bin;C:\maven-2.0.4\bin;C:\apache-ant-1.6.5\bin;C:\axis2-1.1\bin;C:\axis2c-bin-0.96-win32\lib

C:\

If that does not help turn on the -verbose flag and then enjoy the dumo of 
loaded classes from jar's


C:\set JAVA_OPTS=-verbose

C:\wsdl2java
Using AXIS2_HOME:   C:\axis2-1.1
Using JAVA_HOME:C:\j2sdk1.4.2_13
[Opened C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Opened C:\j2sdk1.4.2_13\jre\lib\sunrsasign.jar]
[Opened C:\j2sdk1.4.2_13\jre\lib\jsse.jar]
[Opened C:\j2sdk1.4.2_13\jre\lib\jce.jar]
[Opened C:\j2sdk1.4.2_13\jre\lib\charsets.jar]
[Loaded java.lang.Object from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.io.Serializable from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.Comparable from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.CharSequence from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.String from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.Class from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.Cloneable from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.ClassLoader from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.System from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.Throwable from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.Error from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.ThreadDeath from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.Exception from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.RuntimeException from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.security.ProtectionDomain from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.security.AccessControlContext from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.ClassNotFoundException from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.LinkageError from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.NoClassDefFoundError from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.ClassCastException from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.ArrayStoreException from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.VirtualMachineError from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.OutOfMemoryError from C:\j2sdk1.4.2_13\jre\lib\rt.jar]
[Loaded java.lang.StackOverflowError from 

change endpoint location

2007-01-31 Thread Noé Amorim

hello.
how can i change the location of the wsdl file, when working with
generated stubs?
thank you.

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



push message receiver to WSDL2Java

2007-01-31 Thread pat
Hello,

I have a serious problem with my WS. I implemented WS using WSDL generated by
axis2 on the fly - I've defined in/out java objects, WS implementation and
created service.xml by hand. This snipped code is:
operation name=login
 messageReceiver  class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
 actionMappingurn:login/actionMapping
/operation

public Response login(String userName) {...}

But I need to edit XSD by hand and not generate it =:-()

OK, I've implemented the WSDL and XSD, but the problem is, how to write
services.xml to use existing code - I haven't free time to reimplement it.

I try WSDL2Java to generate services.xml, but it generates new
skeleton/messageReceiver but I want to use existing one. Is there a way how to
push WSDL2Java use existing portType ??? Or is there a way how to change the
services.xml to use existing WSDL file ???

Thanks a lot to all.

 Pat


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



[Axis2] Sorry we don't support methods overloading !!!!

2007-01-31 Thread ken.ricci
Relative newbie...

When I deploy my archive I receive this error.   I was overloading.   I
thought this is ok.   I was going to let AXIS2 generate the WSDL but
apparently that is not supported.   My question is this - can I get
overloading to work if I build the WSDL myself then specify my own WSDL
with the archive?

Thanks,
Ken

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

RE: Axis2 : Namespace is incorrectly modified in the response !

2007-01-31 Thread Gul Onural

I have created JIRA AXIS2-2066
(https://issues.apache.org/jira/browse/AXIS2-2066)
for this issue.

Gul

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 11:59 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 : Namespace is incorrectly modified in the response !

Hi  Gul;

Please create a JIRA and provide steps to re-create the issue.

Thanks
Deepal


 I am seeing very strange behavior in Axis2 with the namespace in the 
 responses.

 My web service uses RawXMLINOutMessageReceiver and 
 RawXMLINOnlyMessageReceiver message receivers. My service methods 
 (actions) look like :

 *public* OMElement method1(OMElement inputMsg)* throws* AxisFault {
 OMElement response;
  // prepare response
  return response;
 }

 What I am seeing is that the response I receive on the client side 
 contains a namespace that is different that what I set it to,

 On the server side.

 Just before return statements, my methods print response OMElement on 
 the server. In these printouts the namespaces are set to the correct 
 ones. However on the client side, I see entirely different namespace 
 inserted in to the responses.

 For example, printout from within my methods on the web service 
 implementation, I see something like this  :

 ?xml version=1.0 encoding=UTF-8?
 tns:XXResponse xmlns:tns=http://www.mycompany.com/*XX*;
  .. Other stuff
 /tns:XXResponse 

 However, on the client side printout, I see namespace changed to 
 something else :

 ?xml version=1.0 encoding=UTF-8?
 tns:XXResponse xmlns:tns=http://www.mycompany.com/*YY*;
  .. Other stuff
 /tns:XXResponse 

 Any ideas ?

 Gul


--
Thanks,
Deepal

The highest tower is built one brick at a time



-
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 parallel deploy

2007-01-31 Thread Angel Todorov

Hi,

Is Axis able to deploy web services both sequentially and in parallel
? As far as i can see in the class DeploymentEngine.java in the method
doDeploy() :

public void doDeploy() {
   if (wsToDeploy.size()  0) {



The list is traversed sequentially

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



Re: Axis2 parallel deploy

2007-01-31 Thread Angel Todorov

Sorry here is the complete mail :))

Hi all,
Is Axis able to deploy web services both sequentially and in parallel
? As far as i can see in the class DeploymentEngine.java in the method
doDeploy() :

public void doDeploy() {
if (wsToDeploy.size()  0) {
for (int i = 0; i  wsToDeploy.size(); i++) {



The list is traversed sequentially. But what if i create two
instances of DeploymentEngine (and possibly try to programatically
deploy various confilicting services)? Shouldn't the DeploymentEngine
be a singleton and syncronize deployment internally ?

Moreover, what is the meaning of the lock parameter in the
constructor of the class ArchiveFileData :

   public ArchiveFileData(File file, int type, boolean lock)

I mean how is it used? Thanks very much in advance.

Best Regards,
Angel


On 1/31/07, Angel Todorov [EMAIL PROTECTED] wrote:

Hi,

Is Axis able to deploy web services both sequentially and in parallel
? As far as i can see in the class DeploymentEngine.java in the method
doDeploy() :

public void doDeploy() {
if (wsToDeploy.size()  0) {



The list is traversed sequentially



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



Re: [Axis2] RPCMessageReceiver deserialize error when Date is null

2007-01-31 Thread Sathija Pavuluri
Kinichiro, Deepal,

Actually my issue is related more with the datetime problem described in
http://issues.apache.org/jira/browse/AXIS2-1883 which was linked to AXIS2-1745 
that Kinichiro mentioned.

I have been using Axis2 1.1.1 release.
Will get the latest nightly and try the fix.

Thanks,
Sathija.


 Hi,

 Did you try current latest nightly ?
 I think this issue was resolved by AXIS2-1745, after 1.1.1 release.
 http://issues.apache.org/jira/browse/AXIS2-1745

 kinichiro

 --- Sathija Pavuluri [EMAIL PROTECTED] wrote:

 Hi,

 I thought Date issues with RPCMessageReceiver might've been fixed,
 but not this one maybe.
 When my service returns an object that contains a java.util.Date
 field whose value is null,
 the deserializer throws as exception about bad date format.
 I am using Axis2 1.1.1. Works fine when the date value is non-null
 though.

 Here is the exception stack trace:

 java.lang.NumberFormatException: badDateTime00
 at

 org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
 at

 org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
 at

 org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
 at

 org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
 at

 org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
 at

 org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
 at

 org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
 at

 com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
 at

 com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


 Thanks,
 Sathija.


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






 
 Finding fabulous fares is fun.
 Let Yahoo! FareChase search your favorite travel sites to find flight and 
 hotel bargains.
 http://farechase.yahoo.com/promo-generic-14795097

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



JAX-WS programing model in AXIS2 ?

2007-01-31 Thread Yadav, Yogendra \(IT\)
Hi,
Does AXIS2 support JAX-WS programming model ?
-yogen


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.


Authentication Issue

2007-01-31 Thread tyson magney

Hello,

I am in the process of evaluating Soap toolkits.  Axis2 looks promising but
I am having an issue setting up a test client.  I have successfully run the
WSDL2Java Eclipse plugin to create my stub class.  I wrote some client code
to connect to my web services but it throws an exception.  Here is the code.

DocInfoStub stub = null;
stub = new DocInfoStub(http://localhost/stellent/idcplg/;); -- Fatal error
here.
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(000107);
DocInfoStub.DocInfoByNameResponse response = stub.DocInfoByName(request);

Here is the fatal exception when I try to instanciate the DocInfoStub class.
java.lang.ExceptionInInitializerError
   at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
DescriptionBuilder.java:86)
   at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
AxisConfigBuilder.java:58)
   at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
DeploymentEngine.java:690)
   at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:109)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:61)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContextFactory.java:180)
   at org.apache.axis2.client.ServiceClient.initializeTransports(
ServiceClient.java:189)
   at org.apache.axis2.client.ServiceClient.configureServiceClient(
ServiceClient.java:118)
   at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:114)
   at com.stellent.www.docinfo.DocInfoStub.init(DocInfoStub.java:82)
   at com.stellent.www.docinfo.DocInfoStub.init(DocInfoStub.java:106)
   at com.imagesourceinc.Axis2Test.main(Axis2Test.java:31)
Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.
   at org.apache.axiom.om.util.StAXUtils$Pool.init(StAXUtils.java:41)
   at org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:62)
   ... 12 more
Exception in thread main

I believe the issue is that I need to authenticate the webservice.  I tried
using an endpoint URL like http://sysadmin:[EMAIL PROTECTED]/stellent/idcplg/
but it didnt help.  I added an Authenticator and Options object based on the
Http Authentication example on the Axis2 site but it did not work either.
However the documentation does not explain how to add the options to a
client stub class.  The same exception results either way.  In Axis 1.4,
when I did not authenticate properly I received a 401 Http response.

DocInfoStub stub = null;
//new code
Options options = new Options();
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();
auth.setUsername(sysadmin);
auth.setPassword(idc);
options.setProperty(HttpTransportProperties.Authenticator.BASIC, auth);
//end new code
stub = new DocInfoStub(http://localhost/stellent/idcplg/;); -- Fatal error
here.
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(000107);
DocInfoStub.DocInfoByNameResponse response = stub.DocInfoByName(request);

Any help is appreciated.  Thanks.

- Tyson


Re: [Axis2] Sorry we don't support methods overloading !!!!

2007-01-31 Thread Sanjiva Weerawarana
The default runtime does not support overloading. This was done to be
consistent with WSDL 2.0, which eliminated overloaded operations of the
service.

There's nothing that prevents from it being supported on top of Axis2
using a custom message receiver.

Sanjiva.

On Wed, 2007-01-31 at 09:37 -0500, [EMAIL PROTECTED] wrote:
 Relative newbie…
 
 When I deploy my archive I receive this error.   I was overloading.
 I thought this is ok.   I was going to let AXIS2 generate the WSDL but
 apparently that is not supported.   My question is this - can I get
 overloading to work if I build the WSDL myself then specify my own
 WSDL with the archive?
 
 Thanks, 
 Ken
 
 text/plain attachment (disclaim.txt), Legal Disclaimer
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please 
 notify the sender immediately by e-mail if you have received this 
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free 
 as information could be intercepted, corrupted, lost, destroyed, 
 arrive late or incomplete, or contain viruses.  The sender therefore 
 does not accept liability for any errors or omissions in the contents 
 of this message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Sanjiva Weerawarana, Ph.D.
Founder  Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman  CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/


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



Re: JAX-WS programing model in AXIS2 ?

2007-01-31 Thread Davanum Srinivas

Yogen,

We are working on it. You will see an initial support in Axis2 1.2

thanks,
dims

On 1/31/07, Yadav, Yogendra (IT) [EMAIL PROTECTED] wrote:




Hi,
Does AXIS2 support JAX-WS programming model ?
-yogen

 


NOTICE: If received in error, please destroy and notify sender. Sender does
not intend to waive confidentiality or privilege. Use of this email is
prohibited when received in error.




--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

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



Problem installing/running CodeGen Eclipse plugin

2007-01-31 Thread Mike Ferraro
I downloaded the latest CodeGen plug-in, unzipped the Axis2_...
directory and copied it into the Eclipse plug-in directory, started
Eclipse, and tried to start the CodeGen wizard using the New - Other...
- Axis2 Wizards - Axis2 Code Generator.  The wizard fails to start and
Eclipse gives me a message stating that the Axis2_CodeGen_Wizard was
unable to load the class
org.apache.axis2.tool.codegen.eclipse.CodeGenWizard.

I double checked the installation instructions, but they are pretty
simple so I don't think that I missed a step.  I'm using Eclipse 3.2
with JDK 1.4.2.  Anyone have any ideas?

Thanks,
Mike


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



Limiting the number of web service instances

2007-01-31 Thread Ho, Wen Yue
Hi,

This might be a weird question.
Is there a way to limit the number of web service instances?
For example, I put my service in the request session scope, that means
it will instantiate an instance of the service object for every single
request. Is there a way to limit this?

Thanks,
wen



NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is 
intended only for the use of the addressees and is confidential. 
If you are not an intended recipient or responsible for delivering 
the message to an intended recipient, any review, disclosure, 
conversion to hard copy, dissemination, reproduction or other use 
of any part of this communication is strictly prohibited, as is the 
taking or omitting of any action in reliance upon this communication. 
If you receive this communication in error or without authorization 
please notify us immediately by return e-mail or otherwise and 
permanently delete the entire communication from any computer, 
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at 
www.td.com/legal
   
AVERTISSEMENT DE CONFIDENTIALITE   
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
aux destinataires susmentionnés,  est confidentiel.  Si vous 
n’êtes pas le destinataire prévu ou un agent responsable de la 
livraison de ce courriel, tout examen, divulgation, copie, impression, 
reproduction, distribution, ou autre utilisation d’une partie de ce 
courriel est strictement interdit de même que toute intervention ou 
abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
sans autorisation, veuillez en aviser immédiatement l’expéditeur par 
retour de courriel ou par un autre moyen et supprimer immédiatement 
cette communication entière de tout système électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
pouvez le consulter à www.td.com/francais/legale


RE: Authentication Issue

2007-01-31 Thread Wang, Hailong \(NIH/CIT\) [C]
You maybe did not use the correct target end point:
http://localhost/stellent/idcplg/. Did you get  your web service server
running? If you deployed Axis2 into Tomcat, the target end point should
be like http://localhost:8080/axis2/services/yourwebservice.

 

Hailong

 



From: tyson magney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 12:06 PM
To: axis-user@ws.apache.org
Subject: Authentication Issue

 

Hello,

I am in the process of evaluating Soap toolkits.  Axis2 looks promising
but I am having an issue setting up a test client.  I have successfully
run the WSDL2Java Eclipse plugin to create my stub class.  I wrote some
client code to connect to my web services but it throws an exception.
Here is the code. 

DocInfoStub stub = null;
stub = new DocInfoStub(http://localhost/stellent/idcplg/;); -- Fatal
error here.
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(000107);
DocInfoStub.DocInfoByNameResponse response =
stub.DocInfoByName(request);

Here is the fatal exception when I try to instanciate the DocInfoStub
class. 
java.lang.ExceptionInInitializerError
at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilde
r.java:86)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB
uilder.java :58)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D
eploymentEngine.java:690)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java :109)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:61)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem (ConfigurationContextFactory.java:180)
at
org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient
.java:189)
at
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClie
nt.java :118)
at
org.apache.axis2.client.ServiceClient.init(ServiceClient.java:114)
at com.stellent.www.docinfo.DocInfoStub.init(DocInfoStub.java:82)
at com.stellent.www.docinfo.DocInfoStub.init(
DocInfoStub.java:106)
at com.imagesourceinc.Axis2Test.main(Axis2Test.java:31)
Caused by: java.lang.IllegalStateException: No valid ObjectCreator
found.
at org.apache.axiom.om.util.StAXUtils$Pool.init(
StAXUtils.java:41)
at org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:62)
... 12 more
Exception in thread main 

I believe the issue is that I need to authenticate the webservice.  I
tried using an endpoint URL like 
http://sysadmin:[EMAIL PROTECTED]/stellent/idcplg/ but it didnt help.  I
added an Authenticator and Options object based on the Http
Authentication example on the Axis2 site but it did not work either.
However the documentation does not explain how to add the options to a
client stub class.  The same exception results either way.  In Axis 1.4,
when I did not authenticate properly I received a 401 Http response.  

DocInfoStub stub = null;
//new code
Options options = new Options();
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator ();
auth.setUsername(sysadmin);
auth.setPassword(idc);
options.setProperty(HttpTransportProperties.Authenticator.BASIC, auth);
//end new code
stub = new DocInfoStub( http://localhost/stellent/idcplg/
http://localhost/stellent/idcplg/ ); -- Fatal error here.
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(000107);
DocInfoStub.DocInfoByNameResponse response =
stub.DocInfoByName(request);

Any help is appreciated.  Thanks.

- Tyson



Re: Authentication Issue

2007-01-31 Thread tyson magney

I probably should have stateed this first thing.  I did not write the web
services I am trying to call.  They are coming from a Java Application
server I am trying to integrate with.  I know the web services are running
since I can connect to them through Axis 1.4.  Thanks for the suggestion
though.

- Tyson

On 1/31/07, Wang, Hailong (NIH/CIT) [C] [EMAIL PROTECTED] wrote:


 You maybe did not use the correct target end point:
http://localhost/stellent/idcplg/. Did you get  your web service server
running? If you deployed Axis2 into Tomcat, the target end point should be
like http://localhost:8080/axis2/services/yourwebservice.



Hailong


 --

*From:* tyson magney [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, January 31, 2007 12:06 PM
*To:* axis-user@ws.apache.org
*Subject:* Authentication Issue



Hello,

I am in the process of evaluating Soap toolkits.  Axis2 looks promising
but I am having an issue setting up a test client.  I have successfully run
the WSDL2Java Eclipse plugin to create my stub class.  I wrote some client
code to connect to my web services but it throws an exception.  Here is the
code.

DocInfoStub stub = null;
stub = new DocInfoStub(http://localhost/stellent/idcplg/;); -- Fatal
error here.
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(000107);
DocInfoStub.DocInfoByNameResponse response = stub.DocInfoByName(request);

Here is the fatal exception when I try to instanciate the DocInfoStub
class.
java.lang.ExceptionInInitializerError
at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
DescriptionBuilder.java:86)
at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
AxisConfigBuilder.java :58)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
DeploymentEngine.java:690)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java :109)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:61)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(
ConfigurationContextFactory.java:180)
at org.apache.axis2.client.ServiceClient.initializeTransports(
ServiceClient.java:189)
at org.apache.axis2.client.ServiceClient.configureServiceClient(
ServiceClient.java :118)
at org.apache.axis2.client.ServiceClient.init(ServiceClient.java
:114)
at com.stellent.www.docinfo.DocInfoStub.init(DocInfoStub.java:82)
at com.stellent.www.docinfo.DocInfoStub.init( DocInfoStub.java:106)
at com.imagesourceinc.Axis2Test.main(Axis2Test.java:31)
Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.
at org.apache.axiom.om.util.StAXUtils$Pool.init( StAXUtils.java:41)
at org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:62)
... 12 more
Exception in thread main

I believe the issue is that I need to authenticate the webservice.  I
tried using an endpoint URL like 
http://sysadmin:[EMAIL PROTECTED]/stellent/idcplg/ but it didnt help.  I
added an Authenticator and Options object based on the Http Authentication
example on the Axis2 site but it did not work either.   However the
documentation does not explain how to add the options to a client stub
class.  The same exception results either way.  In Axis 1.4, when I did
not authenticate properly I received a 401 Http response.

DocInfoStub stub = null;
//new code
Options options = new Options();
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator ();
auth.setUsername(sysadmin);
auth.setPassword(idc);
options.setProperty(HttpTransportProperties.Authenticator.BASIC, auth);
//end new code
stub = new DocInfoStub( http://localhost/stellent/idcplg/;); -- Fatal
error here.
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(000107);
DocInfoStub.DocInfoByNameResponse response = stub.DocInfoByName(request);

Any help is appreciated.  Thanks.

- Tyson



Re: Broken StAXOMBuilder

2007-01-31 Thread Lucas Theisen

Dims,

AXIS2-2068 was created with a small code example that demonstrates this 
issue.  I appreciate your help with this issue.


Thanks,
Lucas

Davanum Srinivas wrote:

Lucas,

Please create a JIRA issue and upload a complete test that can be used
to diagnose/fix the problem. That will help speed things up.

thanks,
dims

On 1/30/07, Lucas Theisen [EMAIL PROTECTED] wrote:

Hi,

I have been debugging some code that was generated by the Axis2 code
generator.  The code appears to be working except that the namespace
settings for the attributes are getting stripped off by the
StAXOMBuilder.  Here is what I have done to narrow this down.  I added
some print statements to the generated toOM method of the ServiceStub 
class:


 private org.apache.axiom.om.OMElement toOM(

com.ibm.specializedsolutions.onecontact.generated.SendMessagesDocument
param,
 boolean optimizeContent ) {

System.out.println( before - ' + param.toString( ) + ' );
 org.apache.axiom.om.impl.builder.StAXOMBuilder builder = new
org.apache.axiom.om.impl.builder.StAXOMBuilder(
 org.apache.axiom.om.OMAbstractFactory.getOMFactory( ),
 new org.apache.axis2.util.StreamWrapper( param
 .newXMLStreamReader( ) ) );
 org.apache.axiom.om.OMElement documentElement = builder
 .getDocumentElement( );

 ((org.apache.axiom.om.impl.OMNodeEx)
documentElement).setParent( null );
System.out.println( after - ' + documentElement.toString( ) + ' );
 return documentElement;
 }

The two print statements give this output:

before - 'sendMessages
xmlns=http://specializedsolutions.boulder.ibm.com/pagerapi;
   client pag:id=foo
xmlns:pag=http://specializedsolutions.boulder.ibm.com/pagerapi/
   transaction
 message
   content pag:type=text/plain
xmlns:pag=http://specializedsolutions.boulder.ibm.com/pagerapi;Test
message/content
   from[EMAIL PROTECTED]/from
   subjectURGENT: Testing/subject
   recipients
 profileRecipient pag:id=10
xmlns:pag=http://specializedsolutions.boulder.ibm.com/pagerapi/
   /recipients
 /message
   /transaction
/sendMessages'
after - 'sendMessages
xmlns=http://specializedsolutions.boulder.ibm.com/pagerapi;client
xmlns:axis2ns1=http://specializedsolutions.boulder.ibm.com/pagerapi;
id=foo /transactionmessagecontent
xmlns:axis2ns2=http://specializedsolutions.boulder.ibm.com/pagerapi;
type=text/plainTest
message/contentfrom[EMAIL PROTECTED]/fromsubjectURGENT:
Testing/subjectrecipientsprofileRecipient
xmlns:axis2ns3=http://specializedsolutions.boulder.ibm.com/pagerapi;
id=10 //recipients/message/transaction/sendMessages'

As you can see from this output, the xml initially had the pag:
namespace qualification on the attributes, but after running through the
StAXOMBuilder, the namespace settings are missing.  Also, there are
additional namespace definitions that are never used.  Please help.

Thank you,
Lucas

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







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



Problem with Document style WS

2007-01-31 Thread Gurpreet Singh Dhanoa, HCL-Industry Solutions

I have deployed my web service as a document style web service in Axis 1.4. 
Deployment descriptor for my service is

 

 

deployment name=GetContentDeployment 
xmlns=http://xml.apache.org/axis/wsdd/; 

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

xmlns:xsi=http://www.w3.org/2000/10/XMLSchema-instance;

  !-- note that either style=message OR provider=java:MSG both work --

  service name=GetContentService style=document

parameter name=className 
value=com.hcl.ecm.interfaces.services.ECMGetContent /

parameter name=allowedMethods value=getContent /

parameter name=scope value=Application/

 

 /service

/deployment

 

When I am trying to invoke the web service I am getting an error message

 

- Please register a typemapping/beanmapping for 
'com.hcl.ecm.interfaces.services.requests.ECMGetContentRequest'

 


can some one guide me what I need to do in order to get this error out ?

 

Thanks in advance!


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM
 


DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

RE: Complex Types to Base/Simple Types

2007-01-31 Thread Trevor Dawe
Well, I didn't receive a response about this question yet, so I'll add
some more information in case anyone is able to help.

I have an operation in my web service called 'setComplexAddress' which
takes an 'Address' as it's only parameter.
An 'Address' is a simple class which has 2 properties: number (integer)
and street (string).

The snippet from my WSDL shows 'Address' as a complex type:
complexType name=Address
sequence
element name=number type=int/
element name=street type=string nillable=true/
/sequence
/complexType


Is it possible to invoke this operation without having to generate any
other client-side code? I'm trying to create the client as dynamic as
possible where I'm only given the WSDL at runtime and then discover the
service, operations, etc.



Thanks,
-trevor



-Original Message-
From: Trevor Dawe 
Sent: Friday, January 26, 2007 1:44 PM
To: axis-user@ws.apache.org
Subject: Complex Types to Base/Simple Types

I'm currently writing a dynamic web service client that reads a WSDL
file and can invoke any operation. I'm having some problems invoking
operations which take complexTypes as input parameters. Is there any
easy way to get all of the base/simple type parameters for an operation
without having to recursively parse all of the complex types?

Thanks,
-trevor

-
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: Problem with Document style WS

2007-01-31 Thread Gurpreet Singh Dhanoa, HCL-Industry Solutions
Thanks! Can you refer me to the syntax. May be a example under the samples.

 

I have ECMGetContentRequest coming as a input parameter and the return type is 
of type String.

 

 

 

   _  

From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 2:51 PM
To: axis-user@ws.apache.org
Subject: Re: Problem with Document style WS

 

Is ECMGetContentRequest defined as a bean? then just add beanmapping definition 
to the WSDD. (You should also add one for your response element.)

Anne

On 1/31/07, Gurpreet Singh Dhanoa, HCL-Industry Solutions HYPERLINK 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:

I have deployed my web service as a document style web service in Axis 1.4. 
Deployment descriptor for my service is

 

 

deployment name=GetContentDeployment xmlns=HYPERLINK 
http://xml.apache.org/axis/wsdd/; \nhttp://xml.apache.org/axis/wsdd/; 

xmlns:java=HYPERLINK 
http://xml.apache.org/axis/wsdd/providers/java; 
\nhttp://xml.apache.org/axis/wsdd/providers/java;

xmlns:xsi=HYPERLINK http://www.w3.org/2000/10/XMLSchema-instance; 
\nhttp://www.w3.org/2000/10/XMLSchema-instance;

  !-- note that either style=message OR provider=java:MSG both work --

  service name=GetContentService style=document

parameter name=className 
value=com.hcl.ecm.interfaces.services.ECMGetContent /

parameter name=allowedMethods value=getContent /

parameter name=scope value=Application/

 

 /service

/deployment

 

When I am trying to invoke the web service I am getting an error message

 

- Please register a typemapping/beanmapping for 
'com.hcl.ecm.interfaces.services.requests.ECMGetContentRequest'

 


can some one guide me what I need to do in order to get this error out ?

 

Thanks in advance!

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM


DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM
 


Re: Problem with Document style WS

2007-01-31 Thread Anne Thomas Manes

http://www.oio.de/axis-wsdd/


On 1/31/07, Gurpreet Singh Dhanoa, HCL-Industry Solutions [EMAIL PROTECTED]
wrote:


 Thanks! Can you refer me to the syntax. May be a example under the
samples.



I have ECMGetContentRequest coming as a input parameter and the return
type is of type String.






 --

*From:* Anne Thomas Manes [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, January 31, 2007 2:51 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: Problem with Document style WS



Is ECMGetContentRequest defined as a bean? then just add beanmapping
definition to the WSDD. (You should also add one for your response element.)

Anne

On 1/31/07, *Gurpreet Singh Dhanoa, HCL-Industry Solutions* 
[EMAIL PROTECTED] wrote:

I have deployed my web service as a document style web service in Axis 1.4.
Deployment descriptor for my service is





deployment name=GetContentDeployment xmlns=
http://xml.apache.org/axis/wsdd/;

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

xmlns:xsi=http://www.w3.org/2000/10/XMLSchema-instance;

  !-- note that either style=message OR provider=java:MSG both work
--

  service name=GetContentService style=document

parameter name=className value=
com.hcl.ecm.interfaces.services.ECMGetContent /

parameter name=allowedMethods value=getContent /

parameter name=scope value=Application/



 /service

/deployment



When I am trying to invoke the web service I am getting an error message



- Please register a typemapping/beanmapping for '
com.hcl.ecm.interfaces.services.requests.ECMGetContentRequest'




can some one guide me what I need to do in order to get this error out ?



Thanks in advance!



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007
11:30 PM

DISCLAIMER:

---

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.


---



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007
11:30 PM

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007
11:30 PM



RE: Problem with Document style WS

2007-01-31 Thread Gurpreet Singh Dhanoa, HCL-Industry Solutions
Thanks a lot!

 

   _  

From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 3:05 PM
To: axis-user@ws.apache.org
Subject: Re: Problem with Document style WS

 

HYPERLINK http://www.oio.de/axis-wsdd/http://www.oio.de/axis-wsdd/



On 1/31/07, Gurpreet Singh Dhanoa, HCL-Industry Solutions HYPERLINK 
mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Thanks! Can you refer me to the syntax. May be a example under the samples.

 

I have ECMGetContentRequest coming as a input parameter and the return type is 
of type String.

 

 

 

   _  

From: Anne Thomas Manes [mailto:HYPERLINK mailto:[EMAIL PROTECTED] [EMAIL 
PROTECTED] 
Sent: Wednesday, January 31, 2007 2:51 PM
To: axis-HYPERLINK mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Re: Problem with Document style WS

 

Is ECMGetContentRequest defined as a bean? then just add beanmapping definition 
to the WSDD. (You should also add one for your response element.)

Anne

On 1/31/07, Gurpreet Singh Dhanoa, HCL-Industry Solutions HYPERLINK 
mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I have deployed my web service as a document style web service in Axis 1.4. 
Deployment descriptor for my service is

 

 

deployment name=GetContentDeployment xmlns=HYPERLINK 
http://xml.apache.org/axis/wsdd/; \nhttp://xml.apache.org/axis/wsdd/; 

xmlns:java=HYPERLINK 
http://xml.apache.org/axis/wsdd/providers/java; 
\nhttp://xml.apache.org/axis/wsdd/providers/java;

xmlns:xsi=HYPERLINK http://www.w3.org/2000/10/XMLSchema-instance; 
\nhttp://www.w3.org/2000/10/XMLSchema-instance;

  !-- note that either style=message OR provider=java:MSG both work --

  service name=GetContentService style=document

parameter name=className 
value=com.hcl.ecm.interfaces.services.ECMGetContent /

parameter name=allowedMethods value=getContent /

parameter name=scope value=Application/

 

 /service

/deployment

 

When I am trying to invoke the web service I am getting an error message

 

- Please register a typemapping/beanmapping for 
'com.hcl.ecm.interfaces.services.requests.ECMGetContentRequest'

 


can some one guide me what I need to do in order to get this error out ?

 

Thanks in advance!

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM


DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 1/30/2007 
11:30 PM
 


[axis2] sendRobust throws null pointer exception when a fault is reported from ws

2007-01-31 Thread Gul Onural

Hi,

ServiceClient sendRobust throws null pointer exception (see below) when
web service reports fault,
if addressing module is engaged with the client. If I don't engage
addressing module, the sendRobust works fine
when web service reports a fault. 

I have created a JIRA (https://issues.apache.org/jira/browse/AXIS2-2070)
for this issue.

Gul

java.lang.NullPointerException
at
org.apache.axis2.context.MessageContext.isHeaderPresent(MessageContext.j
ava:1054)
at
org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(Addressi
ngInHandler.java:72)
at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518)
at
org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:596)
at
org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationC
lient.send(RobustOutOnlyAxisOperat
ion.java:99)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:295)
at
org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
at
org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)



Re: Broken StAXOMBuilder

2007-01-31 Thread Lucas Theisen

Dims,

I looked into this issue myself, and fixed the source code.  It is 
actually in the axiom package.  It is a problem with OMSerializerUtil. 
I added the svn patch file to the ticket I created in JIRA.  You can 
review it and hopefully add it to your source tree.  For now I will have 
to use the copy I edited.


Thank you,
Lucas

Lucas J Theisen wrote:

Dims,

AXIS2-2068 was created with a small code example that demonstrates this 
issue.  I appreciate your help with this issue.


Thanks,
Lucas

Davanum Srinivas wrote:

Lucas,

Please create a JIRA issue and upload a complete test that can be used
to diagnose/fix the problem. That will help speed things up.

thanks,
dims

On 1/30/07, Lucas Theisen [EMAIL PROTECTED] wrote:

Hi,

I have been debugging some code that was generated by the Axis2 code
generator.  The code appears to be working except that the namespace
settings for the attributes are getting stripped off by the
StAXOMBuilder.  Here is what I have done to narrow this down.  I added
some print statements to the generated toOM method of the ServiceStub 
class:


 private org.apache.axiom.om.OMElement toOM(

com.ibm.specializedsolutions.onecontact.generated.SendMessagesDocument
param,
 boolean optimizeContent ) {

System.out.println( before - ' + param.toString( ) + ' );
 org.apache.axiom.om.impl.builder.StAXOMBuilder builder = new
org.apache.axiom.om.impl.builder.StAXOMBuilder(
 org.apache.axiom.om.OMAbstractFactory.getOMFactory( ),
 new org.apache.axis2.util.StreamWrapper( param
 .newXMLStreamReader( ) ) );
 org.apache.axiom.om.OMElement documentElement = builder
 .getDocumentElement( );

 ((org.apache.axiom.om.impl.OMNodeEx)
documentElement).setParent( null );
System.out.println( after - ' + documentElement.toString( ) + ' );
 return documentElement;
 }

The two print statements give this output:

before - 'sendMessages
xmlns=http://specializedsolutions.boulder.ibm.com/pagerapi;
   client pag:id=foo
xmlns:pag=http://specializedsolutions.boulder.ibm.com/pagerapi/
   transaction
 message
   content pag:type=text/plain
xmlns:pag=http://specializedsolutions.boulder.ibm.com/pagerapi;Test
message/content
   from[EMAIL PROTECTED]/from
   subjectURGENT: Testing/subject
   recipients
 profileRecipient pag:id=10
xmlns:pag=http://specializedsolutions.boulder.ibm.com/pagerapi/
   /recipients
 /message
   /transaction
/sendMessages'
after - 'sendMessages
xmlns=http://specializedsolutions.boulder.ibm.com/pagerapi;client
xmlns:axis2ns1=http://specializedsolutions.boulder.ibm.com/pagerapi;
id=foo /transactionmessagecontent
xmlns:axis2ns2=http://specializedsolutions.boulder.ibm.com/pagerapi;
type=text/plainTest
message/contentfrom[EMAIL PROTECTED]/fromsubjectURGENT:
Testing/subjectrecipientsprofileRecipient
xmlns:axis2ns3=http://specializedsolutions.boulder.ibm.com/pagerapi;
id=10 //recipients/message/transaction/sendMessages'

As you can see from this output, the xml initially had the pag:
namespace qualification on the attributes, but after running through the
StAXOMBuilder, the namespace settings are missing.  Also, there are
additional namespace definitions that are never used.  Please help.

Thank you,
Lucas

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



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



pointers on the WSDL binding implementation

2007-01-31 Thread Yadav, Yogendra \(IT\)
Hi,
I cannot encode location of the service in WSDL file. All I can specify
in soap:address is location of the *naming service*. Naming service
could return one or many locations for the service. 
 
Additionally, my service could be hosted on any one of the protocols
TCP/IP, HTTP or MQ. I am not sure how will the soap:binding
transport=??? element look like. And what would be its
implementation.
 
Appreciate the responses in advance.
thanx
-yogen


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.


[Axis2] java.lang.IncompatibleClassChangeError

2007-01-31 Thread Schalk Neethling

Greetings All,

Has anyone seen this error before?

ERROR  -
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cxws].[OrderProcessClient]]
- Servlet.service() for servlet OrderProcessClient threw exception
java.lang.IncompatibleClassChangeError

This refers to the following code:
at
za.co.cxchange.soap.engen.client.DataServiceStub.Send(DataServiceStub.java:107):
This seems to be around this code:
public za.co.cxchange.soap.engen.client.DataServiceStub.SendResponse Send(

   za.co.cxchange.soap.engen.client.DataServiceStub.Send param3,
   za.co.cxchange.soap.engen.client.DataServiceStub.AuthHeader1 
param4)

   throws java.rmi.RemoteException

   {
   try {
   org.apache.axis2.client.OperationClient _operationClient = 
_serviceClient.createClient(_operations[0].getName());
   
_operationClient.getOptions().setAction(http://dataservice.com/Send;);
   
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);


at
za.co.cxchange.soap.engen.client.OrderProcessClient.processRequest(OrderProcessClient.java:58):
resp = dss.Send(soapBody, authHeader);

at
za.co.cxchange.soap.engen.client.OrderProcessClient.doPost(OrderProcessClient.java:74):
OrderProcessClient opc = new OrderProcessClient();
opc.setFileData(fileData);
opc.sendSOAP();

Any and all help will be very much appreciated. Thanks!
Schalk

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



Problems with wsdl2java and JiBX

2007-01-31 Thread informaticu007-pfc
Hi:

I'm having a problem with wsdl2java code generation. I'm trying JiBX 
databinding in wrapped mode. I've got my objects defined, my wsdl definition of 
the service and  I made my binding definition manually (I attached all the 
files). I also made an ant task, following the steps of the jibx tutorial.

This is the problem:

When I use the ant task for compiling the binding definition with the 
build.xml, everything seems to go alright. After that, I would have to type 
some code for running the service and that's why I decided to use wsdl2java. 
When I use wsdl2java for code generation I get this error:

Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: No mapping defined for element {http://login/types
}WebLoginElement
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: No mapping defined for element {http://lo
gin/types}WebLoginElement
at org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUt
ility.java:928)
at org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGeneration
Utility.java:914)
at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtil
ity.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExte
nsion.java:74)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:177)
... 2 more

... 2 more




I use the command like this:

wsdl2java -uri LoginServiceJiBX.wsdl -o build -ss -sd -g -d jibx -ssi 
-Ebindingfile binding.xml -ns2p 
http://login=login,http://login/types=login.types

I tried it in many ways, defining all the mappings between namespaces and 
packages and without them... I think the problem is with that mapping but I 
don't know if I'm doing something wrong or it's tool's problem.

I made it also in unwrapped mode and there was no problem with that.

And also another question: is there any way for passing the -Ebindingfile in 
the ant task of wsdl2java? because I didn't find it.

I would appreciate any help on this.

Thanks and regards:

Jorge


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

LoginServiceJiBX.wsdl
Description: 1026571261-LoginServiceJiBX.wsdl
binding
  mapping name=WebLoginElement class=login.types.WebLoginElement
value name=localUser_nameElement field=localUser_nameElement get-method=getUser_nameElement set-method=setUser_nameElement/
value name=localUser_passwordElement field=localUser_passwordElement get-method=getUser_passwordElement set-method=setUser_passwordElement/
  /mapping
  mapping name=ReturnWebLoginElement class=login.types.ReturnWebLoginElement
value name=localWeb_user_nameElement field=localWeb_user_nameElement get-method=getWeb_user_nameElement set-method=setWeb_user_nameElement/
value name=localSoap_session_idElement field=localSoap_session_idElement get-method=getSoap_session_idElement set-method=setSoap_session_idElement/
  /mapping
/binding

ReturnWebLoginElement.java
Description: 117642524-ReturnWebLoginElement.java


WebLoginElement.java
Description: 4079661065-WebLoginElement.java
project basedir=. default=generate.all

property environment=env/
property name=AXIS2_HOME value=${env.AXIS2_HOME}/
property name=JIBX_LIB value=${env.JIBX_LIB}/
property name=ECLIPSE_WORKSPACE value=${env.ECLIPSE_WORKSPACE}/

property name=build.dir value=build/


!-- Run JiBX binding compiler --
target name=binding
   	 !-- JiBX binding compiler task definition --
	 taskdef name=bind classname=org.jibx.binding.ant.CompileTask classpath=${JIBX_LIB}/jibx-bind.jar/
	 bind verbose=true load=true binding=binding.xml
		classpathset dir=${build.dir}/
	 /bind 
/target
/project

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

Re: Issue loading .xsb resource from XBean-packaged.jar in service [Was:Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type]

2007-01-31 Thread robert lazarski

One of the oldest axis2 tutorials uses xmlbeans with ant and goes thru
a simple example on the service and client side. I tested this before
the 1.1 release and some other volunteers also tested it and improved
the docs a bit. I would say spend 20 minutes going thru that simple
example and see if that is broken - can't myself as I'm pressed for
time at the moment:

http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html#invoking

I didn't need the TCCL param in services.xml last time I tried, but at
this point you may or may not so try it both ways. I know there are
xmlbeans users so I'd be suprised if that simple example is broken -
but do let us know should you try and run it.

HTH,
Robert

On 1/31/07, Bo Xie [EMAIL PROTECTED] wrote:

Thanks, Robert.

 After setting the ServiceTCCL parameter to service, I ran into the
following error in the following call during AxisServlet.doPost()

 AbstractMessageReceiver.getTheImplementationObject.
 The DependencyManager.initServiceClass call in it throw
this exception:

 Jan 31, 2007 2:05:22 PM
org.apache.axis2.transport.http.AxisServlet doPost
 SEVERE: java.lang.ExceptionInInitializerError

 I noticed the following:
 1. The serviceimpl class was loaded ok but initialization failed. The class
loader is DeploymentClassLoader. Is this correct?
 2. From eclipse debugging, I was not able to step into
DependencyManager.initServiceClass() call. The thread stays
in stepping status w/o call stack, not the suspended status. Any idea
what this stepping state indicate?

 Any suggestion on what I else I can try?

 Thanks,
 -Bo


On 1/31/07, robert lazarski [EMAIL PROTECTED] wrote:
 Are you aware of the ServiceTCCL param ?

 parameter name=ServiceTCCL
locked=falseservice/parameter

 Try adding that services.xml. See the spring example here:
 http://ws.apache.org/axis2/1_1/spring.html#263

 Some more information is here:

http://marc2.theaimsgroup.com/?l=axis-cvsm=115946726426905w=3

 HTH,
 Robert

 On 1/30/07, Bo Xie [EMAIL PROTECTED] wrote:
  Hi all,
 
I need some advice for the following.
 
0. I use WSDL2JAVA with XmlBean binding to generate the service side
code
  following the quickstartxmlbean example.
1. Our service related XMLBean types/element xsd are packaged in
  XBean-packaged.jar in our .aar file under services.
2. Looks like when convert a derived type to XML, the code in
  SchemaTypeSystemImpl(which is in WEB-INF/lib/xbean-2.2.0.jar) is trying
to
  load derived type info from XBean-packaged.jar. For example, it tried to
  load a derived type
 
schemaorg_apache_xmlbeans/type/http_3A_2F_2Fquickstart_2Esamples_2Fxsd_2F2007_2F01_2F01/FreeFormPolicyObject.xsb
3. The problem is the class loader used by xbean-2.2.0.jar is the
  WebappClassLoader, not the classloader from Axis service. So it cannot
load
  the resource!
4. I tried to put XBean-packaged.jar under WEB-INF/lib w or w/o
removing
  the Xbean-package.jar in .aar, but in both cases got ClassCastException
  during
 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse()
 
I assume now the XBean-packaged.jar are needed both by the web service
  code and xbean-2.2.0.jar. Any advice on how to make it work?
 
  Thanks,
  -Bo
 
 
  On 1/22/07, Bo Xie  [EMAIL PROTECTED] wrote:
   Hi,
  
  My previous issue is caused by org.apache.xmlbeans.impl
.schema.SchemaTypeLoaderImpl's findTypeRef () not be able to load
the
  following resource in service:
  
  
  
 
schemaorg_apache_xmlbeans/type/http_3A_2F_2Fquickstart_2Esamples_2Fxsd/EU_2DAddress.xsb
  
   This resource is actually in my .aar file under
  dir\XBean-packaged.jar(generated from WSDL2JAVA)
  
   Do anyone know how to make it work?
  
   Thanks a lot!
  
   -Bo
  
  
  
  
   On 1/21/07, Bo Xie  [EMAIL PROTECTED]  wrote:
Hi all,
   
Sorry to ask this again, does anyone know what could cause the
  following call to return null, is it some kind of setup/configure issue
in
  the service? How to workaround it? It is in
  org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl's
  findTypeRef (). This causes the derived type cannot be created properly
with
  the xsi:type attribute.
   
SchemaTypeSystem ts = typeSystemForComponent(schema +
  METADATA_PACKAGE_LOAD + /type/, name);
   
   
Thanks,
-Bo
   
   
   
   
On 1/19/07, Bo Xie [EMAIL PROTECTED]  wrote:
 Hi,

   Looks like the problem is with the _typeCache in
  org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl's
  findTypeRef () not being populated correctly for derived type when
deployed
  as a service. This in turn was caused by typeSystemForComponent() in
  findTypeRef() returning null. As comparison, the _typeCache is populated
  correctly if I run it locally in a test program's main() and in this
case
  the typeSystemForComponent() is not null.

   Below is the findTypeRef method which suppose to return the
derived
  type if Qname passed in is a derived type. In my case, the QName is {
  

Re: Authentication Issue

2007-01-31 Thread tyson magney

I solved my initial problem.  In my Eclipse project I was referencing some
jars in the plugin folder.  I removed all of those references and readded
the packages in axis2/lib.

However I am still having authentication issues.  I can create my stub class
just fine, but when I create the response object I get an exception.   The
exception is different this time however.  Here is my code again.

DocInfoStub stub = null;
//ServiceClient sc = null;

HttpTransportProperties.Authenticator authenticator = new
HttpTransportProperties.Authenticator();
authenticator.setUsername(sysadmin);
authenticator.setPassword(idc);
Options options = new Options();
options.setProperty(HttpTransportProperties.Authenticator.BASIC,
authenticator);

stub = new DocInfoStub(http://localhost/stellent/idcplg;);

stub._getServiceClient().setOptions(options);
DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
request.setDDocName(cslptysonm_000107);

DocInfoStub.DocInfoByNameResponse response = stub.DocInfoByName(request);
-- Exception here.
DocInfoStub.DocInfoByNameResult result = response.getDocInfoByNameResult();
DocInfoStub.ContentInfo info[] = result.getContentInfo();

System.out.println(info[0].getDDocAuthor());

Here is the new exception.

org.apache.axis2.AxisFault: No address information in EPR, cannot infer
transport
   at org.apache.axis2.description.ClientUtils.inferOutTransport(
ClientUtils.java:57)
   at org.apache.axis2.client.OperationClient.prepareMessageContext(
OperationClient.java:254)
   at org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:160)
   at com.stellent.www.docinfo.DocInfoStub.DocInfoByName(DocInfoStub.java
:152)
   at com.imagesourceinc.Axis2Test.main(Axis2Test.java:44)

If I comment out this line stub._getServiceClient().setOptions(options);
then I get a timeout exception.  Any ideas?

- Tyson


On 1/31/07, tyson magney [EMAIL PROTECTED] wrote:


I probably should have stateed this first thing.  I did not write the web
services I am trying to call.  They are coming from a Java Application
server I am trying to integrate with.  I know the web services are running
since I can connect to them through Axis 1.4.  Thanks for the suggestion
though.

- Tyson

On 1/31/07, Wang, Hailong (NIH/CIT) [C] [EMAIL PROTECTED]  wrote:

  You maybe did not use the correct target end point:
 http://localhost/stellent/idcplg/. Did you get  your web service server
 running? If you deployed Axis2 into Tomcat, the target end point should be
 like http://localhost:8080/axis2/services/yourwebservice .



 Hailong


  --

 *From:* tyson magney [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, January 31, 2007 12:06 PM
 *To:* axis-user@ws.apache.org
 *Subject:* Authentication Issue



 Hello,

 I am in the process of evaluating Soap toolkits.  Axis2 looks promising
 but I am having an issue setting up a test client.  I have successfully run
 the WSDL2Java Eclipse plugin to create my stub class.  I wrote some client
 code to connect to my web services but it throws an exception.  Here is the
 code.

 DocInfoStub stub = null;
 stub = new DocInfoStub(http://localhost/stellent/idcplg/;); -- Fatal
 error here.
 DocInfoStub.DocInfoByName request = new DocInfoStub.DocInfoByName();
 request.setDDocName(000107);
 DocInfoStub.DocInfoByNameResponse response = stub.DocInfoByName
 (request);

 Here is the fatal exception when I try to instanciate the DocInfoStub
 class.
 java.lang.ExceptionInInitializerError
 at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
 DescriptionBuilder.java:86)
 at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
 AxisConfigBuilder.java :58)
 at
 org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
 DeploymentEngine.java:690)
 at
 org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
 FileSystemConfigurator.java :109)
 at
 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
 (ConfigurationContextFactory.java:61)
 at
 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(
 ConfigurationContextFactory.java:180)
 at org.apache.axis2.client.ServiceClient.initializeTransports(
 ServiceClient.java:189)
 at org.apache.axis2.client.ServiceClient.configureServiceClient(
 ServiceClient.java :118)
 at org.apache.axis2.client.ServiceClient.init(ServiceClient.java
 :114)
 at com.stellent.www.docinfo.DocInfoStub.init(DocInfoStub.java:82)
 at com.stellent.www.docinfo.DocInfoStub.init( DocInfoStub.java
 :106)
 at com.imagesourceinc.Axis2Test.main(Axis2Test.java:31)
 Caused by: java.lang.IllegalStateException: No valid ObjectCreator
 found.
 at org.apache.axiom.om.util.StAXUtils$Pool.init( StAXUtils.java
 :41)
 at org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:62)
 ... 12 more
 Exception in thread main

 I believe the issue is that I need to authenticate the 

Use DOOM vs. not use DOOM

2007-01-31 Thread George Stanchev
Hi,
 
Can someone explain or point me to a write-up  what is the purpose
of DOOM processing flags (WSSHandlerConstants.DISABLE_DOOM) and when
should DOOM be turned on or off. And what is DOOM mode anyways :-)
 
Thanks in advance!
 
George


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please contact the sender by 
reply e-mail and destroy all copies of the original message.



Re: Connnect one service to another service

2007-01-31 Thread Jiang Liu
I have tried a dummy way:
*Generate service2's client stub and xsd resources, assume you used xmlbeans
*copy service2's resources and client stubs to service1's server source
*modify service1's skeleton to import service2's client stub
*re-bulid service1 and deploy on Axis2
well, now you can invoke service1 which can invoke service2 as well.

but rather, i map this into a BPEL process.

Cheers


-Original Message-
From: Torch [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Date: Tue, 30 Jan 2007 21:48:15 -0800 (PST)
Subject: Connnect one service to another service


I am currently using Axis2.  I have successfully managed to deploy my
services on Tomcat but I am unsure how to connect from one service to
another.

At  the moment I can connect from a client to a web service (client --
service) but I wish to take this one step further (client -- service --
service).

If anyone can provide help on the matter that would be much appreciated.

Torch. 
-- 
View this message in context: 
http://www.nabble.com/Connnect-one-service-to-another-service-tf3146826.html#a8723667
Sent from the Axis - User mailing list archive at Nabble.com.


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


--
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang
RMIT, Melbourne

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



Re: some strange chars in the http response.

2007-01-31 Thread Martin Gainty
Justin--

check the beginning of the transmitted xml
you *may* have some whitespace characters in the prolog

Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: justin ouyang 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, January 30, 2007 10:58 PM
  Subject: Help: some strange chars in the http response.


  When i used TCPMON to monitor the soap message, i found some strange chars in 
the response message.  the chars was highlighted.

  HTTP/1.1 200 OK
  Date: Wed, 31 Jan 2007 03:42:13 GMT

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

  Transfer-Encoding: chunked



  0213

  ?xml version=1.0 encoding=UTF-8?
 soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd= 
http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
soapenv:Body 
   ns1:getVersionResponse 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1= 
http://axis.apache.org;
  getVersionReturn xsi:type=xsd:stringApache Axis version: 
1.4Built on Apr 22, 2006 (06:55:48 PDT)/getVersionReturn
   /ns1:getVersionResponse 
/soapenv:Body
 /soapenv:Envelope


  Runtime: Axis1.4 run on Weblogic815.

[Axis2] Getting SOAPFault on asynchronous sendReceiveNonBlocking call

2007-01-31 Thread footh
I am using the above asynchronous call to invoke a web
service with a Callback class.

When the request causes a SOAPFault, the onError
method of the Callback class is called.  However, it
seems to be called with an empty exception.  I have no
way of retrieving the SOAP Fault xml text.

I know the invocation is returning a response because
I can see it in the console with debugging on.

Is there any way to retrieve the SOAP Fault xml using
this method of invoking a web service?

Regards,

JF



 

Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=listsid=396546091

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



Re: Trouble implementing Custom Authentication Scheme

2007-01-31 Thread Jem

Further investigations:

The class that declares it can add user defined AuthSchemes does this:

   String scheme = (String) schemes.get(i);
   if (
HttpTransportProperties.Authenticator.BASIC.equals(scheme)) {


authPrefs.add(AuthPolicy.BASIC);
} else if (
HttpTransportProperties.Authenticator.NTLM.equals(scheme)) {
authPrefs.add(AuthPolicy.NTLM);
} else if (
HttpTransportProperties.Authenticator.DIGEST.equals(scheme)) {
authPrefs.add(AuthPolicy.DIGEST);
}



Strangely the statics in HttpTransportProperties.Authenticator are set like
this:

   /* Default Auth Schems*/
   public static final String NTLM = AuthPolicy.NTLM;
   public static final String DIGEST = AuthPolicy.DIGEST;
   public static final String BASIC = AuthPolicy.BASIC;

As long as these definitions don't change, the code block could be
refactored to:

   String scheme = (String) schemes.get(i);
   if (AuthPolicy.BASIC.equals(scheme) ||
AuthPolicy.NTLM.equals(scheme) || AuthPolicy.DIGEST.equals(scheme)) {


authPrefs.add(scheme);
}



But given that the class should allow the user to add their own scheme, we
can enhance the code to the magnificent:

   authPrefs.add((String) schemes.get(i));

If this is acceptable, how do I go about issuing a patch?

Jem




On 1/31/07, Jem [EMAIL PROTECTED] wrote:


Hello

I'm having trouble creating a custom authentication scheme. The following
section advises that its possible, but doesn't suggest how:
http://ws.apache.org/axis2/1_1_1/http-transport.html#preemptive_auth

I've trawled both the axis2 and commons-httpclient code and believe the
most direct approach is:

AuthPolicy.registerAuthScheme (MyScheme.NAME, MyScheme.class);
Options options = new Options();
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();
auth.setUsername(username);
auth.setPassword(password);
auth.setAuthSchemes(Arrays.asList(new String[]{MyScheme.NAME}));
options.setProperty(HTTPConstants.AUTHENTICATE, auth);
ConfigurationContext configContext = ...
ClientStub service = ...
ServiceClient client = service._getServiceClient();
client.getOptions().setProperty(HTTPConstants.AUTHENTICATE, auth);

Wow, quite a lot of work!

But then execution gets to
org.apache.axis2.transport.http.AbstractHTTPSender#setAuthenticationInfo.
This method has the following comment:
/*
This will handle server Authentication, It could be either NTLM,
Digest or Basic Authentication.
Apart from that user can change the priory or add a custom
authentication scheme.
*/

But it actually doesn't let me add a custom authentication scheme, as the
following code snippet illustrates:

/* Customizing the priority Order */
List schemes = authenticator.getAuthSchemes();
if (schemes != null  schemes.size()  0) {
List authPrefs = new ArrayList(3);
for (int i = 0; i  schemes.size(); i++) {
if (schemes.get(i) instanceof AuthPolicy) {
authPrefs.add(schemes.get(i));
continue;
}
String scheme = (String) schemes.get(i);
if (
HttpTransportProperties.Authenticator.BASIC.equals(scheme)) {
authPrefs.add(AuthPolicy.BASIC);
} else if (
HttpTransportProperties.Authenticator.NTLM.equals(scheme)) {
authPrefs.add(AuthPolicy.NTLM);
} else if (
HttpTransportProperties.Authenticator.DIGEST.equals(scheme)) {
authPrefs.add(AuthPolicy.DIGEST);
}
}
agent.getParams().setParameter(
AuthPolicy.AUTH_SCHEME_PRIORITY,
   authPrefs);
}

My scheme comes through as a String identifier and isn't 'basic', 'ntlm'
or 'digest'.

It is also not an instance of AuthPolicy. This being a rather strange
abstract class from commons-httpclient with only static methods. It keeps an
ordered list of authentication methods which Axis doesn't access (at least
in my execution thread anyway).

So I'm quite lost now. Has anyone successfully implemented a custom auth
scheme with Axis2 1.1.1? Can I get some pointers?

TIA
Jem

--
http://seine.vox.com/
How's the serenity?





--
http://seine.vox.com/
How's the serenity?


RE: Configuration in Rampart 1.1

2007-01-31 Thread Sriram Vaidyanathan
Hi Ruchith,
   When I try to give a message level policy for an operation like shown 
below:, I get an exception at server startup which says 
java.lang.UnsupportedOperationException: Not yet implemented .

operation name=echo mep=http://www.w3.org/2004/08/wsdl/in-out;
 actionMappingurn:echo/actionMapping
 
outputActionMappinghttp://ws.sample/echoResponse/outputActionMapping
 !--  Message Level Policy (Only for Incoming messages --
 message label=in
wsp:Policy wsu:Id=ServicePolicy 
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
   sp:SignedParts 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
  sp:Body/
   /sp:SignedParts
   sp:EncryptedParts 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
  sp:Body/
   /sp:EncryptedParts
/wsp:Policy   
 /message
  /operation

Any help on this would be appreciated.

Thanks
Sriram Vaidyanathan


-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 6:34 PM
To: axis-user@ws.apache.org
Subject: Re: Configuration in Rampart 1.1

Hi Sriram,

This should be possible by specifying message level policies in the
services.xml.

Simply remove the EncryptedParts and SignedParts assertions from the
service level policy and include those assertions at the message
level. For example:

service
operation name=echo
message label=in
 wsp:Policy wsu:Id=InputMessagePolicy
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
sp:SignedParts
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
sp:Body/
/sp:SignedParts
sp:EncryptedParts
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
sp:Body/
/sp:EncryptedParts
 /wsp:Policy
/message
/operation

wsp:Policy wsu:Id=ServicePolicy
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
 .
 .
 .
 .
/wsp:Policy

/service

Please make sure that you don't have a
sp:OnlySignEntireHeadersAndBody/ assertion in the binding policy as
well.


Thanks,
Ruchith

On 1/25/07, Sriram Vaidyanathan [EMAIL PROTECTED] wrote:
 Hello Ruchith /Dimuthu,

 Thanks for your responses!!

 I was just using the Policy sample03, which does both the Signature and the 
 Encryption, and it works very well. My question is there a way for me to 
 specify to the service to only expect Inflow messages to be secured and not 
 secure Outflow messages like it was possible in the Rampart 1.0 
 configuration.

 Thanks,
 Sriram Vaidyanathan
 Software Engineer - Java
 Copart Auto Auctions, Inc.
 4665 Business Center Drive
 Fairfield, CA 94534
 www.copart.com http://www.copart.com/
 (707) 639-5248

 -Original Message-
 From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 19, 2007 2:56 AM
 To: axis-user@ws.apache.org
 Subject: Re: Configuration in Rampart 1.1

 Hi Sriram,

 Note that you must use Rampart policy[1] in configuring rampart along
 with the standard WS-SecurityPolicy.

 The WS-SecPolicy stuff are not really straight forward. Therefore I
 believe we will be maintaining the rampart-1.0 configuration for a few
 more versions :-). However the rampart-1.0 configuration causes a few
 issues when we try to interop with other implementations. For example
 if the endpoint policy requires a signed Timestamp with strict
 header layout, the rampart-1.0 configuration fails to satisfy those
 requirements. Therefore the best option

 Thanks,
 Ruchith

 [1] http://ws.apache.org/axis2/modules/rampart/1_1/sec-conf/rampart-config.xsd

 On 1/18/07, Dimuthu Leelaratne [EMAIL PROTECTED] wrote:
  Hi Sriram,
 
  As I understand your single client can tallk to multiple services but
  with different security requirements. For configurations now we
  encourage using Policy file according to WS Security Policy
  specification 
  (http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf).
 
  Since your services require different security settings, we may have
  to create different Policy.xml files. After that according to the
  service the client is going to invoke you  can load the relevant
  Policy file as follows.
 
  StAXOMBuilder builder  = new StAXOMBuilder(pathToPolicyfile);
  Policy clientPolicy =
  

RE: Configuration in Rampart 1.1

2007-01-31 Thread Sriram Vaidyanathan
Hi,
   Ignore the previous mail... The problem was because I gave the message label 
as in instead of In

Thanks,
Sriram Vaidyanathan


-Original Message-
From: Sriram Vaidyanathan 
Sent: Wednesday, January 31, 2007 11:00 PM
To: 'axis-user@ws.apache.org'
Subject: RE: Configuration in Rampart 1.1

Hi Ruchith,
   When I try to give a message level policy for an operation like shown 
below:, I get an exception at server startup which says 
java.lang.UnsupportedOperationException: Not yet implemented .

operation name=echo mep=http://www.w3.org/2004/08/wsdl/in-out;
 actionMappingurn:echo/actionMapping
 
outputActionMappinghttp://ws.sample/echoResponse/outputActionMapping
 !--  Message Level Policy (Only for Incoming messages --
 message label=in
wsp:Policy wsu:Id=ServicePolicy 
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
   sp:SignedParts 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
  sp:Body/
   /sp:SignedParts
   sp:EncryptedParts 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
  sp:Body/
   /sp:EncryptedParts
/wsp:Policy  
 /message
  /operation

Any help on this would be appreciated.

Thanks
Sriram Vaidyanathan


-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 6:34 PM
To: axis-user@ws.apache.org
Subject: Re: Configuration in Rampart 1.1

Hi Sriram,

This should be possible by specifying message level policies in the
services.xml.

Simply remove the EncryptedParts and SignedParts assertions from the
service level policy and include those assertions at the message
level. For example:

service
operation name=echo
message label=in
 wsp:Policy wsu:Id=InputMessagePolicy
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
sp:SignedParts
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
sp:Body/
/sp:SignedParts
sp:EncryptedParts
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
sp:Body/
/sp:EncryptedParts
 /wsp:Policy
/message
/operation

wsp:Policy wsu:Id=ServicePolicy
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
 .
 .
 .
 .
/wsp:Policy

/service

Please make sure that you don't have a
sp:OnlySignEntireHeadersAndBody/ assertion in the binding policy as
well.


Thanks,
Ruchith

On 1/25/07, Sriram Vaidyanathan [EMAIL PROTECTED] wrote:
 Hello Ruchith /Dimuthu,

 Thanks for your responses!!

 I was just using the Policy sample03, which does both the Signature and the 
 Encryption, and it works very well. My question is there a way for me to 
 specify to the service to only expect Inflow messages to be secured and not 
 secure Outflow messages like it was possible in the Rampart 1.0 
 configuration.

 Thanks,
 Sriram Vaidyanathan
 Software Engineer - Java
 Copart Auto Auctions, Inc.
 4665 Business Center Drive
 Fairfield, CA 94534
 www.copart.com http://www.copart.com/
 (707) 639-5248

 -Original Message-
 From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 19, 2007 2:56 AM
 To: axis-user@ws.apache.org
 Subject: Re: Configuration in Rampart 1.1

 Hi Sriram,

 Note that you must use Rampart policy[1] in configuring rampart along
 with the standard WS-SecurityPolicy.

 The WS-SecPolicy stuff are not really straight forward. Therefore I
 believe we will be maintaining the rampart-1.0 configuration for a few
 more versions :-). However the rampart-1.0 configuration causes a few
 issues when we try to interop with other implementations. For example
 if the endpoint policy requires a signed Timestamp with strict
 header layout, the rampart-1.0 configuration fails to satisfy those
 requirements. Therefore the best option

 Thanks,
 Ruchith

 [1] http://ws.apache.org/axis2/modules/rampart/1_1/sec-conf/rampart-config.xsd

 On 1/18/07, Dimuthu Leelaratne [EMAIL PROTECTED] wrote:
  Hi Sriram,
 
  As I understand your single client can tallk to multiple services but
  with different security requirements. For configurations now we
  encourage using Policy file according to WS Security Policy
  specification 
  (http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf).
 
  Since your services require different security 

Re: Problem installing/running CodeGen Eclipse plugin

2007-01-31 Thread Lahiru Sandakith

Hi Mike,

If you can attach the ECLIPSE_WORKSPACE/.metadata/.log
and all the files that you have under
ECLIPSE_WORKSPACE/.metadata/.plugins/Axis2_Codegen_Wizard
It would be vary valuable for nailing down what was happen in your case

Thanks

Lahiru Sandakith.


On 1/31/07, Mike Ferraro [EMAIL PROTECTED] wrote:


I downloaded the latest CodeGen plug-in, unzipped the Axis2_...
directory and copied it into the Eclipse plug-in directory, started
Eclipse, and tried to start the CodeGen wizard using the New - Other...
- Axis2 Wizards - Axis2 Code Generator.  The wizard fails to start and
Eclipse gives me a message stating that the Axis2_CodeGen_Wizard was
unable to load the class
org.apache.axis2.tool.codegen.eclipse.CodeGenWizard.

I double checked the installation instructions, but they are pretty
simple so I don't think that I missed a step.  I'm using Eclipse 3.2
with JDK 1.4.2.  Anyone have any ideas?

Thanks,
Mike


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





--
Regards
Lahiru Sandakith