Re: Fw: Axis2C license questions

2008-01-09 Thread Dinesh Premalal
Hi,

  We have following dependencies , with mentioned licensing

libxml2   - MIT License
zlib  - zlib license

iconv*- LGPL License

*(Axis2/C doesn't have direct dependency with iconv, only libxml2 has
 dependency with iconv) 

David Illsley provide this link [1] as a reference , which carries
potential solution for our issue. According to this document MIT 
and zlib licenses comes under Category A licenses (Authorized
licenses).

quote
Third-party works, in both source and binary form, may be included
within Apache products when made available under the following
licenses: 
/quote


whereas LGPL comes under Category X licenses (Excluded Licenses), 
quote
The following licenses must not apply to any software within an Apache
product, whether in source or binary form. See Options for Prohibited
Works for applicability to system requirements or optional works
distributed elsewhere.
/quote


My understanding is , we could ship libxml2 and zlib if we want. But
there might not be room for iconv. However we do not have direct
dependency for iconv, we list it because libxml2 have dependency on
it.

Any thoughts on this ?

thanks,
Dinesh

1.http://people.apache.org/~cliffs/3party.html#options-systemrequirements

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



Re: Fw: Axis2C license questions

2008-01-09 Thread Samisa Abeysinghe

So it is not a bad picture after all.
My proposal is that, we steady up Guthtiila and make Guththila the 
default parser in the future. zlip is already optional. So we will have 
zero external dependencies then.


Samisa...

Dinesh Premalal wrote:

Hi,

  We have following dependencies , with mentioned licensing

libxml2   - MIT License
zlib  - zlib license

iconv*- LGPL License

*(Axis2/C doesn't have direct dependency with iconv, only libxml2 has
 dependency with iconv) 


David Illsley provide this link [1] as a reference , which carries
potential solution for our issue. According to this document MIT 
and zlib licenses comes under Category A licenses (Authorized

licenses).

quote
Third-party works, in both source and binary form, may be included
within Apache products when made available under the following
licenses: 
/quote



whereas LGPL comes under Category X licenses (Excluded Licenses), 
quote

The following licenses must not apply to any software within an Apache
product, whether in source or binary form. See Options for Prohibited
Works for applicability to system requirements or optional works
distributed elsewhere.
/quote


My understanding is , we could ship libxml2 and zlib if we want. But
there might not be room for iconv. However we do not have direct
dependency for iconv, we list it because libxml2 have dependency on
it.

Any thoughts on this ?

thanks,
Dinesh

1.http://people.apache.org/~cliffs/3party.html#options-systemrequirements

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



[Axis2C] Casting away const

2008-01-09 Thread Alastair FETTES
Axis2C Developers:

There seems to be a fundamental problem with functions that return
values of type axis2_chart_t*.  We have only investigated a couple of
them but it appears that const values are being casted away in some
instances.  Please view the following example:

snippet
AXIS2_EXTERN 
axis2_char_t*
axiom_attribute_get_value(
axiom_attribute_t * attribute,
const axutil_env_t * env)
{
if (attribute-value)
{
return (axis2_char_t *)
axutil_string_get_buffer(attribute-value, env);
}
return NULL;
}
/snippet

Note that the return value of axiom_attribute_get_value is a NON-const
axis2_char_t*.  Note the cast on the return value of function
axutil_string_get_buffer.  Here is the declaration of
axutil_string_get_buffer.

snippet
AXIS2_EXTERN 
const axis2_char_t*
axutil_string_get_buffer(
const struct axutil_string *string,
const axutil_env_t * env);
/snippet

Note that the return value is a CONST axis2_char_t*. The const attribute
of this pointer is being removed via the cast.

Is this expected functionality?  If not I suggest you research all
functions that return axis2_char_t*.

Regards.

Alastair Fettes

This e-mail and any attachments are intended solely for the use of the
intended recipient(s) and may contain legally privileged, proprietary
and/or confidential information.  Any use, disclosure, dissemination,
distribution or copying of this e-mail and any attachments for any
purposes that have not been specifically authorized by the sender is
strictly prohibited.  If you are not the intended recipient, please
immediately notify the sender by reply e-mail and permanently delete all
copies and attachments.

The entire content of this e-mail is for information purposes only and
should not be relied upon by the recipient in any way unless otherwise
confirmed in writing by way of letter or facsimile. 



Re: Sending UTF8 through Axis-C

2008-01-09 Thread Senaka Fernando
Hi Arseny,

The issue is that when you use wcstombs, the converted string must be
char* compatible AFAIK. You can instead encode your text into base64 and
decode it at your end. This should work as we can encode anything from
images to text files.

Rampart/C folks use this encoding feature. Rampart/C is the extension to
Axis2/C that provides security (Rampart/C is an apache software foundation
project).

The next option is to send your data as an attachment using MTOM. There is
an mtom sample demonstrating how it works. Please note that this
attachment need not always be an image.

The native Axis2/C implementation does not have wchar_t support and you
are encouraged to use one of the methods above.

Devs, please correct me if I've made a mistake here.

Regards,
Senaka

 Hello!
 I am trying to send russian text from MS VC program (client) to Java
 (server) using axis-c and axis-j respectively.
 The problem is that I do not know how to correctly encode CString with
 cyrillic symbols into UTF8.
 When I do it the same way as I do it for english params

 char* lastNameAnsi = new char[100];
 wcstombs(lastNameAnsi, mLastName.GetString(), 100);

 I get:
 invalid byte 2 of 2-byte utf-8 sequence axis SAXException

 And as I see the stubs generated by wsdl2ws have char* (not wchar_t* or
 smth) for string parameters.
 What should I do to send unicode using axis-c?
 Thank you in advance!


 -
 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: Related to Axis2C generated client issue

2008-01-09 Thread Trasca Virgil
Hi Dimuthu,
 
  Thank you for the help. Meenwhile starting from a previous mail of you I 
started to suspect the error is in the server side and I confirmed that with 
some tests. My issue now is that I don't know how to enable logging in my Axis2 
server in order to track the problem in detail.

Thank you anyway,
Virgil

- Original Message 
From: Dimuthu Gamage [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Thursday, January 10, 2008 5:25:10 AM
Subject: Related to Axis2C generated client issue


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

It works for me when I tried it with following demo logic.

 public
burster.publicserviceinterface.GetSettingsResponse getSettings
  (

  )
{
//TODO : fill this with the necessary business logic
//throw new
java.lang.UnsupportedOperationException(Please implement  +
this.getClass().getName() + #getSettings);
burster.publicserviceinterface.GetSettingsResponse res
= new burster.publicserviceinterface.GetSettingsResponse();

burster.generated.jaxb2.xsd.BurstSettings setting =
new burster.generated.jaxb2.xsd.BurstSettings();
burster.generated.jaxb2.xsd.DefaultEmailMessage email
= new burster.generated.jaxb2.xsd.DefaultEmailMessage();
burster.generated.jaxb2.xsd.EmailServer emailServer=
new burster.generated.jaxb2.xsd.EmailServer();

email.setEmailMessage(Hi, this is a test mail);
email.setEmailSubject(Mr.TEST);

emailServer.setDebug(false);
emailServer.setEmailAddressFrom(someone here?);
emailServer.setEmailAddressFromLabel(hi all);

emailServer.setHost(localhost);
emailServer.setId(3);
emailServer.setKeyFile(key);
emailServer.setPort(50);
emailServer.setRootCertFile(when);
emailServer.setServerCertFile(this);
emailServer.setType(finish?);
emailServer.setUseSSL(true);
emailServer.setUseTLS(true);
emailServer.setUserId(3);
emailServer.setUserPassword(mypassword);
setting.setEmailServer(emailServer);
setting.setDefaultEmailMessage(email);
res.set_return(setting);

return res;
}

So no doubt this is a problem with your server logic.


PS. I tried to send this as a reply to the mail in the thread. And I
was receiving delivery failures repeatedly. Worse thing it says I m
spamming,
So here I m trying to send minimum..

Thanks
Dimuthu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHhZALBsYqdCP8GrkRAs8IAKCKZ+C1CGV/+POK+T7HypTx6Tx3DgCeNirD
57+CKKI8mweavTrI9FHhr3g=
=HQg7
-END PGP SIGNATURE-

-
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: WSDL2Java numeric suffixes to class names

2008-01-09 Thread Richard Gaywood
On Jan 9, 2008 4:46 AM, Amila Suriarachchi [EMAIL PROTECTED]
wrote:

 Please try with a nightly build. There was a jira regarding this and now
 for Elements it appends suffix E.


Ah yes, that works perfectly! Thanks for your response.


[axis2] WS-Security axis2 1.3 with rampart 1.3 custom token?

2008-01-09 Thread MadLion
Hi all,

i'm using axis2 1.3 with rampart 1.3 for ws-security.
I have a runnig exsample with UsernameToken. That's fine so far.
But now i have the need to transport a custom token with wss header.
I'm runnig on a IBM websphere applicationserver and must transport a LTPA token.

IBM is transporting this as follows in wss header:

wsse:Security soapenv:mustUnderstand=1 
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd;
  wsse:BinarySecurityToken 
xmlns:wsst=http://www.ibm.com/websphere/appserver/tokentype/5.0.2 
ValueType=wsst:LTPA
  nwHBBZwUF+m94fAuY57oQrGFyKnIIYMM5OOlkbtMWx5yaIo=
  /wsse:BinarySecurityToken
/wsse:Security
(see 
http://www-128.ibm.com/developerworks/webservices/library/ws-multiport/index.html#listing3)
IBM is using the BinarySecurityToken to transport there own token (the LTPA 
token).
So my question is how to extend/use rampart to transport a cutom token myself?

Regards
Holger
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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



Mininal set of maven dependencies

2008-01-09 Thread Antonio Manuel Muñiz Martín
Somebody could tell me the minimal set of maven dependencies for a Axis2
Service project?

Thanks.
Antonio.


Inheritance in axis2 possible? - WSDL2Java

2008-01-09 Thread Corsin Capol
Is the following possible with axis2?

ClassA
ClassB extends ClassA

The service returns an object of ClassB...wsdl2java.

I have tried something like this, but I just received an AxisFault. Ideas?

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement

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



[Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread Mauro Molinari

Hello all!
We are using Axis2 in a client environment to invoke a web service.

Looking at org.apache.axis2.transport.http.HTTPSender.HTTPSender() I see 
that there can be a parameter set in the message context, created when 
invoking an operation, that specifies whether Axis2 should use an HTTP 
POST or HTTP GET method to send the request to the web service provider.
By default, it seems that WSDL2Java generates ADB code that doesn't 
specify anything, so the default behaviour (line 77) of making an HTTP 
POST request is chosen.


My question is this: is there a way to specify to WSDL2Java to generate 
client code that makes calls using HTTP GET method, or must I manually 
modify the generated code to add the appropriate value for 
org.apache.axis2.Constants.Configuration.HTTP_METHOD parameter to the 
message context for each operation invocation method?


Thanks in advance.

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

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



Re: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread keith chapman
If you generate code for a HTTPBinding (not a SOAPBinding) and it the
httpBinding specifies that the HTTP method for that operation is GET then it
will genarate code to do it.  Axis2 also supports PUT and DELETE.  PLease
note that the HTTPBinding description of WSDL 1.1 is not that rich. I would
recommend you to use WSDL 2.0.

Thanks,
Keith.

On Jan 9, 2008 3:05 PM, Mauro Molinari [EMAIL PROTECTED] wrote:

 Hello all!
 We are using Axis2 in a client environment to invoke a web service.

 Looking at org.apache.axis2.transport.http.HTTPSender.HTTPSender() I see
 that there can be a parameter set in the message context, created when
 invoking an operation, that specifies whether Axis2 should use an HTTP
 POST or HTTP GET method to send the request to the web service provider.
 By default, it seems that WSDL2Java generates ADB code that doesn't
 specify anything, so the default behaviour (line 77) of making an HTTP
 POST request is chosen.

 My question is this: is there a way to specify to WSDL2Java to generate
 client code that makes calls using HTTP GET method, or must I manually
 modify the generated code to add the appropriate value for
 org.apache.axis2.Constants.Configuration.HTTP_METHOD parameter to the
 message context for each operation invocation method?

 Thanks in advance.

 --
 Mauro Molinari
 Software Developer
 [EMAIL PROTECTED]

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




-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Inheritance in axis2 possible? - WSDL2Java

2008-01-09 Thread Amila Suriarachchi
Did you generate the Service using the wsdl2java tool. i.e. you start with
the
wsdl file. or you generate the service with the classes i.e using POJOs.

For former case it should work.

thanks,
Amila.

On Jan 9, 2008 3:03 PM, Corsin Capol [EMAIL PROTECTED] wrote:

 Is the following possible with axis2?

 ClassA
 ClassB extends ClassA

 The service returns an object of ClassB...wsdl2java.

 I have tried something like this, but I just received an AxisFault. Ideas?

 org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
 Unexpected subelement

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




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 Namespace lookup error throw when I access the MessageContext in handler on client service request (JAXB RI databinding)

2008-01-09 Thread patc


Hi there

I think this issue is caused by the following bug (in the JAXB RI generated
stub code):
https://issues.apache.org/jira/browse/AXIS2-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Going to try the suggested code workaround, and will close if it fixes
problem

Pat



patc wrote:
 
 
 
 Hi there
 
 I have encountered a problem when accessing the MessageContext on a client
 request handler.  What I am attempting to do is log the payload when the
 client makes a service request.  The client is an Axis2 stub, generated by
 the WSDLtoJava utility with JAXB RI as the databinding.
 
 The client request works fine (reaches endpoint) when my custom module is
 not engaged.  The problem occurs when I add my own custom handler which
 just logs the payload:
 
 public class ProcessRequestHandler extends AbstractHandler implements
 Handler {
 ….
 public InvocationResponse invoke(MessageContext msgContext) throws
 AxisFault {
   System.out.println(Payload  + msgContext.getEnvelope().toString());   
 
 return InvocationResponse.CONTINUE;
 }
 }
 
 The client_axis2.xml configures the handler as follows:
 
 phaseOrder type=OutFlow
 !--  user can add his own phases to this area  --
 phase name=soapmonitorPhase/
 phase name=OperationOutPhase/
 !--system predefined phase--
 !--these phase will run irrespective of the service--
 phase name=RMPhase/
 phase name=PolicyDetermination/
 phase name=MessageOut/
 phase name=Security/
 phase name=ProcessRequestPhase/   
 /phaseOrder
 
 When the client makes a request with the custom module engaged, the
 following error occurs:
 
 com.fineos.ta.test.functests.AnyTest.AnyTest_0001java.lang.RuntimeException:
 Element namespace from data source is
 http://servicetypes.garageservices.test.ta.fineos.com, not the expected 
   at
 org.apache.axiom.om.impl.llom.OMSourcedElementImpl.forceExpand(OMSourcedElementImpl.java:184)
   at
 org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:568)
   at
 org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:772)
   at
 org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756)
   at
 org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:210)
   at
 org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756)
   at
 org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345)
   at
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:913)
   at
 com.fineos.ta.test.garageservices.handlers.ProcessRequestHandler.invoke(ProcessRequestHandler.java:54)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:377)
   at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
   at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
   at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
   at
 com.fineos.ta.test.garageservices.soap.GarageServicesStub.createGarageCompany(GarageServicesStub.java:174)
 
 I had a look at the Axiom 1.2.5 source and found the following method in
 org.apache.axiom.om.impl.llom.OMSourceElementImpl, which throws the
 exception:
 
 private void forceExpand() {
   …
   …
 String readerURI = readerFromDS.getNamespaceURI();
 readerURI = (readerURI == null) ?  : readerURI;
 String uri = getNamespace().getNamespaceURI();
 if (!readerURI.equals(uri)) {
 log.error(forceExpand: expected element namespace  +
 getLocalName() + , found  + uri);
 throw new RuntimeException(Element namespace from data
 source is  +
 readerURI + , not the expected  + uri);
 }
 }
 
 The above code segment would suggest namespace lookups are not working
 correctly.  I did think maybe it was my namespaces in the WSDL or the JAXB
 RI binding types were the problem, but if my namespaces were incorrect, I
 would not expect the normal (non custom handler) client invocation to
 succeed.
 
 From debugging the code I have found that the above method only gets
 called when my custom handler is configured on.  I guess my real question
 is why when I access the MessageContext in a handler does it behave
 differently?  The MessageContext surely gets accessed at some stage in the
 normal (no custom handler) client invocation, so is there something I am
 missing, or am I accessing the MessageContext too early, or am I just
 doing something wrong?  I originally 

Re: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread Mauro Molinari

keith chapman ha scritto:
If you generate code for a HTTPBinding (not a SOAPBinding) and it the 
httpBinding specifies that the HTTP method for that operation is GET 
then it will genarate code to do it.  Axis2 also supports PUT and 
DELETE.  PLease note that the HTTPBinding description of WSDL 1.1 is not 
that rich. I would recommend you to use WSDL 2.0.


Thanks,
Keith.


Hi Keith,
thank you for your answer!
This is interesting for HTTP Binding... but what about the case of a web 
service that only exposes a SOAP Binding?


Thinking about it, I may wonder if it makes sense to think about a SOAP 
request sent using HTTP GET method... the problem is that we currently 
have some problems invoking a web service, because we receive the 
following response:


9-Gen-2008 9.20.38 org.apache.axis2.transport.http.HTTPSender sendViaPost
INFORMAZIONI: Unable to sendViaPost to url[...cut...]
org.apache.axis2.AxisFault: Transport error: 405 Error: Method Not Allowed

Cheers.

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

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



Re: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread Amila Suriarachchi
On Jan 9, 2008 3:14 PM, keith chapman [EMAIL PROTECTED] wrote:

 If you generate code for a HTTPBinding (not a SOAPBinding) and it the
 httpBinding specifies that the HTTP method for that operation is GET then it
 will genarate code to do it.


use -pn port name -sn service name options to generate the code for a
pirticular port.
for wsdl 2.0 this should work fine.

Thanks,
Amila.

 Axis2 also supports PUT and DELETE.  PLease note that the HTTPBinding
 description of WSDL 1.1 is not that rich. I would recommend you to use
 WSDL 2.0.





 Thanks,
 Keith.


 On Jan 9, 2008 3:05 PM, Mauro Molinari [EMAIL PROTECTED] 
 wrote:

  Hello all!
  We are using Axis2 in a client environment to invoke a web service.
 
  Looking at org.apache.axis2.transport.http.HTTPSender.HTTPSender() I see
  that there can be a parameter set in the message context, created when
  invoking an operation, that specifies whether Axis2 should use an HTTP
  POST or HTTP GET method to send the request to the web service provider.
  By default, it seems that WSDL2Java generates ADB code that doesn't
  specify anything, so the default behaviour (line 77) of making an HTTP
  POST request is chosen.
 
  My question is this: is there a way to specify to WSDL2Java to generate
  client code that makes calls using HTTP GET method, or must I manually
  modify the generated code to add the appropriate value for
  org.apache.axis2.Constants.Configuration.HTTP_METHOD parameter to the
  message context for each operation invocation method?
 
  Thanks in advance.
 
  --
  Mauro Molinari
  Software Developer
  [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Keith Chapman
 Software Engineer
 WSO2 Inc.
 Oxygenating the Web Service Platform.
 http://wso2.org/

 blog: http://www.keith-chapman.org




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread Amila Suriarachchi
On Jan 9, 2008 4:09 PM, Mauro Molinari [EMAIL PROTECTED] wrote:

 keith chapman ha scritto:
  If you generate code for a HTTPBinding (not a SOAPBinding) and it the
  httpBinding specifies that the HTTP method for that operation is GET
  then it will genarate code to do it.  Axis2 also supports PUT and
  DELETE.  PLease note that the HTTPBinding description of WSDL 1.1 is not
  that rich. I would recommend you to use WSDL 2.0.
 
  Thanks,
  Keith.

 Hi Keith,
 thank you for your answer!
 This is interesting for HTTP Binding... but what about the case of a web
 service that only exposes a SOAP Binding?


for SOAP Binding you must use  POST method.



 Thinking about it, I may wonder if it makes sense to think about a SOAP
 request sent using HTTP GET method... the problem is that we currently
 have some problems invoking a web service, because we receive the
 following response:

 9-Gen-2008 9.20.38 org.apache.axis2.transport.http.HTTPSender sendViaPost
 INFORMAZIONI: Unable to sendViaPost to url[...cut...]
 org.apache.axis2.AxisFault: Transport error: 405 Error: Method Not Allowed


Are you invoking a service out side your network? Check what the exact HTTP
response message comes
from the server. May be a problem with the remote server.

Thanks,
Amila.



 Cheers.

 --
 Mauro Molinari
 Software Developer
 [EMAIL PROTECTED]

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




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread Mauro Molinari

Amila Suriarachchi ha scritto:
Are you invoking a service out side your network? Check what the exact 
HTTP response message comes

from the server. May be a problem with the remote server.


Thank you Amila! I will then certainly investigate for problems of 
network or server configuration.


Cheers.

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

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



Re: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST?

2008-01-09 Thread keith chapman
The only way you can get a SOAP response for a GET is if the operation uses
the soap-response MEP. Axis2 supports this via WSDL 2.0 deployment.

Thanks,
Keith.

On Jan 9, 2008 4:09 PM, Mauro Molinari [EMAIL PROTECTED] wrote:

 keith chapman ha scritto:
  If you generate code for a HTTPBinding (not a SOAPBinding) and it the
  httpBinding specifies that the HTTP method for that operation is GET
  then it will genarate code to do it.  Axis2 also supports PUT and
  DELETE.  PLease note that the HTTPBinding description of WSDL 1.1 is not
  that rich. I would recommend you to use WSDL 2.0.
 
  Thanks,
  Keith.

 Hi Keith,
 thank you for your answer!
 This is interesting for HTTP Binding... but what about the case of a web
 service that only exposes a SOAP Binding?

 Thinking about it, I may wonder if it makes sense to think about a SOAP
 request sent using HTTP GET method... the problem is that we currently
 have some problems invoking a web service, because we receive the
 following response:

 9-Gen-2008 9.20.38 org.apache.axis2.transport.http.HTTPSender sendViaPost
 INFORMAZIONI: Unable to sendViaPost to url[...cut...]
 org.apache.axis2.AxisFault: Transport error: 405 Error: Method Not Allowed

 Cheers.

 --
 Mauro Molinari
 Software Developer
 [EMAIL PROTECTED]

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




-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Inheritance in axis2 possible? - WSDL2Java

2008-01-09 Thread Corsin Capol
 Did you generate the Service using the wsdl2java tool. i.e. you start with
 the wsdl file. or you generate the service with the classes i.e using POJOs.

I genereated the service client with the wsdl2java tool.

This are my tcpmon data...

POST /axis2/services/cobexSMService HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action=urn:getEmployee
User-Agent: Axis2
Host: 127.0.0.1:
Transfer-Encoding: chunked

93
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
  soapenv:Body /
   /soapenv:Envelope0

--

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml;
action=urn:getEmployeeResponse;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 09 Jan 2008 12:04:11 GMT

270
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
  soapenv:Body
 ns:getEmployeeResponse xmlns:ns=http://axis2.cobex.ch;
xmlns:ax21=http://servicemanagement.cobex.ch/xsd;
xmlns:ax22=http://base.cobex.ch/xsd;
ns:return type=ch.cobex.base.Employee
   ax22:departmentIT - Software Engineering/ax22:department
   ax22:jobSoftware Architect/ax22:job
   ax22:firstnameHans/ax22:firstname
   ax22:lastnameExample/ax22:lastname
   ax22:mail[EMAIL PROTECTED]/ax22:mail
   ax22:personId1/ax22:personId
/ns:return
 /ns:getEmployeeResponse
  /soapenv:Body
   /soapenv:Envelope
0


Any idea?

thanks,
Corsin

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



Re: Inheritance in axis2 possible? - WSDL2Java

2008-01-09 Thread Corsin Capol
Error Message:

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement firstname
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)



2008/1/9, Amila Suriarachchi [EMAIL PROTECTED]:
 Did you generate the Service using the wsdl2java tool. i.e. you start with
 the
 wsdl file. or you generate the service with the classes i.e using POJOs.

 For former case it should work.

 thanks,
 Amila.


 On Jan 9, 2008 3:03 PM, Corsin Capol [EMAIL PROTECTED] wrote:
 
  Is the following possible with axis2?
 
  ClassA
  ClassB extends ClassA
 
  The service returns an object of ClassB...wsdl2java.
 
  I have tried something like this, but I just received an AxisFault. Ideas?
 
  org.apache.axis2.AxisFault:
 org.apache.axis2.databinding.ADBException:
  Unexpected subelement
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Amila Suriarachchi,
 WSO2 Inc.

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



Re: What to do after creating Stup using Axis1.4

2008-01-09 Thread Anne Thomas Manes
The documentation is pretty helpful:

http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL

You can also find plenty of tutorials and tips on the web, such as:

http://ironbark.bendigo.latrobe.edu.au/subjects/WS/lectures/l23.d/lect23.html
http://www.lucianofiandesio.com/javatales/axant.html
http://www.nsftools.com/stubby/ApacheAxisClientTips.htm

Anne

On Jan 8, 2008 11:30 PM, msg2ajay [EMAIL PROTECTED] wrote:

 hello friends,
 I am new to WebService's I have created Stub. I got 5 class files

 Service
 ServiceLocator
 ServiceSoap
 ServiceSoap12Stub
 ServiceSoapStub

 I have a url(WebService running), which i need to conect with client. So Can
 any bady give me a little guidence what need next to do.

 thanQ for any kind of help.
 Han.
 --
 View this message in context: 
 http://www.nabble.com/What-to-do-after-creating-Stup-using-Axis1.4-tp14705092p14705092.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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



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



Unable to hit AXIS2 service

2008-01-09 Thread Kandalam, Anjana
Hi,

 

I have implemented my service in Axis 2.0 soap 1.2 . I am unable to hit this
service from any SOAP 1.1 client. How do I service in order to make it
available to any client??

 

Anjana Kandalam 
Private Client Group - AIG 
Work: 908-679-2608 
Cell: 908-596-0424 

 



Re: Unable to hit AXIS2 service

2008-01-09 Thread keith chapman
Hi Anjana,

The statement  have implemented my service in Axis 2.0 soap 1.2 sounds
weird. Axis2 exposes any web service over SOAP 1.1, SOAP 1.2 and REST. Just
implementing the service would do this for you. So any web services client
(Let it be over SOAP 1.1 or SOAP 1.2 ) should be able access your service.

Thanks,
Keith.

On Jan 9, 2008 8:08 PM, Kandalam, Anjana [EMAIL PROTECTED] wrote:

  Hi,



 I have implemented my service in Axis 2.0 soap 1.2 . I am unable to hit
 this service from any SOAP 1.1 client. How do I service in order to make
 it available to any client??



 Anjana Kandalam
 Private Client Group - AIG
 Work: 908-679-2608
 Cell: 908-596-0424






-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: Unable to hit AXIS2 service

2008-01-09 Thread Kandalam, Anjana
Kevin, Thanks for your response. My client is Axis 1.4. When I try to hit
the Axis2 service, I get the following exception

 

The endpoint reference (EPR) for the Operation not found is
http://localhost:9082/axis2/services/AcordWinsRateService and the WSA Action
=

 

Where my EPR is http://localhost:9082/axis2/services/AcordWinsRateService
http://localhost:9082/axis2/services/AcordWinsRateService .

When I use the Axis2.0 client and hit the 2.0 service I am able to hit it
and get the response. Why is this?

 

 

Anjana Kandalam 
Private Client Group - AIG 
Work: 908-679-2608 
Cell: 908-596-0424 

  _  

From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 09, 2008 10:01 AM
To: axis-user@ws.apache.org
Subject: Re: Unable to hit AXIS2 service

 

Hi Anjana,

The statement  have implemented my service in Axis 2.0 soap 1.2 sounds
weird. Axis2 exposes any web service over SOAP 1.1, SOAP 1.2 and REST. Just
implementing the service would do this for you. So any web services client
(Let it be over SOAP 1.1 or SOAP 1.2 ) should be able access your service.

Thanks,
Keith.

On Jan 9, 2008 8:08 PM, Kandalam, Anjana [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,

 

I have implemented my service in Axis 2.0 soap 1.2 . I am unable to hit this
service from any SOAP 1.1 client. How do I service in order to make it
available to any client??

 

Anjana Kandalam 
Private Client Group - AIG 
Work: 908-679-2608 
Cell: 908-596-0424 

 




-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/ http://wso2.org/ 

blog: http://www.keith-chapman.org http://www.keith-chapman.org  



[Axis2] WSDL with DTD and Entity Definitions

2008-01-09 Thread Peter Hargreaves
Within my wsdl I can do the following and wsdl2java will handle it OK:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE wsdl [
  !ENTITY servicename myservice
]
definitions...
   ...
   service name=servicename;
   ...
/definitions

However, if I try to do this:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE entities SYSTEM entities.dtd
definitions...
   ...
   service name=servicename;
   ...
/definitions

Where entities.dtd contains only:

!ENTITY servicename myservice

It doesn't work! The generated wsdl has a zero length string substituted for 
servicename;

Does anybody know why? Are external DTD and entities etc. supported? Or have I 
just done it wrong?

Pete.H.

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



Re: Unable to hit AXIS2 service

2008-01-09 Thread keith chapman
The reason is that the server does not have enough information to dispatch
the request to the correct operation. Please check the WSDL for the service.
The WSDL would state the default soap action it is looking for. If your
client is using SOAP 1.1 (in SOAP 1.1 the soapAction is mandatory) it can
set the legitimate soap action for that service to enable the server to
dispatch it to the correct operation. the default dispatching works as
follows, The service is dispatched using the request URI.

1. Try to dispatch to the operation using the request URI (possible if the
uri is serviceName/operationName)
2. Use Addressing details
3. Dispatch using soapaction
4. Dispatch using the soap body

So you need to provide at least one of the following for the request to get
dispatched to the operation.

Thanks,
Keith.

On Jan 9, 2008 9:49 PM, Kandalam, Anjana [EMAIL PROTECTED] wrote:

  Kevin,



 I am not using WS-addressing in my services.xml,  ( is there is no
 actionMapping element) still the error message says WSA action =  When I
 changed my client to add the operation name then it worksDo you know
 why?



 Thanks a lot.



 Anjana Kandalam
 Private Client Group - AIG
 Work: 908-679-2608
 Cell: 908-596-0424
   --

 *From:* keith chapman [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, January 09, 2008 10:01 AM
 *To:* axis-user@ws.apache.org
 *Subject:* Re: Unable to hit AXIS2 service



 Hi Anjana,

 The statement  have implemented my service in Axis 2.0 soap 1.2 sounds
 weird. Axis2 exposes any web service over SOAP 1.1, SOAP 1.2 and REST.
 Just implementing the service would do this for you. So any web services
 client (Let it be over SOAP 1.1 or SOAP 1.2 ) should be able access your
 service.

 Thanks,
 Keith.

 On Jan 9, 2008 8:08 PM, Kandalam, Anjana [EMAIL PROTECTED] wrote:

 Hi,



 I have implemented my service in Axis 2.0 soap 1.2 . I am unable to hit
 this service from any SOAP 1.1 client. How do I service in order to make
 it available to any client??



 Anjana Kandalam
 Private Client Group - AIG
 Work: 908-679-2608
 Cell: 908-596-0424






 --
 Keith Chapman
 Software Engineer
 WSO2 Inc.
 Oxygenating the Web Service Platform.
 http://wso2.org/

 blog: http://www.keith-chapman.org




-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Example code for WS-SecureConversation implementation using Rampart in Axis2

2008-01-09 Thread Bhushan Gupte
Hi,

 

I am looking for documentation and examples related to
WS-SecureConversation
http://specs.xmlsoap.org/ws/2005/02/sc/WS-SecureConversation.pdf
usage in our project.

I am using axis2 with rampart module(for Ws-Security and
WS-SecureConversation).

I was able to implement WS-Security using Rampart module but am not
finding examples to use WS-SecureConversation. 

Can you please direct me or provide me the information with some
examples.

 

 

I have already looked at these documents but still not getting good
examples to use Rampart and Rahas(for WS-Trust) :

http://specs.xmlsoap.org/ws/2005/02/sc/WS-SecureConversation.pdf
http://wso2.org/search/node/WS-SecureConversation
http://schemas.xmlsoap.org/ws/2005/02/sc/
http://msdn2.microsoft.com/en-us/library/ms996521.aspx

Thanks

 



Re: [axis2] empty xmlns

2008-01-09 Thread Anne Thomas Manes
According to your schema, the compteAncre element must be unqualified,
therefore the generated response is correct. If you want the
compteAncre element to be qualified, then add this attribute to the
http://findby.wsdocument.dao.acces.ancre.acoss.fr/1.0 schema:

   elementFormDefault=qualified

Anne

On Jan 7, 2008 3:45 AM, Henry Duc de Cagade de Branlou
[EMAIL PROTECTED] wrote:


  Hi,


 I have created an axis2 web service (release 1.2). I used the top bottom
 approach with xmlbeans (used the axis2 generator tool).
 The problem I have is that I have an empty xmlns tag (related to compteAncre
 tag) in my soap web service response :
 ?xml version=1.0 encoding=UTF-8?
 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
   findByResponse
 xmlns=http://findby.wsdocument.dao.acces.ancre.acoss.fr/1.0;
compteAncre xmlns=
 CodeOrganisme
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;390/CodeOrganisme
 CodeExoneration xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;
 xsi:nil=true/
 OrigineExoneration
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;
 xsi:nil=true/
 NumeroInterneCompte
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;60767/NumeroInterneCompte
 NumeroExterneCompte
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;3940109656/NumeroExterneCompte
 Categorie
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;1/Categorie
 SousCategorie xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;
 xsi:nil=true/
 EtatCpte
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;3/EtatCpte
 NoPersonne
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;9514/NoPersonne
 DateEtatCpte
 xmlns=http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0;2000-01-15+01:00/DateEtatCpte


 I don't understand why. Attached are  my wsdl, xsd files and soap response.
 I also tried release 1.3 of axis2 but it didn't help.
 Help will be greatly appreciated.

 Thank you in advance.

  
  Express yourself instantly with MSN Messenger! MSN Messenger

 
 Express yourself instantly with MSN Messenger! MSN Messenger

 -
 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 logging question

2008-01-09 Thread Trasca Virgil
Hi all,

 I have a service exposed in an war which has aar inside. This service is 
failing when it is called even if calling just the business from POJO in 
eclipse is working.So I feel it is a deployment issue/class path etc. How can I 
enable/see all the logging on the Apache Axis2 java server? My war with aar 
inside is deployed on Jetty.

Thank you,
Virgil

- Original Message 
From: kokie [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, January 8, 2008 4:57:22 AM
Subject: [Axis2]About WS-Policy support

  Dear,
 Axis2's great project! I'm using it developing web service with policy support.
 You metioned in the document http://ws.apache.org/axis2/1_3/WS_policy.html 
that axis2   fully supports WS Policy at client-side,
 so could axis give an example like codegen a stub against a WSLD which 
contains policies or else?
 Thanks in advance.
Best wishes. 

-- 
绯村剑心  




[Axis2] Maven2 and Module Name / Version

2008-01-09 Thread Edward Bush
All,
 
When building with Maven2, I get an artifact such as my-mar-1.0.mar or
my-mar-1.0-SNAPSHOT.mar.  Within the module.xml, I have named my module
myModule.  When it loads, it loads as myModule-SNAPSHOT.  I'm wondering
how I can possibly make this work, since I must cite myModule-SNAPSHOT
as the ref name in my axis2.xml file.
 
The dilema, to me, thinking about performing a release on the service,
is that the version is going to change ( definitely will drop the
SNAPSHOT, for example ), and I'm trying to figure how the heck to handle
this.  The name ( myMoudle-SNAPSHOT ) that Axis loads this under seems
like a bad default.  Is there some way to work around this, an existing
bug report, or ... ?
 
Thanks!
 
Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

CONFIDENTIALITY NOTICE:
The information in this message, and any attachment, is intended for the 
sole use of the individual and entity to whom it is addressed. This 
information may be privileged, confidential, and protected from 
disclosure. If you are not the intended recipient you are hereby notified 
that you have received this communication in error and that any review, 
disclosure, dissemination, distribution or copying of it, or its contents, 
is strictly prohibited. If you think that you have received this message 
in error please notify the sender and destroy all copies of this 
communication and any attachments. Thank you.


WSDL XSD Schema Importing...

2008-01-09 Thread silver17

Hi Guys,

I've searched a lot of these forum posts and haven't been able to find a
resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
Europa with the Apache Codegen wizard plugins.

I created a WSDL that imports a couple of schemas and I'm having problems. 
When I attempt to use the wizards to generate the client stubs using a URL
like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
following error:

An error occured while completing process - java.lang.InterruptedException:
WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): 
faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
http://localhost:8080/app/services'.:  java.io.FileNotFoundException:  This
file was not found: 
http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

And I don't know why it's doing that.  Here's a sample of that wsdl:

wsdl:definitions name=RegistryPublish
targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; 
schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
...

My web app directory structure is:

app-web-inf-services-RegistryPublish-META-INF
...
csw-Publication.xsd
owsExceptionReport.xsd
RegistryPublish.wsdl
services.xml

I tried using a program called SOAPUI to run a test request to that same url
as above and it returned a successful result.

Any thoughts?  I've attached the files.
http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
RegistryPublish.wsdl 
http://www.nabble.com/file/p14722764/services.xml services.xml 
http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
owsExceptionReport.xsd 
http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd 



-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Error while invoking the axis service through PHP NUSoap

2008-01-09 Thread prasad c iyer
I have a echo service created in Axis2. I am getting a axis-fault when I am 
trying to invoke it through PHP NUSoap.

The Stacktrace is
org.apache.axis2.AxisFault: Please implement 
org.presci.echo.service.EchoServiceSkeleton#echo_operation

at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at 
org.presci.echo.service.EchoServiceMessageReceiverInOut.invokeBusinessLogic(EchoServiceMessageReceiverInOut.java:62)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)

at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.UnsupportedOperationException: Please implement 
org.presci.echo.service.EchoServiceSkeleton#echo_operation
at 
org.presci.echo.service.EchoServiceSkeleton.echo_operation(EchoServiceSkeleton.java:21)
at 
org.presci.echo.service.EchoServiceMessageReceiverInOut.invokeBusinessLogic(EchoServiceMessageReceiverInOut.java:51)

... 19 more

The service is getting invoked properly through the skeleton. Can somebody 
point me in right direction?

thanks



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



Re: Error while invoking the axis service through PHP NUSoap

2008-01-09 Thread prasad c iyer

Following are my wsdl file, php file and soap request
wsdl file
?xml version=1.0 encoding=UTF-8?
definitions xmlns:tns=http://localhost:8080/my-app/services/EchoService; 
xmlns=http://schemas.xmlsoap.org/wsdl/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:ns1=http://localhost:8080/my-app/services/EchoService/types; 
name=EchoService 
targetNamespace=http://localhost:8080/my-app/services/EchoService;

types
xsd:schema 
targetNamespace=http://localhost:8080/my-app/services/EchoService/types;

xsd:element name=request_element type=xsd:string/
xsd:element name=response_element type=xsd:string/
/xsd:schema
xsd:schema 
targetNamespace=http://localhost:8080/my-app/services/EchoService/types:0;

xsd:element name=request_element type=xsd:string/
xsd:element name=response_element type=xsd:string/
/xsd:schema
/types
message name=echo_request
part name=parameters element=ns1:request_element/
/message
message name=echo_response
part name=result element=ns1:response_element/
/message
portType name=echo_portType
operation name=echo_operation
input name=echo_request message=tns:echo_request/
output name=echo_response message=tns:echo_response/
/operation
/portType
binding name=echo_binding type=tns:echo_portType
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/

operation name=echo_operation
soap:operation soapAction=echo_operation/
input name=echo_request
soap:body use=literal/
/input
output name=echo_response
soap:body use=literal/
/output
/operation
/binding
service name=EchoService
port name=EchoPort binding=tns:echo_binding
soap:address location=http://localhost:8080/my-app/services/EchoService/
/port
/service
/definitions

--
php code:

?php
/**
* echo php
*
*
*/

require_once('nusoap.php');

$client=new 
nusoap_client('http://localhost:8080/my-app/services/EchoService?wsdl', 
'wsdl');

$err=$client-getError();
if($err){
   echo 'constructor error : '. $err ;
   die;
}
$proxy=$client-getProxy();
$err=$client-getError();
if($err){
   echo 'got error : '.$err;
}
$client-loadWSDL();
$err=$client-getError();
if($err){
   echo 'got error : '.$err;
}
echo 'WSDLnamespace'.$client-wsdl-namespaces;
foreach($client-wsdl-namespaces as $key=$value){
   echo $key. ' ' . $value . 'br/';
}
$param['parameters']=array('hello world');
$client-call('echo_operation', $param);
echo 'h2Request/h2pre' . htmlspecialchars($client-request, 
ENT_QUOTES) . '/pre';
echo 'h2Response/h2pre' . htmlspecialchars($client-response, 
ENT_QUOTES) . '/pre';
echo 'h2Debug/h2pre' . htmlspecialchars($client-debug_str, 
ENT_QUOTES) . '/pre';

?



--
request message
?xml version=1.0 encoding=ISO-8859-1?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns4861=http://tempuri.org;
SOAP-ENV:Body
m:request_element 
xmlns:m=http://localhost:8080/my-app/services/EchoService/types;hello 
world/m:request_element

/SOAP-ENV:Body
/SOAP-ENV:Envelope




- Original Message - 
From: Martin Gainty

To: axis-user@ws.apache.org
Sent: Wednesday, January 09, 2008 3:30 PM
Subject: RE: Error while invoking the axis service through PHP NUSoap


Please display php client code and service wsdl

Martin

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.



Wrom: 
HMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPT


Re: Error while invoking the axis service through PHP NUSoap

2008-01-09 Thread prasad c iyer
Got it I messed up the Ant file so the generated code was always overwriting 
the implemented class.

Thanks for the help

- Original Message - 
From: prasad c iyer [EMAIL PROTECTED]

To: axis-user@ws.apache.org
Sent: Wednesday, January 09, 2008 3:44 PM
Subject: Re: Error while invoking the axis service through PHP NUSoap



Following are my wsdl file, php file and soap request
wsdl file
?xml version=1.0 encoding=UTF-8?
definitions xmlns:tns=http://localhost:8080/my-app/services/EchoService; 
xmlns=http://schemas.xmlsoap.org/wsdl/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:ns1=http://localhost:8080/my-app/services/EchoService/types; 
name=EchoService 
targetNamespace=http://localhost:8080/my-app/services/EchoService;

types
xsd:schema 
targetNamespace=http://localhost:8080/my-app/services/EchoService/types;

xsd:element name=request_element type=xsd:string/
xsd:element name=response_element type=xsd:string/
/xsd:schema
xsd:schema 
targetNamespace=http://localhost:8080/my-app/services/EchoService/types:0;

xsd:element name=request_element type=xsd:string/
xsd:element name=response_element type=xsd:string/
/xsd:schema
/types
message name=echo_request
part name=parameters element=ns1:request_element/
/message
message name=echo_response
part name=result element=ns1:response_element/
/message
portType name=echo_portType
operation name=echo_operation
input name=echo_request message=tns:echo_request/
output name=echo_response message=tns:echo_response/
/operation
/portType
binding name=echo_binding type=tns:echo_portType
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/

operation name=echo_operation
soap:operation soapAction=echo_operation/
input name=echo_request
soap:body use=literal/
/input
output name=echo_response
soap:body use=literal/
/output
/operation
/binding
service name=EchoService
port name=EchoPort binding=tns:echo_binding
soap:address 
location=http://localhost:8080/my-app/services/EchoService/

/port
/service
/definitions

--
php code:

?php
/**
* echo php
*
*
*/

require_once('nusoap.php');

$client=new 
nusoap_client('http://localhost:8080/my-app/services/EchoService?wsdl', 
'wsdl');

$err=$client-getError();
if($err){
   echo 'constructor error : '. $err ;
   die;
}
$proxy=$client-getProxy();
$err=$client-getError();
if($err){
   echo 'got error : '.$err;
}
$client-loadWSDL();
$err=$client-getError();
if($err){
   echo 'got error : '.$err;
}
echo 'WSDLnamespace'.$client-wsdl-namespaces;
foreach($client-wsdl-namespaces as $key=$value){
   echo $key. ' ' . $value . 'br/';
}
$param['parameters']=array('hello world');
$client-call('echo_operation', $param);
echo 'h2Request/h2pre' . htmlspecialchars($client-request, 
ENT_QUOTES) . '/pre';
echo 'h2Response/h2pre' . htmlspecialchars($client-response, 
ENT_QUOTES) . '/pre';
echo 'h2Debug/h2pre' . htmlspecialchars($client-debug_str, 
ENT_QUOTES) . '/pre';

?



--
request message
?xml version=1.0 encoding=ISO-8859-1?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns4861=http://tempuri.org;
SOAP-ENV:Body
m:request_element 
xmlns:m=http://localhost:8080/my-app/services/EchoService/types;hello 
world/m:request_element

/SOAP-ENV:Body
/SOAP-ENV:Envelope




- Original Message - 
From: Martin Gainty

To: axis-user@ws.apache.org
Sent: Wednesday, January 09, 2008 3:30 PM
Subject: RE: Error while invoking the axis service through PHP NUSoap


Please display php client code and service wsdl

Martin

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within 
this transmission.



Wrom: 

Re: WSDL XSD Schema Importing...

2008-01-09 Thread Amila Suriarachchi
can you please try with a nightly build? If you still getting the problem
please send your wsdl.

thanks,
Amila.

On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote:


 Hi Guys,

 I've searched a lot of these forum posts and haven't been able to find a
 resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
 Europa with the Apache Codegen wizard plugins.

 I created a WSDL that imports a couple of schemas and I'm having problems.
 When I attempt to use the wizards to generate the client stubs using a URL
 like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
 following error:

 An error occured while completing process - java.lang.InterruptedException
 :
 WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
 faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
 referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
 http://localhost:8080/app/services'http://localhost:8080/app/services%27.:
  java.io.FileNotFoundException:  This
 file was not found:
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

 And I don't know why it's doing that.  Here's a sample of that wsdl:

 wsdl:definitions name=RegistryPublish
 targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2;
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
 ...

 My web app directory structure is:

 app-web-inf-services-RegistryPublish-META-INF
 ...
 csw-Publication.xsd
 owsExceptionReport.xsd
 RegistryPublish.wsdl
 services.xml

 I tried using a program called SOAPUI to run a test request to that same
 url
 as above and it returned a successful result.

 Any thoughts?  I've attached the files.
 http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
 RegistryPublish.wsdl
 http://www.nabble.com/file/p14722764/services.xml services.xml
 http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
 owsExceptionReport.xsd
 http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd



 --
 View this message in context:
 http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Inheritance in axis2 possible? - WSDL2Java

2008-01-09 Thread Amila Suriarachchi
On Jan 9, 2008 5:37 PM, Corsin Capol [EMAIL PROTECTED] wrote:

  Did you generate the Service using the wsdl2java tool. i.e. you start
 with
  the wsdl file. or you generate the service with the classes i.e using
 POJOs.

 I genereated the service client with the wsdl2java tool.

 This are my tcpmon data...

 POST /axis2/services/cobexSMService HTTP/1.1
 Content-Type: application/soap+xml; charset=UTF-8;
 action=urn:getEmployee
 User-Agent: Axis2
 Host: 127.0.0.1:
 Transfer-Encoding: chunked

 93
 ?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope
 
  soapenv:Body /
   /soapenv:Envelope0

 --

 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Content-Type: application/soap+xml;
 action=urn:getEmployeeResponse;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Wed, 09 Jan 2008 12:04:11 GMT

 270
 ?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope
 
  soapenv:Body
 ns:getEmployeeResponse xmlns:ns=http://axis2.cobex.ch;
 xmlns:ax21=http://servicemanagement.cobex.ch/xsd;
 xmlns:ax22=http://base.cobex.ch/xsd;
ns:return type=ch.cobex.base.Employee


check the response with the wsdl. because what wsdl2java do is to check the
response
is valid according to the wsdl schema. that attribute must be xsi:type.

thanks,
Amila.


   ax22:departmentIT - Software Engineering/ax22:department
   ax22:jobSoftware Architect/ax22:job
   ax22:firstnameHans/ax22:firstname
   ax22:lastnameExample/ax22:lastname
   ax22:mail[EMAIL PROTECTED]/ax22:mail
   ax22:personId1/ax22:personId
/ns:return
 /ns:getEmployeeResponse
  /soapenv:Body
   /soapenv:Envelope
 0


 Any idea?

 thanks,
 Corsin

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




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: WSDL XSD Schema Importing...

2008-01-09 Thread silver17

At the moment all I can find for the nightly builds is the Axis2/C version. 
Also I included the RegistryPublish.wsdl file in the previous message.  

What I think it's doing is replacing when I want to use
http://url/path/service?wsdl instead of service.wsdl.  But when I try to
link directly to http://url/path/service.wsdl it gives me a similar error as
well.


xsd:import namespace=http://www.opengis.net/ows/1.1;
schemaLocation=owsExceptionReport.xsd/

with:

xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/


Amila Suriarachchi wrote:
 
 can you please try with a nightly build? If you still getting the problem
 please send your wsdl.
 
 thanks,
 Amila.
 
 On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote:
 

 Hi Guys,

 I've searched a lot of these forum posts and haven't been able to find a
 resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
 Europa with the Apache Codegen wizard plugins.

 I created a WSDL that imports a couple of schemas and I'm having
 problems.
 When I attempt to use the wizards to generate the client stubs using a
 URL
 like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
 following error:

 An error occured while completing process -
 java.lang.InterruptedException
 :
 WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
 faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
 referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
 http://localhost:8080/app/services'http://localhost:8080/app/services%27.:
  java.io.FileNotFoundException:  This
 file was not found:
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

 And I don't know why it's doing that.  Here's a sample of that wsdl:

 wsdl:definitions name=RegistryPublish
 targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2;
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
 ...

 My web app directory structure is:

 app-web-inf-services-RegistryPublish-META-INF
 ...
 csw-Publication.xsd
 owsExceptionReport.xsd
 RegistryPublish.wsdl
 services.xml

 I tried using a program called SOAPUI to run a test request to that same
 url
 as above and it returned a successful result.

 Any thoughts?  I've attached the files.
 http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
 RegistryPublish.wsdl
 http://www.nabble.com/file/p14722764/services.xml services.xml
 http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
 owsExceptionReport.xsd
 http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd



 --
 View this message in context:
 http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14727914.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



WSA Action = null for endpoint...

2008-01-09 Thread silver17

Hi guys,

I'm relatively newb to the world of web services and i've come accross
something else.  I built a web service and put it in it's own war file, and
it works, sort of.  When I use my java client to hit the endpoint (eg:
http://server/path/services/publish) it works great, but when i load my
browser with that same URL I get an error indicating there is no Endpoint
because WSA Action is null, can someone explain this to me? 

Here is my wsdl.

?xml version=1.0 encoding=UTF-8?
wsdl:definitions name=RegistryPublish
targetNamespace=http://services.registry.agr.gc.ca/publish/;
xmlns:tns=http://services.registry.agr.gc.ca/publish/;
xmlns:axis2=http://services.registry.agr.gc.ca/publish/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:ows=http://www.opengis.net/ows/1.1;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:csw=http://www.opengis.net/cat/csw/2.0.2;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
/wsdl:documentation
  wsdl:types
xsd:schema
xsd:import 
namespace=http://www.opengis.net/cat/csw/2.0.2;
schemaLocation=csw-Publication.xsd/
xsd:import namespace=http://www.opengis.net/ows/1.1;
schemaLocation=owsExceptionReport.xsd/
/xsd:schema
  /wsdl:types
  wsdl:message name=msgTransactionFailedFault
wsdl:part name=fault element=ows:ExceptionReport
/wsdl:part
  /wsdl:message
  wsdl:message name=msgTransaction
wsdl:part name=part1 element=csw:Transaction
/wsdl:part
  /wsdl:message
  wsdl:message name=msgTransactionResponse
wsdl:part name=part1 element=csw:TransactionResponse
/wsdl:part
  /wsdl:message
  wsdl:message name=msgInvalidRequestFault
wsdl:part name=fault element=ows:ExceptionReport
/wsdl:part
  /wsdl:message
  wsdl:portType name=RegistryPublish_portType
wsdl:operation name=Transaction
  wsdl:input message=tns:msgTransaction
/wsdl:input
  wsdl:output message=tns:msgTransactionResponse
/wsdl:output
  wsdl:fault name=InvalidRequestFault
message=tns:msgInvalidRequestFault
/wsdl:fault
  wsdl:fault name=TransactionFailedFault
message=tns:msgTransactionFailedFault
/wsdl:fault
/wsdl:operation
  /wsdl:portType
  wsdl:binding name=RegistryPublishSOAP11_binding
type=tns:RegistryPublish_portType
soap:binding style=document
transport=http://schemas.xmlsoap.org/soap/http/
wsdl:operation name=Transaction
  soap:operation soapAction=urn:Transaction style=document/
  wsdl:input
soap:body use=literal/
  /wsdl:input
  wsdl:output
soap:body use=literal/
  /wsdl:output
  wsdl:fault name=InvalidRequestFault
soap:fault name=InvalidRequestFault use=literal/
  /wsdl:fault
  wsdl:fault name=TransactionFailedFault
soap:fault name=TransactionFailedFault use=literal/
  /wsdl:fault
/wsdl:operation
  /wsdl:binding
  wsdl:service name=RegistryPublish
wsdl:port name=RegistryPublishSOAP11port_http
binding=tns:RegistryPublishSOAP11_binding
  soap:address
location=http://localhost:8080/RegistryPublishServiceHibernate/services/RegistryPublish/
/wsdl:port
  /wsdl:service
/wsdl:definitions

-- 
View this message in context: 
http://www.nabble.com/WSA-Action-%3D-null-for-endpoint...-tp14727915p14727915.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: WSDL XSD Schema Importing...

2008-01-09 Thread Mauro Molinari

silver17 ha scritto:

http://localhost:8080/app/services'.:  java.io.FileNotFoundException:  This
file was not found: 
http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd


  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; 
schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/


http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd 


Is the first a copy 'n' paste problem or does Axis2 really says it can't 
find http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd? 
Because your file name seems to start with csw-, not cs-...


Anyway, I can make Axis2 1.3 work with schema imports, except when 
trying to do some more complex things like sharing a schema between 
multiple services (please see 
https://issues.apache.org/jira/browse/AXIS2-3354).


Does Eclipse give you any validation error on your WSDL and/or XSDs? 
(try right-click = Validate)?


--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

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



Re: Inheritance in axis2 possible? - WSDL2Java

2008-01-09 Thread Corsin Capol
 check the response with the wsdl. because what wsdl2java do is to check the
 response
  is valid according to the wsdl schema. that attribute must be xsi:type.

I can't find the error. In the CobexSMServiceStub? - The firstname
Element should be parsed.

WSDL File - www.snakedj.ch/axis2.zip

--
if (reader.isStartElement()  new javax.xml.namespace.QName(
   http://base.cobex.ch/xsd;, firstname).equals(
   reader.getName())) {
   nillableValue =
reader.getAttributeValue(http://www.w3.org/2001/XMLSchema-instance;,
   nil);
--

thanks,
Corsin

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