RE: How to access an enterprise application from Axis2 in App server?

2008-06-06 Thread Enaganti M Naidu
Here is what I would do
a) Deploy a plain axis2.war to the JBoss and see if you can access the 
'version' service first.
b) Once it is successful, I would write a simple service .aar file (must 
include services.xml) and access that service
c) Once you are successful with the above, I would see no reason why you can 
not expose you app thru the web service
 
However, your EJB portions of the app must run in JBoss ejb container and your 
servlets run in the tomcat and your service will run within axis2 web app in 
tomcat. Your pojos and depending libraries can either be part of your .aar file 
or copy them to the lib folder.
 
I am also assuming that you are trying to expose one or more of specific 
business functions thru web services.
 
Madhav



> Date: Thu, 5 Jun 2008 04:28:37 -0700> From: [EMAIL PROTECTED]> Subject: How 
> to access an enterprise application from Axis2 in App server?> To: 
> axis-user@ws.apache.org> > Hi,> > We have an enterprise 
> application(Adempiere) running> in app server and it has servlets, EJBs, and 
> POJOs.> Now we want to expose this application as a web> service and decided 
> to go with Axis2. We have tried> with the following steps shown below to 
> create a web> service with Axis2, but we are facing issues:> > 1. We read 
> Axis2 documentation> 2. Wrote a simple Web Service class that calls> 
> Adempiere's POJO method> Adempiere.startup()> 3. Imported all the war and jar 
> files present in> jboss/server/adempiere/deploy/adempiere.ear (So that> we 
> can compile web service file in the IDE)> 4. Compiled and built the .aar 
> file, updated the> axis2.war> 5. Copied the axis2.war to> 
> jboss/server/adempiere/deploy> 6. Tried accessing> 
> :/adempiere/axis2 and> :/axis2, but all we 
> found was error> pages complaining that window.html does not exist> 7. We 
> repeated the above steps after deploying> axis2.war to> 
> jboss/server/adempiere/deploy/adempiere.ear. Still no> luck!!> > Is there 
> something we have missed? Any and all leads> welcome, we have just run out of 
> options.> > Thanks in advance> Srinivas> > > > > > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
It’s easy to add contacts from Facebook and other social sites through Windows 
Live™ Messenger. Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow

RE: How to dump SOAP message contents?

2008-06-06 Thread Enaganti M Naidu
There are multiple ways to do that. One is to log the payload before calling 
sendReceive. But if you do not have means of making those changes, then you can 
do either of the following
a) Use Apache TCPMON to listen for your messages
   Here is how to do this. Suppose your endpoint is 
http://localhost:8080/axis2/yourServiceURI, then you can set TCPMON to listen 
on 8090 and set the target port to 8080. Then change the endpoint in your 
client to use port 8090. You should start seeing the messages
 
b) If you have access to the service side and SOAPMonitor is enable and 
deployed right, you can access the URL http://localhost:port/axis2/SOAPMonitor 
which should list the SOAP requests and responses.
 
I believe you can also create a handler (even on the client side) that can log 
the message. I am not 100% certain on this however.
 
Hope this helps
Madhav
 


From: [EMAIL PROTECTED]: axis-user@ws.apache.org; [EMAIL PROTECTED]: RE: How to 
dump SOAP message contents?Date: Fri, 6 Jun 2008 16:28:14 -0400






Hi Satish,
 
Not quite what you are asking for, but are you aware of the following?
 
https://tcpmon.dev.java.net/
 
It’s absolutely invaluable for debugging.
 
_Stephen Kilburn, 
GeoPraxis Inc.
 

From: satish madanwad [mailto:[EMAIL PROTECTED] Sent: June 6, 2008 09:18To: 
[EMAIL PROTECTED]: How to dump SOAP message contents?
 




Hi,  I am using WebServices with Apache Axis in my programs. I have generated 
client stubs and can prepare and  send the WebService request properly.  I am 
trying to dump SOAP message (XML format) which is sent to WebServer for 
processing (to examine exact message being sent). I am not able to find any 
APIs for the same.  Can you please suggest, if there is any API to dump SOAP 
messages sent from Apache Axis to WebServer?Thanks in advance,Satish
 



Download prohibited? No problem. CHAT from any browser, without download.
_
Search that pays you back! Introducing Live Search cashback.
http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback

RE: [Axis2:v1.4] WSDL / SOAP Attachment question

2008-06-06 Thread Enaganti M Naidu
There should be no difference between SWA and MTOM. MTOM is backward 
compatiable with SWA, at least in Axis2.
 
The dataType for binary in Axis2 is DataHandler. So you may have to use 
http://www.w3.org/2005/05/xmlmime>
 in the XML schema. I might have shared a sample MTOM eclipse Project recently 
which you can refer to.


Subject: [Axis2:v1.4] WSDL / SOAP Attachment questionDate: Fri, 6 Jun 2008 
14:05:52 -1000From: [EMAIL PROTECTED]: axis-user@ws.apache.org


If I use POJO for my WebService class and I use Java2WSDL for auto-generation 
of the WSDL, what data type should I use to indicate in the WSDL that the 
operation expects a soap with attachment?  Any difference between SwA and MTOM 
for this?
__
Marc Lefebvre, Principle Software Engineer
Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 
Phone: (808)442-7168, Email: [EMAIL PROTECTED]
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc

_
Instantly invite friends from Facebook and other social networks to join you on 
Windows Live™ Messenger.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends

[Axis2:v1.4] WSDL / SOAP Attachment question

2008-06-06 Thread Marc Lefebvre
If I use POJO for my WebService class and I use Java2WSDL for auto-generation 
of the WSDL, what data type should I use to indicate in the WSDL that the 
operation expects a soap with attachment?  Any difference between SwA and MTOM 
for this?
__
Marc Lefebvre, Principle Software Engineer
Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 
Phone: (808)442-7168, Email: [EMAIL PROTECTED]
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Include a jar library in .aar file

2008-06-06 Thread Cristian Bullokles
All,
Could  I include a jar file with a library in the aar file?
I like to create self-contained services without depends on
libraries in the WEB-INF/lib folder.
I'm using axis2 1.4 in tomcat 6.0.14

Regards
Cristian

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



RE: How to dump SOAP message contents?

2008-06-06 Thread Stephen Kilburn
Hi Satish,

 

Not quite what you are asking for, but are you aware of the following?

 

https://tcpmon.dev.java.net/

 

It’s absolutely invaluable for debugging.

 

_
Stephen Kilburn, GeoPraxis Inc.

 

From: satish madanwad [mailto:[EMAIL PROTECTED] 
Sent: June 6, 2008 09:18
To: axis-user@ws.apache.org
Subject: How to dump SOAP message contents?

 


Hi,

  I am using WebServices with Apache Axis in my programs. I have generated 
client stubs and can prepare and  send the WebService request properly.

  I am trying to dump SOAP message (XML format) which is sent to WebServer for 
processing (to examine exact message being sent). I am not able to find any 
APIs for the same.

  Can you please suggest, if there is any API to dump SOAP messages sent from 
Apache Axis to WebServer?

Thanks in advance,
Satish



 

  _  

Download prohibited? No problem. CHAT 

  from any browser, without download.



Re: How to dump SOAP message contents?

2008-06-06 Thread Martin

Satish/Gary
Take a look at InterfaceImplementationTemplate.xsl which WSDL2Java uses to 
generate Service and Stub.java

which could be modified to log the discovered soap_headers

   // create SOAP envelope with that payload
   org.apache.axiom.soap.SOAPEnvelope env = null;

//initialise
  
 
  test="count(input/[EMAIL PROTECTED]'soap_header']) > 0">

  env.build();
   
   select="input/[EMAIL PROTECTED]'soap_header']">
   // add the children only if the 
parameter is not null
   if (select="@name"/>!=null){

   
   test="@mustUnderstand = 'true'">
   org.apache.axiom.om.OMElement 
omElement = toOM(select="@name"/>, optimizeContent(new 
javax.xml.namespace.QName("", 
"")));
   addHeader(omElementselect="@name"/>,env,true);

   
   
   org.apache.axiom.om.OMElement 
omElement = toOM(select="@name"/>, optimizeContent(new 
javax.xml.namespace.QName("", 
"")));
   addHeader(omElementselect="@name"/>,env);

   
   
   }
   

   select="input/[EMAIL PROTECTED]'http_header']">
   // add the children only if the 
parameter is not null
   if (select="@name"/>!=null){
   addHttpHeader(_messageContext,"select="@headername"/>",);

   }
   
   
   
   //Unknown style detected !! No code is 
generated

   

   //adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
   // set the message context with that soap envelope
   _messageContext.setEnvelope(env);

   // add the message contxt to the operation client
   _operationClient.addMessageContext(_messageContext);

   //execute the operation client
   _operationClient.execute(true);

HTH
Martin
- Original Message - 
From: "Gary Weaver" <[EMAIL PROTECTED]>

To: ; <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2008 1:36 PM
Subject: Re: How to dump SOAP message contents?


In addition to using tcp tunnel or tcpmon you can just use logging to log 
the request and response:


log4j.logger.httpclient.wire.content=DEBUG

(within log4j.properties file in classpath (or within common/classes/, 
shared/classes/, or (webapp)/WEB-INF/classes/, etc.)


That won't print the HTTPHeaders though, although the only thing in the 
header that seems of much importance is SOAPAction.


Hope this helps,
Gary

--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University




Juergen Weber wrote:

see http://articles.techrepublic.com.com/5100-10878_11-1049605.html

On Fri, Jun 6, 2008 at 3:18 PM, satish madanwad
<[EMAIL PROTECTED]> wrote:


Hi,

  I am using WebServices with Apache Axis in my programs. I have 
generated

client stubs and can prepare and  send the WebService request properly.

  I am trying to dump SOAP message (XML format) which is sent to 
WebServer
for processing (to examine exact message being sent). I am not able to 
find

any APIs for the same.

  Can you please suggest, if there is any API to dump SOAP messages sent
from Apache Axis to WebServer?

Thanks in advance,
Satish




Download prohibited? No problem. CHAT from any browser, without 
download.




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



ServiceClient ignores QName for operation specific invocation

2008-06-06 Thread jaybytez

I create a ServiceClient to call sendReceive, fireAndForget, sendRobust,
sendRobustNonBlocking and I utilize the method that takes the QName for the
WSDL Operation as well as the XML Message to send.  It does not matter what
I set the QName to, I always am able to send a request and receive a
response back, even if my QName used in the ServiceClient does not match the
targetNamespace defined in my WSDL.

After I create the service client, I call a method that contains this logic:

if(isMockedService()) {
mReply =
client.sendReceive((OMElement)getRequestWrapper().getRequest());
}
else {
mReply = client.sendReceive(new
QName(webMethod.targetNamespace(),
webMethod.operationName()),
(OMElement)getRequestWrapper().getRequest());
}

The interesting thing is that I can do the following:

if(isMockedService()) {
mReply =
client.sendReceive((OMElement)getRequestWrapper().getRequest());
}
else {
mReply = client.sendReceive(new QName("bogusNamespace",
"bogusOperation"),
(OMElement)getRequestWrapper().getRequest());
}

And I can still successfully invoke the operation defined in the WSDL. 
Shouldn't this error out that the operation name did not exist in the WSDL?

Does this depend on whether I create a ServiceClient with a valid
serviceName and portName (because right now I set those values to null).

Thanks -jay
-- 
View this message in context: 
http://www.nabble.com/ServiceClient-ignores-QName-for-operation-specific-invocation-tp17699113p17699113.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]



Generating Axis2 descriptor files

2008-06-06 Thread Shah, Sumit
All,

 

I have a requirement that needs me to programmatically (JAVA) generate
the Axis2 descriptor files (axis2.xml, services.xml and modules.xml). I
tried looking for APIs in the Axis2 source documentation, but I was
unable to find it. 

 

Is anyone aware of APIs within (or outside) Axis2 source that will let
me generate the descriptor files?

 

Thanks

Sumit



RE: How to dump SOAP message contents?

2008-06-06 Thread George Stanchev
log4j.logger.httpclient.wire.content=DEBUG
log4j.logger.httpclient.wire.header=DEBUG # for HTTP headers

Best Regards,
George

-Original Message-
From: Gary Weaver [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2008 11:37 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: How to dump SOAP message contents?

In addition to using tcp tunnel or tcpmon you can just use logging to
log the request and response:

log4j.logger.httpclient.wire.content=DEBUG

(within log4j.properties file in classpath (or within common/classes/,
shared/classes/, or (webapp)/WEB-INF/classes/, etc.)

That won't print the HTTPHeaders though, although the only thing in the
header that seems of much importance is SOAPAction.

Hope this helps,
Gary

--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University




Juergen Weber wrote:
> see http://articles.techrepublic.com.com/5100-10878_11-1049605.html
>
> On Fri, Jun 6, 2008 at 3:18 PM, satish madanwad
> <[EMAIL PROTECTED]> wrote:
>   
>> Hi,
>>
>>   I am using WebServices with Apache Axis in my programs. I have
generated
>> client stubs and can prepare and  send the WebService request
properly.
>>
>>   I am trying to dump SOAP message (XML format) which is sent to
WebServer
>> for processing (to examine exact message being sent). I am not able
to find
>> any APIs for the same.
>>
>>   Can you please suggest, if there is any API to dump SOAP messages
sent
>> from Apache Axis to WebServer?
>>
>> Thanks in advance,
>> Satish
>>
>>
>>
>> 
>> Download prohibited? No problem. CHAT from any browser, without
download.
>> 
>
> -
> 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]


**
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. 
**


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



Re: How to dump SOAP message contents?

2008-06-06 Thread Gary Weaver
In addition to using tcp tunnel or tcpmon you can just use logging to 
log the request and response:


log4j.logger.httpclient.wire.content=DEBUG

(within log4j.properties file in classpath (or within common/classes/, 
shared/classes/, or (webapp)/WEB-INF/classes/, etc.)


That won't print the HTTPHeaders though, although the only thing in the 
header that seems of much importance is SOAPAction.


Hope this helps,
Gary

--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University




Juergen Weber wrote:

see http://articles.techrepublic.com.com/5100-10878_11-1049605.html

On Fri, Jun 6, 2008 at 3:18 PM, satish madanwad
<[EMAIL PROTECTED]> wrote:
  

Hi,

  I am using WebServices with Apache Axis in my programs. I have generated
client stubs and can prepare and  send the WebService request properly.

  I am trying to dump SOAP message (XML format) which is sent to WebServer
for processing (to examine exact message being sent). I am not able to find
any APIs for the same.

  Can you please suggest, if there is any API to dump SOAP messages sent
from Apache Axis to WebServer?

Thanks in advance,
Satish




Download prohibited? No problem. CHAT from any browser, without download.



-
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: How to dump SOAP message contents?

2008-06-06 Thread Juergen Weber
see http://articles.techrepublic.com.com/5100-10878_11-1049605.html

On Fri, Jun 6, 2008 at 3:18 PM, satish madanwad
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>   I am using WebServices with Apache Axis in my programs. I have generated
> client stubs and can prepare and  send the WebService request properly.
>
>   I am trying to dump SOAP message (XML format) which is sent to WebServer
> for processing (to examine exact message being sent). I am not able to find
> any APIs for the same.
>
>   Can you please suggest, if there is any API to dump SOAP messages sent
> from Apache Axis to WebServer?
>
> Thanks in advance,
> Satish
>
>
>
> 
> Download prohibited? No problem. CHAT from any browser, without download.

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



Re: Axis2 Service Archiver issue

2008-06-06 Thread Chris O'Connor
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-464665069-1212766557=:79257"

--0-464665069-1212766557=:79257
Content-Type: text/plain; charset=us-ascii

I am seeing the same problem as Kmany recent post

I ran through the wizard but when I get to trying to load the class I also get 
the "error : Class not found ..."

I
actually even tried getting the plugin up in eclipse to debug where it
thought it was looking but couldn't get it to work. But that's a
seperate issue...

I tried a number of different Class File Locations in step 1. It seems like the 
plugin should be able to find
that out from the project but that's neither here nor there, the
problem is it doesn't seem to work.

I tried each directory in the tree which follows the model below...

Project
 build
  classes
   com
 my_company
   my_project_name
  *.class

I tried a number of variations of  my_service_name and my_class_name fully 
qualified and not.

I tried generating code with the axis2 codegen command line tool and importing 
that into eclipse. That netted slightly better results in that I didn't get the 
"Class not found..." but nor did it actually allow me to continue. It produce 
no results or error when load was clicked. 

I'm using the version of the plugin  from: 
axis2-eclipse-service-archiver-wizard-1.4.zip
and running a clean unzip of eclipse from this .zip 
eclipse-jee-ganymede-RC1-win32.zip

Other system attribs:
Java jdk 1.6.0_05
Windows XP

I'm happy to supply more info I'm just not sure what else would give more 
insight...

-Chris

 "Given
enough time, the proper resources, and access to some really toxic
stuff, one can probably dissolve just about anything except Peep eyes."



  
--0-464665069-1212766557=:79257
Content-Type: text/html; charset=us-ascii

I am seeing the same problem as Kmany recent 
postI ran through the wizard but when I get to trying to load the class 
I also get the "error : Class not found ..."I
actually even tried getting the plugin up in eclipse to debug where it
thought it was looking but couldn't get it to work. But that's a
seperate issue...I tried a number of different Class File
Locations in step 1. It seems like the plugin should be able to find
that out from the project but that's neither here nor there, the
problem is it doesn't seem to work.I tried each directory in the tree 
which follows the model below...Project build  
classes  
 com 
my_company   
my_project_name  
*.classI tried a number of variations of  my_service_name and 
my_class_name fully qualified and not.I tried generating code with the 
axis2 codegen command line tool and importing that into eclipse. That netted 
slightly better results in that I didn't get the "Class not found..." but nor 
did it actually allow me to continue. It produce no results or error when load 
was clicked. I'm using the version of the plugin  from: 
axis2-eclipse-service-archiver-wizard-1.4.zipand running a clean unzip of 
eclipse from this .zip eclipse-jee-ganymede-RC1-win32.zipOther system 
attribs:Java jdk 1.6.0_05Windows XPI'm happy to 
supply more info I'm just not sure what else would give more 
insight...-Chris "Given
enough time, the proper resources, and access to some really toxic
stuff, one can probably dissolve just about anything except Peep 
eyes."

  
--0-464665069-1212766557=:79257--

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



log4j.properties/log4j configuration not recognized when using maven 2.0.7 and axis2 1.3 - solution is to upgrade to maven 2.0.9

2008-06-06 Thread Gary Weaver

This was a little tricky so I thought I'd share...

I am working on a test client for integrating with an external 
webservice using Axis2, and found a strange issue related to log4j 
configuration.


I was originally using:
* maven2 2.0.7
* axis2-wsdl2code-maven-plugin 1.4
* dependencies:
**  
org.apache.axis2axis21.4
**  
org.apache.axis2axis2-xmlbeans1.4


I was able to define log4j.properties for the unit tests in 
/src/test/resources/log4j.properties per the following to output the 
SOAP request and response from Axis2:


---start log4j.properties---
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

log4j.logger.httpclient.wire.content=DEBUG
---end log4j.properties---

Then I learned that I would need to use WS-Security for the client that 
there was only a 1.3 version of Axis2 rampart, which meant that I 
changed to use:


* (still) maven2 2.0.7
* axis2-wsdl2code-maven-plugin 1.3
* dependencies:
**  
org.apache.axis2axis21.3
**  
org.apache.axis2axis2-xmlbeans1.3
**  
org.apache.rampartrampart-core1.3


(btw- I don't know yet whether those are all of the dependencies needed 
for rampart to work- am just starting down that road now)


When I did that though, I noticed when running unit tests in Maven 2 
(using surefire and junit 3.8.1) that while running tests, it was 
ignoring my log4j.properties that I had defined that it was using 
previously.


My first solution to this was to define the path to the log4j.properties 
file as a system property in the surefire plugin. The following worked, 
but I didn't like it:


   
   org.apache.maven.plugins
   maven-surefire-plugin
   
   ...
   
   
   log4j.configuration
   
file:///path/to/project/src/main/resources/log4j.properties

   
   
   
   

Then I thought that it had been a long time since I updated Maven 2, 
even though I didn't think that would have anything to do with it.


Sure enough, after updating to Maven 2.0.9, I could comment out/remove 
the hardcoded path to log4j.properties in the surefire plugin config, 
and it recognized the log4j.properties file regardless of whether I used 
1.3 or 1.4 dependencies.


Hopefully this helps someone else...

Thanks,
Gary


By the way, here is the full thing that I have so far, using Maven 2.0.9 
(using Axis2 1.3 for use with rampart 1.3. If you guys can see any 
dependencies that I'll need to get WS-Security to work client-side, 
please let me know).


pom.xml:
...
   
   
   commons-logging
   commons-logging
   1.1
   provided
   
   
   logkit
   logkit
   
   
   avalon-framework
   avalon-framework
   
   
   javax.servlet
   servlet-api
   
   
   

   
   org.apache.axis2
   axis2
   1.3
   

   
   org.apache.axis2
   axis2-xmlbeans
   1.3
   

   
   org.apache.rampart
   rampart-core
   1.3
   

   
   junit
   junit
   3.8.1
   test
   
   

   
   
   
   maven-compiler-plugin
   
   1.5
   1.5
   
   

   
   org.apache.axis2
   axis2-wsdl2code-maven-plugin
   1.3
   
   
edu.duke.oit.psv9integration.client
   ...relative path to wsdl including wsdl 
filename...

   true
   xmlbeans
   
   
   
   
   wsdl2code
   
   
   
   

   
   
   org.apache.maven.plugins
   maven-antrun-plugin
   
   
   generate-resources
   
   run
   
   
   
   
   
  
dir="${pom.basedir}/target/generated-sources/axis2/wsdl2code/resources/">
   name="schemaorg_apache_xmlbeans/**"/>

   
   
  

[Ann] Open Source Test Workshop, June 12, 2008

2008-06-06 Thread Frank Cohen

FREE OPEN SOURCE TEST WORKSHOP
Cupertino, California, USA

Featuring PushToTest, soapUI, Selenium, TestGen4Web

Software developers, QA testers, and IT managers are challenged to  
rapidly test Web service, Service Oriented Architecture (SOA,) Ajax,  
REST, and Web applications in a time when schedules are short, budgets  
are tight, and much of this is new technology! Find out why Open  
Source Test Tools (OSTT) emerge at AMD, Ford, and The Jackson  
Laboratory as a more affordable and flexible option to the traditional  
test vendors.


Learn how you can leverage open-source testing tools (soapUI,  
PushToTest, Selenium, TestGen4Web, HTMLUnit) for functional testing,  
load and performance testing, and business service monitoring, with  
more flexibility than traditional solutions provide.


Register Now For The FREE workshop

Thursday, June 12, 2008
1:00 pm to 5:00 pm
Hilton Garden Inn
Cupertino, California

Register now at:
http://workshop.pushtotest.com

Frank Cohen, the leading authority for testing and optimizing software  
developed with SOAP, Web, SOA, AJAX and REST designs and  
implementations, and author of FastSOA, will lead the seminar.


Agenda

1:00 pm - 1:30 pm, The why, what, and how of Open-Source Test tools  
vs. traditional tools


1:30 pm - 2:15 pm, Web browser application testing using record/ 
playback and scripting tools


2:15 pm - 3:15 pm, Identifying and solving performance bottlenecks in  
Rich Internet Applications (Web 2.0 and Ajax)


3:15 pm - 4:00 pm, Service Oriented Architecture (SOA) testing,  
including test governance


4:00 pm - 4:30 pm, How to understand and analyze test results

4:30 pm - 5:00 pm, Questions and Answers

Every attendee will receive a free CD with fully working copies of the  
Open Source Test tools, including Selenium, soapUI, PushToTest,  
TestGen4Web, and many others taught in this class.


Guarantee Your Seat! Register now at:

http://workshop.pushtotest.com

-Frank


--
Frank Cohen, http://www.PushToTest.com, phone 408 871 0122
PushToTest, the open-source test automation company




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



AW: service language

2008-06-06 Thread Matthias.Gaiser
Hi Christian,

I would also go the same way of the solution. I am a German as well and we had 
the same thing to do with one of our services. I just changed the existing 
service by renaming the classes and methods and every language specific part.

And in the future, I would try to produce always english services unless the 
customer explicitly states that he wants to have that service in German. The 
result of the called methods (e.g. a message) could, of course, still be in 
German.

HTH,
Matthias.

> -Ursprüngliche Nachricht-
> Von: Christian Lipp [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 6. Juni 2008 13:56
> An: axis-user@ws.apache.org
> Betreff: service language
> 
> Hello!
> 
> We are using Axis V1.x and have some services implemented in German
> language.
> Now we have a new project in a foreign country, so we are forced to
> translate our interfaces to the English language.
> 
> In my understanding I have to
> - change the interface to English
> - generate classes (also with English names and attributes)
> - refactor the application from the usage of the german classes to the
> usage
> of the english classes
> 
> Is the solution the same when using Axis V2.x?
> Or is there a possibility to map two interfaces with the same structure
> but
> with different languages to the same class?
> If yes, how is this done?
> 
> Thanks for your help in advance,
> CL
> 
> 
> -
> 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: WSDL2.0 endpoint problem

2008-06-06 Thread Lawrence Mandel
Hi Yassou,

As you've got an Axis2 specific question I think you'll get a better 
response posting to the Axis2 user list [EMAIL PROTECTED] You can 
subscribe to the list at [1].

[1] http://ws.apache.org/axis2/mail-lists.html

Lawrence





Yassou <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
06/06/2008 06:38 AM

To
[EMAIL PROTECTED]
cc

Subject
WSDL2.0 endpoint problem






Hi !
 
My probleme is that the WSDL2.0 description after deployement in axis2 is 
not the same WSDL2.0 description provided in the begining
 
I provide this:
 

http://www.w3.org/ns/wsdl"; xmlns:tns="
http://wsdl2package"; xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"; 
xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"; xmlns:ns1="
http://org.apache.axis2/xsd"; xmlns:wsaw="
http://www.w3.org/2006/05/addressing/wsdl"; xmlns:wsdlx="
http://www.w3.org/ns/wsdl-extensions"; xmlns:ns="http://wsdl2package"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:whttp="
http://www.w3.org/ns/wsdl/http"; targetNamespace="http://wsdl2package";>
 

  Please Type your service description here
 
 

http://wsdl2package";>

















 

http://www.w3.org/ns/wsdl/style/rpc"; 
wrpc:signature="a #in b #in return #return " pattern="
http://www.w3.org/ns/wsdl/in-out";>



 
http://www.w3.org/ns/wsdl/http";>

 

http://127..0.0.1:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint"; 
/>


 
 
with this service.xml :
 






http://www.w3.org/ns/wsdl/in-out"; 
class="org.apache.axis2.axis2userguide.Wsdl2ClassMessageReceiverInOut"/>

org.apache.axis2.axis2userguide.Wsdl2ClassSkeleton
true
true
http://www.w3.org/ns/wsdl/in-out";>
\"\"
urn:addResponse



 
I execute ant jar.server and I copy build/lib/*.aar file to G:\Program 
Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services 
then when I check the WSDL2.0 description axis2 shows
when I write this address in address bar : 
http://localhost:8080/axis2/services/Wsdl2class?wsdl2 
 
 
- http://www.w3.org/ns/wsdl"; xmlns:tns="
http://ws..apache.org/axis2"; xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"; 
xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"; xmlns:wsaw="
http://www.w3.org/2006/05/addressing/wsdl"; xmlns:wsdlx="
http://www.w3.org/ns/wsdl-extensions"; xmlns:whttp="
http://www.w3.org/ns/wsdl/http"; targetNamespace="
http://ws.apache.org/axis2";>
  Wsdl2class 
   
- 
- http://www.w3.org/ns/wsdl/in-out";>
   
   
  
  
- http://www.w3.org/ns/wsdl/soap"; wsoap:version
="1.1">
   
  
- http://www.w3.org/ns/wsdl/http";>
   
  
- http://www.w3.org/ns/wsdl/soap"; wsoap:version
="1.2">
   
  
- 
  http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap12Endpoint
" /> 
  http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint
" /> 
  http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap11Endpoint
" /> 
  
  
 
 
 
 
So as you can see, I have not one binding and one endpoint as in the 
original WSDL provided
 
Can you help me to have the same WSDL2.0 after deployement ?
Thanx a lot.
 


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



Re: WS-I Compliance Assertion: BP2402

2008-06-06 Thread cmurali

Here you go.

I have attached 2 versions. The first one was having the offending import
statements in raterankrequest.xsd and raterankresponse.xsd that did not
specify a namespace. In order to satisfy that requirement, I directly cut
and pasted the child schemas imported into those schemas which is the
version 2.

Apart from the original BP2402 question, I also want to use include and
export instead of cutting and apsting the contents of other xsds into the
main one. When I make it to work, I see that the namespace is appeneded to
each and every element of the sample request created. I have also attached
samples of the request with and without namespaces to each element of the
request. If you can suggest me some way touse include or export so I need
not have to append namespaces to every element, that would be great.


Muralidaran Chakravarthy

http://www.nabble.com/file/p17692296/RatingAndRankingWSFilesVersion1.zip
RatingAndRankingWSFilesVersion1.zip 
http://www.nabble.com/file/p17692296/raterankWSFilesVersion2.zip
raterankWSFilesVersion2.zip 
http://www.nabble.com/file/p17692296/raterankAllFilesVersion3.zip
raterankAllFilesVersion3.zip 
http://www.nabble.com/file/p17692296/samplerequestCreatedbySOAPUIbyQueryingwsdlVersion1And2-Withoutnamespaces.xml
samplerequestCreatedbySOAPUIbyQueryingwsdlVersion1And2-Withoutnamespaces.xml 
http://www.nabble.com/file/p17692296/samplerequestCreatedbySOAPUIbyQueryingwsdlVersion3-Withnamespaces.xml.xml
samplerequestCreatedbySOAPUIbyQueryingwsdlVersion3-Withnamespaces.xml.xml 


Deepal Jayasinghe-2 wrote:
> 
> When I try to access the WSDL file I can not see rest of the schema 
> files. So is there any way that we can get rest of the imported schema 
> file as well.
> 
> -Deepal
>> Hi,
>>
>> Please find attached my wsdl file which failed in WS-I compliance test as
>> below. I tried to browse around various forums, but could not find the
>> solution. Could you please help?
>>
>> Assertion: BP2402
>>  
>> Result
>> failed
>> Failure Message
>> The wsdl:binding element does not use a soapbind:binding element as
>> defined
>> in section "3 SOAP Binding." of the WSDL 1.1 specification.
>>
>> http://www.nabble.com/file/p17678830/raterankservice.wsdl
>> raterankservice.wsdl 
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WS-I-Compliance-Assertion%3A-BP2402-tp17678830p17692296.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



How to dump SOAP message contents?

2008-06-06 Thread satish madanwad
Hi,

  I am using WebServices with Apache Axis in my programs. I have generated 
client stubs and can prepare and  send the WebService request properly.

  I am trying to dump SOAP message (XML format) which is sent to WebServer 
for processing (to examine exact message being sent). I am not able to find any 
APIs for the same.

  Can you please suggest, if there is any API to dump SOAP messages sent 
from Apache Axis to WebServer?

Thanks in advance,
Satish





  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/

Re: .Net web service Security problem while invoking from axis 1.3

2008-06-06 Thread José Ferreiro
It looks like you are using

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0.pdf(see
http://ws.apache.org/wss4j/package.html)

if yes, then for the actions you may use

  in order to
interoperate with .net and WSE 3.0
in WSDoAllSender and WSDoAllReceiver handlers.


Hope this helps.

Jose Ferreiro

On Fri, Jun 6, 2008 at 2:44 PM, sh_santosh <[EMAIL PROTECTED]> wrote:

>
> Dear Jose,
>
> How do i include timestamp in the actions While invoking .Net web services
> from axis 1.3.
> can you please explain.
>
> Regards
> Santosh
>
>
> José Ferreiro wrote:
> >
> > Hello,
> >
> > Did you included the timestamp in the actions?
> >
> > .net requires it by default.
> >
> > Jose Ferreiro
> >
> > On Fri, Jun 6, 2008 at 2:26 PM, sh_santosh <[EMAIL PROTECTED]>
> > wrote:
> >
> >>
> >> Dear All,
> >>
> >>
> >> I want to access a .NET webservice implemented on WSE3.0 Standards
> >> through
> >> my java application using Axis 1.3,but I am getting the Security Header
> >> missing Exception ,which i have mention below :-
> >>
> >> Exception in thread "main" AxisFault
> >> faultCode:
> >> {
> >>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
> <
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd%7DSecurity
> >
> >> faultSubcode:
> >> faultString: Microsoft.Web.Services3.Security.SecurityFault: Security
> >> requirements are not satisfied because the security header is not
> present
> >> in
> >> the incoming message.
> >>  at
> >>
> >>
> Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
> >> envelope, Security security)
> >>  at
> >>
> >>
> Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
> >> envelope)
> >>  at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
> >> envelope)
> >>  at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
> >> requestEnvelope)
> >>  at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
> >> message)
> >>  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> >>  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> type,
> >> HttpContext context, HttpRequest request, HttpResponse response,
> >> Boolean& abortProcessing)
> >> faultActor: https://testingapitest.test.com/testingapi.asmx
> >> faultNode:
> >> faultDetail:
> >>
> >> {
> >>
> http://xml.apache.org/axis/}stackTrace:Microsoft.Web.Services3.Security.SecurityFault
> <
> http://xml.apache.org/axis/%7DstackTrace:Microsoft.Web.Services3.Security.SecurityFault
> >
> >> :
> >> Security requirements are not satisfied because the security header is
> >> not
> >> present in the incoming message.
> >>  at
> >>
> >>
> Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
> >> envelope, Security security)
> >>  at
> >>
> >>
> Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
> >> envelope)
> >>  at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
> >> envelope)
> >>  at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
> >> requestEnvelope)
> >>  at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
> >> message)
> >>  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> >>  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> type,
> >> HttpContext context, HttpRequest request, HttpResponse response,
> >> Boolean& abortProcessing)
> >>  at
> >>
> >>
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
> >>  at
> >>
> >>
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
> >>  at
> >>
> >>
> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
> >>  at
> >>
> >>
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser

Re: .Net web service Security problem while invoking from axis 1.3

2008-06-06 Thread sh_santosh

Dear Jose,

How do i include timestamp in the actions While invoking .Net web services
from axis 1.3.
can you please explain.

Regards
Santosh


José Ferreiro wrote:
> 
> Hello,
> 
> Did you included the timestamp in the actions?
> 
> .net requires it by default.
> 
> Jose Ferreiro
> 
> On Fri, Jun 6, 2008 at 2:26 PM, sh_santosh <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> Dear All,
>>
>>
>> I want to access a .NET webservice implemented on WSE3.0 Standards
>> through
>> my java application using Axis 1.3,but I am getting the Security Header
>> missing Exception ,which i have mention below :-
>>
>> Exception in thread "main" AxisFault
>> faultCode:
>> {
>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
>> faultSubcode:
>> faultString: Microsoft.Web.Services3.Security.SecurityFault: Security
>> requirements are not satisfied because the security header is not present
>> in
>> the incoming message.
>>  at
>>
>> Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
>> envelope, Security security)
>>  at
>>
>> Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
>> envelope)
>>  at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
>> envelope)
>>  at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
>> requestEnvelope)
>>  at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
>> message)
>>  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
>>  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
>> HttpContext context, HttpRequest request, HttpResponse response,
>> Boolean& abortProcessing)
>> faultActor: https://testingapitest.test.com/testingapi.asmx
>> faultNode:
>> faultDetail:
>>
>> {
>> http://xml.apache.org/axis/}stackTrace:Microsoft.Web.Services3.Security.SecurityFault
>> :
>> Security requirements are not satisfied because the security header is
>> not
>> present in the incoming message.
>>  at
>>
>> Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
>> envelope, Security security)
>>  at
>>
>> Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
>> envelope)
>>  at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
>> envelope)
>>  at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
>> requestEnvelope)
>>  at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
>> message)
>>  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
>>  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
>> HttpContext context, HttpRequest request, HttpResponse response,
>> Boolean& abortProcessing)
>>  at
>>
>> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
>>  at
>>
>> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
>>  at
>>
>> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
>>  at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
>>  at
>>
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
>>  at
>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
>>  at
>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>>  at
>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
>>  at
>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>>  at
>>
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>>  at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>>  at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>>  at
>>
>> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>>  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>>  at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>>  at
>>
>> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
>>  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>>  at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>>  at org.apache.axis.client.Call.invoke(Call.java:2767)
>>  at org.apache.axis.client.Call.invoke(Call.java:2443)
>>  at org.apache.axis.client.Call.invoke(Call.java:2366)
>>  at org.apache.axis.client.Call.invoke(Cal

Re: .Net web service Security problem while invoking from axis 1.3

2008-06-06 Thread José Ferreiro
Hello,

Did you included the timestamp in the actions?

.net requires it by default.

Jose Ferreiro

On Fri, Jun 6, 2008 at 2:26 PM, sh_santosh <[EMAIL PROTECTED]> wrote:

>
> Dear All,
>
>
> I want to access a .NET webservice implemented on WSE3.0 Standards through
> my java application using Axis 1.3,but I am getting the Security Header
> missing Exception ,which i have mention below :-
>
> Exception in thread "main" AxisFault
> faultCode:
> {
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
> faultSubcode:
> faultString: Microsoft.Web.Services3.Security.SecurityFault: Security
> requirements are not satisfied because the security header is not present
> in
> the incoming message.
>  at
>
> Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
> envelope, Security security)
>  at
>
> Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
> envelope)
>  at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
> envelope)
>  at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
> requestEnvelope)
>  at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
> message)
>  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
>  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
> HttpContext context, HttpRequest request, HttpResponse response,
> Boolean& abortProcessing)
> faultActor: https://testingapitest.test.com/testingapi.asmx
> faultNode:
> faultDetail:
>
> {
> http://xml.apache.org/axis/}stackTrace:Microsoft.Web.Services3.Security.SecurityFault
> :
> Security requirements are not satisfied because the security header is not
> present in the incoming message.
>  at
>
> Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
> envelope, Security security)
>  at
>
> Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
> envelope)
>  at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
> envelope)
>  at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
> requestEnvelope)
>  at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
> message)
>  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
>  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
> HttpContext context, HttpRequest request, HttpResponse response,
> Boolean& abortProcessing)
>  at
>
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
>  at
>
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
>  at
>
> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
>  at
>
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
>  at
>
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
>  at
>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
>  at
>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>  at
>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
>  at
>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>  at
>
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>  at
>
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>  at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>  at
>
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>  at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>  at
>
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
>  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>  at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>  at org.apache.axis.client.Call.invoke(Call.java:2767)
>  at org.apache.axis.client.Call.invoke(Call.java:2443)
>  at org.apache.axis.client.Call.invoke(Call.java:2366)
>  at org.apache.axis.client.Call.invoke(Call.java:1812)
>  at
>
> com.vtech.external.implementation.test.testWSDLfiles.test.www.api.test.ws.internal.testAPISoapStub.testInfo(testAPISoapStub.java:859)
>  at
>
> com.vtech.external.implementation..test.testWSDLfiles.test.www.api.test.ws.internal.test.main(test.java:21)
>
>  
> {http://xml.apache.org/ax

.Net web service Security problem while invoking from axis 1.3

2008-06-06 Thread sh_santosh

Dear All,


I want to access a .NET webservice implemented on WSE3.0 Standards through
my java application using Axis 1.3,but I am getting the Security Header
missing Exception ,which i have mention below :-

Exception in thread "main" AxisFault
faultCode:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
faultSubcode:
faultString: Microsoft.Web.Services3.Security.SecurityFault: Security
requirements are not satisfied because the security header is not present in
the incoming message.
 at
Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
envelope, Security security)
 at
Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
envelope)
 at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)
 at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
requestEnvelope)
 at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
message)
 at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
 at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing)
faultActor: https://testingapitest.test.com/testingapi.asmx
faultNode:
faultDetail:
 
{http://xml.apache.org/axis/}stackTrace:Microsoft.Web.Services3.Security.SecurityFault:
Security requirements are not satisfied because the security header is not
present in the incoming message.
 at
Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
envelope, Security security)
 at
Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
envelope)
 at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)
 at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
requestEnvelope)
 at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
message)
 at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
 at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing)
  at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
  at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
  at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
  at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
  at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
  at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
  at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
  at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
  at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
  at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
  at org.apache.axis.client.Call.invoke(Call.java:2767)
  at org.apache.axis.client.Call.invoke(Call.java:2443)
  at org.apache.axis.client.Call.invoke(Call.java:2366)
  at org.apache.axis.client.Call.invoke(Call.java:1812)
  at
com.vtech.external.implementation.test.testWSDLfiles.test.www.api.test.ws.internal.testAPISoapStub.testInfo(testAPISoapStub.java:859)
  at
com.vtech.external.implementation..test.testWSDLfiles.test.www.api.test.ws.internal.test.main(test.java:21)

  {http://xml.apache.org/axis/}hostname:vibpj167

Microsoft.Web.Services3.Security.SecurityFault: Security requirements are
not satisfied because the security header is not present in the incoming
message.
 at
Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
envelope, Security security)
 at
Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
envelope)
 at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)
 at Microsoft.Web.Services3.WseProtocol.FilterRequest(Soap

Problem in deserializing a parameter

2008-06-06 Thread Jadaaih Jade
Hi folks,

 I am pretty new to axis, and I have just started learning about web services 
from past two days. 

 I am having a problem in deserializing a parameter when using Apache Axis.

 I am trying out a sample code, which sends a XML file as request and gets back 
the same file as response. Something kind of echo. The following is the client 
code for the same,

package com.my.services;

import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory;
import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory;






public class EchoRequest {

/**
 * @param args
 */
public static void main(String[] args) {


try {
String endpoint = 
"http://localhost:8080/axis/Echo.jws";;
Service  service = new Service();
Call call= (Call) service.createCall();
  
call.setTargetEndpointAddress( new 
java.net.URL(endpoint) );
call.setOperationName(new 
QName(("Echo"),"DataHandler"));
QName qName = new QName("Echo" , "echo");
DataHandler dhSource = new DataHandler(new 
FileDataSource("D:/Workspace/Sandbox/Request.xml"));


call.registerTypeMapping(dhSource.getClass(),qName,JAFDataHandlerSerializerFactory.class,JAFDataHandlerDeserializerFactory.class
 );

call.addParameter("echo", qName , ParameterMode.IN);
call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT, 
call.ATTACHMENT_ENCAPSULATION_FORMAT_MIME);
call.setReturnType(qName);  

Object ret = call.invoke(new Object[] {dhSource});


System.out.println();

  } catch (Exception e) {
System.err.println(e.toString());
e.printStackTrace();
  }
}

}
 
 The following is the jws in the tomcat server. I have no wsdd files in my 
server, I just have this jws,

import java.io.Serializable;
import javax.activation.DataHandler;

public class Echo implements Serializable{

public DataHandler echoString(DataHandler echo){
return echo;
}
}

When I run my client, I am getting the following error message,

org.xml.sax.SAXException: Deserializing parameter 'echo':  could not find 
deserializer for type {Echo}echo
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Deserializing parameter 'echo':  could 
not find deserializer for type {Echo}echo
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}hostname:sel7dt2008

org.xml.sax.SAXException: Deserializing parameter 'echo':  could not find 
deserializer for type {Echo}echo
at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
 

Re: WSDL2.0 endpoint

2008-06-06 Thread keith chapman
Yes, Bu default Axis2 will generate 3 endpoints for you.

Thanks,
Keith.

On Fri, Jun 6, 2008 at 3:50 PM, Yassou <[EMAIL PROTECTED]> wrote:

> Thanks Keith !
>
> So this is why always axis2 show as endpoints these 3 ones : HTTP, SOAP1.1
> and SOAP1.2 ?
>
>
>
> 2008/6/6, keith chapman <[EMAIL PROTECTED]>:
>
>> Hi,
>>
>> This is a known limitation in Axis2. Axis2 uses Woden to provide WSDL 2.0
>> support, the Woden project is in the process of writing a serializer (Its
>> not available yet) So once we build the object model using a WSDL 2.0
>> document we have no way of werializing it out. So the only option we have is
>> to serialize the AxisService to WSDL a 2.0 doc.  So you will never be able
>> to get an original WSDL for the WSDL 2.0 case.
>>
>> Thanks,
>> Keith.
>>
>>
>> On Fri, Jun 6, 2008 at 12:30 PM, Yassou <[EMAIL PROTECTED]> wrote:
>>
>>> Hi !
>>>
>>> My probleme is that the WSDL2.0 description after deployement in axis2 is
>>> not the same WSDL2.0 description provided in the begining
>>> I provide this:
>>>
>>> 
>>> http://www.w3.org/ns/wsdl"; xmlns:tns="
>>> http://wsdl2package"; xmlns:wsoap="http://www.w3.org/ns/wsdl/soap";
>>> xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"; xmlns:ns1="
>>> http://org.apache.axis2/xsd"; xmlns:wsaw="
>>> http://www.w3.org/2006/05/addressing/wsdl"; xmlns:wsdlx="
>>> http://www.w3.org/ns/wsdl-extensions"; xmlns:ns="http://wsdl2package";
>>> xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:whttp="
>>> http://www.w3.org/ns/wsdl/http"; 
>>> targetNamespace="http://wsdl2package";>
>>>
>>> 
>>>   Please Type your service description here
>>>  
>>>
>>> 
>>> >> elementFormDefault="qualified" targetNamespace="http://wsdl2package";>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> http://www.w3.org/ns/wsdl/style/rpc";
>>> wrpc:signature="a #in b #in return #return " pattern="
>>> http://www.w3.org/ns/wsdl/in-out";>
>>> >> element="ns:addResponse" wsaw:Action="urn:addResponse" />
>>> 
>>> 
>>>
>>> >> interface="tns:ServiceInterface" whttp:methodDefault="POST" type="
>>> http://www.w3.org/ns/wsdl/http";>http://www.w3.org/ns/wsdl/http%22%3E%3Cwsdl2:operation>ref="tns:add"
>>>  whttp:location="Wsdl2class/add" />
>>> 
>>>
>>> 
>>> >> binding="tns:Wsdl2classHttpBinding" address="
>>> http://127.0.0.1:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint";
>>> />
>>> 
>>> 
>>>
>>>
>>> with this service.xml :
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> http://www.w3.org/ns/wsdl/in-out";
>>> class="org.apache.axis2.axis2userguide.Wsdl2ClassMessageReceiverInOut"/>
>>> 
>>> >> name="ServiceClass">org.apache.axis2.axis2userguide.Wsdl2ClassSkeleton
>>> true
>>> true
>>> http://www.w3.org/ns/wsdl/in-out";>
>>> \"\"
>>> urn:addResponse
>>> 
>>> 
>>> 
>>>
>>> I execute ant jar.server and I copy build/lib/*.aar file to G:\Program
>>> Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services
>>> then when I check the WSDL2.0 description axis2 shows
>>> when I write this address in address bar :
>>> http://localhost:8080/axis2/services/Wsdl2class?wsdl2
>>>
>>>
>>>  *-*  <
>>> wsdl2:description xmlns:wsdl2="*http://www.w3.org/ns/wsdl*"; xmlns:tns="*
>>> http://ws.apache.org/axis2*"; xmlns:wsoap="*
>>> http://www.w3.org/ns/wsdl/soap*"; xmlns:wrpc="*
>>> http://www.w3.org/ns/wsdl/rpc*"; xmlns:wsaw="*
>>> http://www.w3.org/2006/05/addressing/wsdl*"; xmlns:wsdlx="*
>>> http://www.w3.org/ns/wsdl-extensions*"; xmlns:whttp="*
>>> http://www.w3.org/ns/wsdl/http*"; targetNamespace="*
>>> http://ws.apache.org/axis2*";>
>>>  * * *Wsdl2class*
>>>  * * 
>>>  *-*  <
>>> wsdl2:interface name="*ServiceInterface*">
>>>  *-*  <
>>> wsdl2:operation name="*add*" pattern="*http://www.w3.org/ns/wsdl/in-out*
>>> ">
>>>  * * 
>>>  * * 
>>>  * * 
>>>  * * 
>>>  *-*  <
>>> wsdl2:binding name="*Wsdl2classSoap11Binding*" interface="*
>>> tns:ServiceInterface*" type="*http://www.w3.org/ns/wsdl/soap*"wsoap:version
>>> ="*1.1*">
>>>  * * 
>>>  * * 
>>>  *-*  <
>>> wsdl2:binding name="*Wsdl2classHttpBinding*" interface="*
>>> tns:ServiceInterface*" whttp:methodDefault="*POST*" type="*
>>> http://www.w3.org/ns/wsdl/http*";>
>>>  * * 
>>>  * * 
>>>  *-*  <
>>> wsdl2:binding name="*Wsdl2classSoap12Binding*" interface="*
>>> tns:ServiceInterface*" type="*http://www.w3.org/ns/wsdl/soap*"wsoap:version
>>> ="*1.2*">
>>>  * * 
>>>  * * 
>>>  *-*  <
>>> wsdl2:service name="*Wsdl2class*" interface="*tns:ServiceInterface*">
>>> 

Re: WSDL2.0 endpoint

2008-06-06 Thread Yassou
Thanks Keith !

So this is why always axis2 show as endpoints these 3 ones : HTTP, SOAP1.1
and SOAP1.2 ?



2008/6/6, keith chapman <[EMAIL PROTECTED]>:
>
> Hi,
>
> This is a known limitation in Axis2. Axis2 uses Woden to provide WSDL 2.0
> support, the Woden project is in the process of writing a serializer (Its
> not available yet) So once we build the object model using a WSDL 2.0
> document we have no way of werializing it out. So the only option we have is
> to serialize the AxisService to WSDL a 2.0 doc.  So you will never be able
> to get an original WSDL for the WSDL 2.0 case.
>
> Thanks,
> Keith.
>
>
> On Fri, Jun 6, 2008 at 12:30 PM, Yassou <[EMAIL PROTECTED]> wrote:
>
>> Hi !
>>
>> My probleme is that the WSDL2.0 description after deployement in axis2 is
>> not the same WSDL2.0 description provided in the begining
>> I provide this:
>>
>> 
>> http://www.w3.org/ns/wsdl"; xmlns:tns="
>> http://wsdl2package"; xmlns:wsoap="http://www.w3.org/ns/wsdl/soap";
>> xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"; xmlns:ns1="
>> http://org.apache.axis2/xsd"; xmlns:wsaw="
>> http://www.w3.org/2006/05/addressing/wsdl"; xmlns:wsdlx="
>> http://www.w3.org/ns/wsdl-extensions"; xmlns:ns="http://wsdl2package";
>> xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:whttp="
>> http://www.w3.org/ns/wsdl/http"; 
>> targetNamespace="http://wsdl2package";>
>>
>> 
>>   Please Type your service description here
>>  
>>
>> 
>> > targetNamespace="http://wsdl2package";>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> http://www.w3.org/ns/wsdl/style/rpc";
>> wrpc:signature="a #in b #in return #return " pattern="
>> http://www.w3.org/ns/wsdl/in-out";>
>> > element="ns:addResponse" wsaw:Action="urn:addResponse" />
>> 
>> 
>>
>> > interface="tns:ServiceInterface" whttp:methodDefault="POST" type="
>> http://www.w3.org/ns/wsdl/http";>http://www.w3.org/ns/wsdl/http%22%3E%3Cwsdl2:operation>ref="tns:add"
>>  whttp:location="Wsdl2class/add" />
>> 
>>
>> 
>> > binding="tns:Wsdl2classHttpBinding" address="
>> http://127.0.0.1:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint";
>> />
>> 
>> 
>>
>>
>> with this service.xml :
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> http://www.w3.org/ns/wsdl/in-out";
>> class="org.apache.axis2.axis2userguide.Wsdl2ClassMessageReceiverInOut"/>
>> 
>> > name="ServiceClass">org.apache.axis2.axis2userguide.Wsdl2ClassSkeleton
>> true
>> true
>> http://www.w3.org/ns/wsdl/in-out";>
>> \"\"
>> urn:addResponse
>> 
>> 
>> 
>>
>> I execute ant jar.server and I copy build/lib/*.aar file to G:\Program
>> Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services
>> then when I check the WSDL2.0 description axis2 shows
>> when I write this address in address bar :
>> http://localhost:8080/axis2/services/Wsdl2class?wsdl2
>>
>>
>>  *-*  <
>> wsdl2:description xmlns:wsdl2="*http://www.w3.org/ns/wsdl*"; xmlns:tns="*
>> http://ws.apache.org/axis2*"; xmlns:wsoap="*http://www.w3.org/ns/wsdl/soap
>> *" xmlns:wrpc="*http://www.w3.org/ns/wsdl/rpc*"; xmlns:wsaw="*
>> http://www.w3.org/2006/05/addressing/wsdl*"; xmlns:wsdlx="*
>> http://www.w3.org/ns/wsdl-extensions*"; xmlns:whttp="*
>> http://www.w3.org/ns/wsdl/http*"; targetNamespace="*
>> http://ws.apache.org/axis2*";>
>>  * * *Wsdl2class*
>>  * * 
>>  *-*  <
>> wsdl2:interface name="*ServiceInterface*">
>>  *-*  <
>> wsdl2:operation name="*add*" pattern="*http://www.w3.org/ns/wsdl/in-out*";
>> >
>>  * * 
>>  * * 
>>  * * 
>>  * * 
>>  *-*  <
>> wsdl2:binding name="*Wsdl2classSoap11Binding*" interface="*
>> tns:ServiceInterface*" type="*http://www.w3.org/ns/wsdl/soap*"wsoap:version
>> ="*1.1*">
>>  * * 
>>  * * 
>>  *-*  <
>> wsdl2:binding name="*Wsdl2classHttpBinding*" interface="*
>> tns:ServiceInterface*" whttp:methodDefault="*POST*" type="*
>> http://www.w3.org/ns/wsdl/http*";>
>>  * * 
>>  * * 
>>  *-*  <
>> wsdl2:binding name="*Wsdl2classSoap12Binding*" interface="*
>> tns:ServiceInterface*" type="*http://www.w3.org/ns/wsdl/soap*"wsoap:version
>> ="*1.2*">
>>  * * 
>>  * * 
>>  *-*  <
>> wsdl2:service name="*Wsdl2class*" interface="*tns:ServiceInterface*">
>>  * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap12Endpoint
>> *" />
>>  * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint
>> *" />
>>  * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap11Endpoint
>> *" />
>>  * * 
>>  * * 
>>
>>
>>
>>
>> So as you can see,

The service cannot be found for the endpoint reference (EPR)

2008-06-06 Thread Mohan Radhakrishnan

Hi,

  Not sure why I am getting this fault back. I have a WAR ,
services.list with the name of the AAR file and the .aar file in the
services folder. Since I am using XMLBeans bindings I have
XBeans-packaged.jar also in the services folder. Could this be due to
classloader problems ? I also have another XBeans-packaged.jar and client
JAR in the WEB-INF/lib folder. The WAR has both the client to a webservice
and another webservice.

AxisFault is expected
org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) http://10.187.37.33:61052/URL

Thanks,
Mohan
Thanks,
Mohan
 
-- 
View this message in context: 
http://www.nabble.com/The-service-cannot-be-found-for-the-endpoint-reference-%28EPR%29-tp17688709p17688709.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: How to Debug Axis2 Engine

2008-06-06 Thread Suran Jayathilaka

Hi,

If you're running the Axis2 standalone server (i.e. by invoking the 
AXIS2_HOME/bin/axis2server.sh) you can do this to debug axis2 code.

Edit the axis2server.sh file as follows.

Before the "java" invocation, declare an environment variable

export JAVA_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"


Now insert $JAVA_OPTS to the execution line, as follows.

java $JAVA_OPTS -classpath "$AXIS2_CLASSPATH" 
org.apache.axis2.transport.SimpleAxis2Server \

-repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*

Now, when you invoke this script, execution will pause, listening at 
port 8000.


"Listening for transport dt_socket at address: 8000"

Set your IDE to remote debug at 8000. You can of course change the debug 
port number to a preferred one.


The *JMSMessageReceiver.java class in the axis2-kernel module and hence 
in the axis2-kernel-1.4.jar file.


HTH.
Suran
*

adisesha wrote:


Hi,

 

How can I debug 
axis2-1.4\modules\kernel\src\org\apache\axis2\transport\jms\*JMSMessageReceiver.java 
*(axis2 engine)?


 

http://wso2.org/library/225 will helps us to debug web service & not 
axis2 code. And which jar file has this class? I feel this is part of 
module which cant be debugged?


 


Thanks in advance

 


Disclaimer

The information contained in this communication is intended solely for 
the use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally 
privileged information. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking 
any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you have received this 
communication in error, please notify us immediately by forwarding 
this email to [EMAIL PROTECTED] and then delete it from your system. 
Ness technologies is neither liable for the proper and complete 
transmission of the information contained in this communication nor 
for any delay in its receipt.





--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



Re: [axis-user] Https

2008-06-06 Thread BRACHET Maxime
Thank you,
I will follow this document.

Regards,
Maxime.

2008/6/6 keith chapman <[EMAIL PROTECTED]>:

> Hi,
>
> You cannot deploy Claculator.jws in Axis2 (This is something that was
> available in Axis (Note Axis1). If you want to drop in a services.xml you
> will have to create an aar file to do this. The following article will give
> you some help in this regard. You can find more articles on Axis2 on the
> WSO2 OxygenTank at http://wso2.org
>
> http://wso2.org/library/95
>
> Thanks,
> Keith.
>
>
> On Fri, Jun 6, 2008 at 2:13 PM, BRACHET Maxime <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I user axis2 deployed in Tomcat 5.5.26.
>> I have a sample Claculator.jws in Axis2 directory.
>> I wanted to allow his access only throught https.
>>
>> I founded something like
>> 
>>https
>> 
>> to put in the services.xml
>>
>> But I cant find this services.xml.
>>
>> I new with Axis and wanted to understand how it works.
>>
>> Regards,
>> Maxime.
>>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org


FW: IllegalStateException when undeploying webapp using an Axis2 client in JBoss

2008-06-06 Thread Jon Ekdahl


Hi,

I'm having some problems with undeploy/redeploy in JBoss. My web application 
uses an Axis2 client to call a web service. The following stack trace occurs on 
a regular basis when undeploying the web application (or shortly after, when 
GC/finalization is performed I assume).

09:52:59,578 INFO  [WebappClassLoader] Illegal access: this web application 
instance has been stopped already.
  Could not load org.apache.axis2.i18n.Messages.  The eventual following stack 
trace is caused by an error thrown for debugging purposes as well as to attempt 
to terminate the thread which caused the illegal access, and has no functional 
impact.
java.lang.IllegalStateException
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at 
org.apache.axis2.engine.AxisConfiguration.removeService(AxisConfiguration.java:545)
at org.apache.axis2.client.Stub.cleanup(Stub.java:123)
at org.apache.axis2.client.Stub.finalize(Stub.java:113)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)


This leads me to think that maybe I should be calling the cleanup method in the 
client stub from a servlet context listener. Would this be a correct way to 
solve the problem?

Any help greatly appreciated!

Cheers, Jon

PS. My environment:
JBoss 4.2.2.GA
Axis2 1.4
Java version 1.6.0_02 (Sun)
OS Windows XP SP2




Re: [axis-user] Https

2008-06-06 Thread keith chapman
Hi,

You cannot deploy Claculator.jws in Axis2 (This is something that was
available in Axis (Note Axis1). If you want to drop in a services.xml you
will have to create an aar file to do this. The following article will give
you some help in this regard. You can find more articles on Axis2 on the
WSO2 OxygenTank at http://wso2.org

http://wso2.org/library/95

Thanks,
Keith.

On Fri, Jun 6, 2008 at 2:13 PM, BRACHET Maxime <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I user axis2 deployed in Tomcat 5.5.26.
> I have a sample Claculator.jws in Axis2 directory.
> I wanted to allow his access only throught https.
>
> I founded something like
> 
>https
> 
> to put in the services.xml
>
> But I cant find this services.xml.
>
> I new with Axis and wanted to understand how it works.
>
> Regards,
> Maxime.
>



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

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


RE: AXIS2_HOME environment variable

2008-06-06 Thread Sanjay Vivek
I believe you should set AXIS2_HOME = C:axis2-1\axis2-1.2 (i.e. without
the bin at the end)
 
Cheers
Sanjay
 
 




From: Adriana Verdejo [mailto:[EMAIL PROTECTED] 
Sent: 06 June 2008 09:38
To: axis-user@ws.apache.org
Subject: AXIS2_HOME environment variable


Hi, 
 
I have a problem with the AXIS2_HOME environment variable. When
I try to run wsdl2java or anyother I get an error saying that the
AXIS2_HOME environment variable is not defined correctly.
 
I have defined that as AXIS2_HOME = C:\axis2-1.2\axis2-1.2\bin.
 
Do you know what is wrong? Should I copy my axis2-1.2 folder in
any other specific place?
 
Thanks and regards
 
Adriana.



Re: AXIS2_HOME environment variable

2008-06-06 Thread Mar
Make sure the '.' in your class path are not acting as \ from your OS.  
It's just a case of point to the right files.  Carefully check your 
output string by putting @echo on if you're running it from a .bat file.


Adriana Verdejo wrote:


Hi,
 
I have a problem with the AXIS2_HOME environment variable. When I try 
to run wsdl2java or anyother I get an error saying that the AXIS2_HOME 
environment variable is not defined correctly.
 
I have defined that as AXIS2_HOME = C:\axis2-1.2\axis2-1.2\bin.
 
Do you know what is wrong? Should I copy my axis2-1.2 folder in any 
other specific place?
 
Thanks and regards
 
Adriana.



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



Re: AXIS2_HOME environment variable

2008-06-06 Thread Michele Mazzucco

Adriana,

your AXIS2_HOME should be C:\axis2-1.2\axis2-1.2, with no "bin" at  
the end.



Michele


On 6 Jun 2008, at 09:38, Adriana Verdejo wrote:


Hi,

I have a problem with the AXIS2_HOME environment variable. When I  
try to run wsdl2java or anyother I get an error saying that the  
AXIS2_HOME environment variable is not defined correctly.


I have defined that as AXIS2_HOME = C:\axis2-1.2\axis2-1.2\bin.

Do you know what is wrong? Should I copy my axis2-1.2 folder in any  
other specific place?


Thanks and regards

Adriana.



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



Re: stub class

2008-06-06 Thread Jyotsna Varma

Please can you help me ?

--- On Fri, 6/6/08, Jyotsna Varma <[EMAIL PROTECTED]> wrote:

From: Jyotsna Varma <[EMAIL PROTECTED]>
Subject: stub class
To: axis-user@ws.apache.org
Date: Friday, 6 June, 2008, 2:51 AM







Hi,
 
Let me ask one more doubt... how many classes will be generated by the 
wsdl2java ? I got only 2 classes, one stub class and an handler class. I am 
using axis2 1.3
Sorry if its a stupid question
 
Thanks,

--- On Thu, 5/6/08, Jyotsna Varma <[EMAIL PROTECTED]> wrote:

From: Jyotsna Varma <[EMAIL PROTECTED]>
Subject: RE: org.apache.axis2.databinding.ADBException: Unexpected subelement 
SessionID
To: axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 9:43 PM







please find the attached stub class
--- On Thu, 5/6/08, Perez Arbulu, Ibai <[EMAIL PROTECTED]> wrote:

From: Perez Arbulu, Ibai <[EMAIL PROTECTED]>
Subject: RE: org.apache.axis2.databinding.ADBException: Unexpected subelement 
SessionID
To: [EMAIL PROTECTED], axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 8:23 PM








The Stub itself.
 




De: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 05 de junio de 2008 16:51
Para: Perez Arbulu, Ibai; axis-user@ws.apache.org
Asunto: RE: org.apache.axis2.databinding.ADBException: Unexpected subelement 
SessionID
 




Thanks for the response.
 
I am not sure which part of the code you required. Let me explain the 
background.
I am using java1.5,tomcat5.5.17 for the web application I am developing, rather 
already developed. I am trying to integrate an external application. I have got 
the wsdl url which they have provided. I used axis2 1.3 wsdl2java to generate 
stub classes. I have copied those stub classed to the director (I am using 
netbeans) which application resides. 
>From one of class I am trying to accesss the methods from stub class (just to 
>test).
Stub class is bigger in size. Also to be honest I am not sure which are the 
classes I need to access the external application's database (thats what i want 
to do exactly).
 
Can you tell me which class you need to see ?


--- On Thu, 5/6/08, Perez Arbulu, Ibai < [EMAIL PROTECTED] > wrote:

From: Perez Arbulu, Ibai < [EMAIL PROTECTED] >
Subject: RE: org.apache.axis2.databinding.ADBException: Unexpected subelement 
SessionID
To: axis-user@ws.apache.org, [EMAIL PROTECTED]
Date: Thursday, 5 June, 2008, 8:10 PM


Show your code….. the involved part at least….
 




De: Jyotsna Varma [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 05 de junio de 2008 16:38
Para: axis-user@ws.apache.org
Asunto: Re: org.apache.axis2.databinding.ADBException: Unexpected subelement 
SessionID
 




Can anybody please help me on this?


--- On Thu, 5/6/08, Jyotsna Varma <[EMAIL PROTECTED]> wrote:

From: Jyotsna Varma <[EMAIL PROTECTED]>
Subject: org.apache.axis2.databinding.ADBException: Unexpected subelement 
SessionID
To: axis-user@ws.apache.org
Date: Thursday, 5 June, 2008, 6:57 PM





Hi,
 
When I try to access the stub class methods, I get the exception
org.apache.axis2.databinding.ADBException: Unexpected subelement SessionID
 
Please anyone have an idea what the error is this ?
 
Thanks,
 



Sent from Yahoo! Mail. 
A Smarter Email.
 



Sent from Yahoo! Mail. 
A Smarter Email.
 



Sent from Yahoo! Mail. 
A Smarter Email.


Sent from Yahoo! Mail. 
A Smarter 
Email.-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sent from Yahoo! Mail. 
A Smarter Email.


  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

Re: WSDL2.0 endpoint

2008-06-06 Thread keith chapman
Hi,

This is a known limitation in Axis2. Axis2 uses Woden to provide WSDL 2.0
support, the Woden project is in the process of writing a serializer (Its
not available yet) So once we build the object model using a WSDL 2.0
document we have no way of werializing it out. So the only option we have is
to serialize the AxisService to WSDL a 2.0 doc.  So you will never be able
to get an original WSDL for the WSDL 2.0 case.

Thanks,
Keith.


On Fri, Jun 6, 2008 at 12:30 PM, Yassou <[EMAIL PROTECTED]> wrote:

> Hi !
>
> My probleme is that the WSDL2.0 description after deployement in axis2 is
> not the same WSDL2.0 description provided in the begining
> I provide this:
>
> 
> http://www.w3.org/ns/wsdl"; xmlns:tns="
> http://wsdl2package"; xmlns:wsoap="http://www.w3.org/ns/wsdl/soap";
> xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"; xmlns:ns1="
> http://org.apache.axis2/xsd"; xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; xmlns:wsdlx="
> http://www.w3.org/ns/wsdl-extensions"; xmlns:ns="http://wsdl2package";
> xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:whttp="
> http://www.w3.org/ns/wsdl/http"; 
> targetNamespace="http://wsdl2package";>
>
> 
>   Please Type your service description here
>  
>
> 
>  targetNamespace="http://wsdl2package";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> http://www.w3.org/ns/wsdl/style/rpc";
> wrpc:signature="a #in b #in return #return " pattern="
> http://www.w3.org/ns/wsdl/in-out";>
>  element="ns:addResponse" wsaw:Action="urn:addResponse" />
> 
> 
>
>  interface="tns:ServiceInterface" whttp:methodDefault="POST" type="
> http://www.w3.org/ns/wsdl/http";>http://www.w3.org/ns/wsdl/http%22%3E%3Cwsdl2:operation>ref="tns:add"
>  whttp:location="Wsdl2class/add" />
> 
>
> 
>  binding="tns:Wsdl2classHttpBinding" address="
> http://127.0.0.1:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint"; />
> 
> 
>
>
> with this service.xml :
>
> 
> 
> 
> 
> 
> 
> http://www.w3.org/ns/wsdl/in-out";
> class="org.apache.axis2.axis2userguide.Wsdl2ClassMessageReceiverInOut"/>
> 
>  name="ServiceClass">org.apache.axis2.axis2userguide.Wsdl2ClassSkeleton
> true
> true
> http://www.w3.org/ns/wsdl/in-out";>
> \"\"
> urn:addResponse
> 
> 
> 
>
> I execute ant jar.server and I copy build/lib/*.aar file to G:\Program
> Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services
> then when I check the WSDL2.0 description axis2 shows
> when I write this address in address bar :
> http://localhost:8080/axis2/services/Wsdl2class?wsdl2
>
>
>  *-*  <
> wsdl2:description xmlns:wsdl2="*http://www.w3.org/ns/wsdl*"; xmlns:tns="*
> http://ws.apache.org/axis2*"; xmlns:wsoap="*http://www.w3.org/ns/wsdl/soap*
> " xmlns:wrpc="*http://www.w3.org/ns/wsdl/rpc*"; xmlns:wsaw="*
> http://www.w3.org/2006/05/addressing/wsdl*"; xmlns:wsdlx="*
> http://www.w3.org/ns/wsdl-extensions*"; xmlns:whttp="*
> http://www.w3.org/ns/wsdl/http*"; targetNamespace="*
> http://ws.apache.org/axis2*";>
>  * * *Wsdl2class*
>  * * 
>  *-*  <
> wsdl2:interface name="*ServiceInterface*">
>  *-*  <
> wsdl2:operation name="*add*" pattern="*http://www.w3.org/ns/wsdl/in-out*";>
>  * * 
>  * * 
>  * * 
>  * * 
>  *-*  <
> wsdl2:binding name="*Wsdl2classSoap11Binding*" interface="*
> tns:ServiceInterface*" type="*http://www.w3.org/ns/wsdl/soap*"wsoap:version
> ="*1.1*">
>  * * 
>  * * 
>  *-*  <
> wsdl2:binding name="*Wsdl2classHttpBinding*" interface="*
> tns:ServiceInterface*" whttp:methodDefault="*POST*" type="*
> http://www.w3.org/ns/wsdl/http*";>
>  * * 
>  * * 
>  *-*  <
> wsdl2:binding name="*Wsdl2classSoap12Binding*" interface="*
> tns:ServiceInterface*" type="*http://www.w3.org/ns/wsdl/soap*"wsoap:version
> ="*1.2*">
>  * * 
>  * * 
>  *-*  <
> wsdl2:service name="*Wsdl2class*" interface="*tns:ServiceInterface*">
>  * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap12Endpoint
> *" />
>  * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint
> *" />
>  * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap11Endpoint
> *" />
>  * * 
>  * * 
>
>
>
>
> So as you can see, I have not one binding and one endpoint as in the
> original WSDL provided
>
> Can you help me to have the same WSDL2.0 after deployement ?
> Thanx a lot.
>
>
>
>



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

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


[axis-user] Https

2008-06-06 Thread BRACHET Maxime
Hi,

I user axis2 deployed in Tomcat 5.5.26.
I have a sample Claculator.jws in Axis2 directory.
I wanted to allow his access only throught https.

I founded something like

   https

to put in the services.xml

But I cant find this services.xml.

I new with Axis and wanted to understand how it works.

Regards,
Maxime.


AXIS2_HOME environment variable

2008-06-06 Thread Adriana Verdejo
Hi, 
 
I have a problem with the AXIS2_HOME environment variable. When I try to run
wsdl2java or anyother I get an error saying that the AXIS2_HOME environment
variable is not defined correctly.
 
I have defined that as AXIS2_HOME = C:\axis2-1.2\axis2-1.2\bin.
 
Do you know what is wrong? Should I copy my axis2-1.2 folder in any other
specific place?
 
Thanks and regards
 
Adriana.


Re: Axis2: How to send a message with JMS asynchronously and get an acknowledgement

2008-06-06 Thread Michele Mazzucco

Ines,

I don't think the JMS spec. allow you to achieve that goal. JMS is  
supposed to be reliable, and messages (i.e. the queue) are stored at  
the JMS provider site, not at the final destination.
About Axis2, there is no difference (apart from the transport  
configuration) whether you use TCP, JMS, HTTP or whatever.




Michele

On 6 Jun 2008, at 09:20, Ines Dannehl wrote:


Hi,

I want to send a SOAP – message with an Axis2  client  
asynchronously via JMS. I’d like to get an acknowlegdement when the  
message is put into the JMS queue.

How can I achieve this?
Please help!

Best regards!
Ines





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



Axis2: How to send a message with JMS asynchronously and get an acknowledgement

2008-06-06 Thread Ines Dannehl
Hi, 

 

I want to send a SOAP - message with an Axis2  client asynchronously via
JMS. I'd like to get an acknowlegdement when the message is put into the
JMS queue.

How can I achieve this?

Please help!

 

Best regards!

Ines

 

 



Re: Axis2 : Socket connection reset

2008-06-06 Thread Michele Mazzucco

Julio,

might it be because of a socket/connection timeout?
A stack trace or something similar would be useful.

Michele

On 5 Jun 2008, at 18:01, juliocest wrote:



Dear users!

I have been a problem in testing web services with Apache Axis2. I am
sending a file with 100MB using SWA (Soap with Attachments). My  
scenario is

described below:

web service client >  eth1 | GATEWAY | eth2 --> web service  
provider


I use a gateway in order to control the bandwidth beteween client and
service provider.

Sometimes a I have a connection reset.

Someone knows this problem?

I hope some help.

Thanks.

Julio

Sao Carlos - SP - Brazil
--
View this message in context: http://www.nabble.com/Axis2-%3A- 
Socket-connection-reset-tp17674945p17674945.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]



Re: WS-I Compliance Assertion: BP2402

2008-06-06 Thread Deepal jayasinghe
When I try to access the WSDL file I can not see rest of the schema 
files. So is there any way that we can get rest of the imported schema 
file as well.


-Deepal

Hi,

Please find attached my wsdl file which failed in WS-I compliance test as
below. I tried to browse around various forums, but could not find the
solution. Could you please help?

Assertion: BP2402
 
Result

failed
Failure Message
The wsdl:binding element does not use a soapbind:binding element as defined
in section "3 SOAP Binding." of the WSDL 1.1 specification.

http://www.nabble.com/file/p17678830/raterankservice.wsdl
raterankservice.wsdl 
  



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



WSDL2.0 endpoint

2008-06-06 Thread Yassou
Hi !

My probleme is that the WSDL2.0 description after deployement in axis2 is
not the same WSDL2.0 description provided in the begining

I provide this:


http://www.w3.org/ns/wsdl"; xmlns:tns="
http://wsdl2package"; xmlns:wsoap="http://www.w3.org/ns/wsdl/soap";
xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"; xmlns:ns1="
http://org.apache.axis2/xsd"; xmlns:wsaw="
http://www.w3.org/2006/05/addressing/wsdl"; xmlns:wsdlx="
http://www.w3.org/ns/wsdl-extensions"; xmlns:ns="http://wsdl2package";
xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:whttp="
http://www.w3.org/ns/wsdl/http";
targetNamespace="http://wsdl2package";>


  Please Type your service description here
 


http://wsdl2package";>



















http://www.w3.org/ns/wsdl/style/rpc";
wrpc:signature="a #in b #in return #return " pattern="
http://www.w3.org/ns/wsdl/in-out";> 




http://www.w3.org/ns/wsdl/http";>http://www.w3.org/ns/wsdl/http%22%3E%3Cwsdl2:operation>ref="tns:add"
whttp:location="Wsdl2class/add" />



http://127.0.0.1:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint"; />




with this service.xml :







http://www.w3.org/ns/wsdl/in-out";
class="org.apache.axis2.axis2userguide.Wsdl2ClassMessageReceiverInOut"/>

org.apache.axis2.axis2userguide.Wsdl2ClassSkeleton
true
true
http://www.w3.org/ns/wsdl/in-out";>
\"\"
urn:addResponse




I execute ant jar.server and I copy build/lib/*.aar file to G:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services
then when I check the WSDL2.0 description axis2 shows
when I write this address in address bar :
http://localhost:8080/axis2/services/Wsdl2class?wsdl2


 *-*  <
wsdl2:description xmlns:wsdl2="*http://www.w3.org/ns/wsdl*"; xmlns:tns="*
http://ws.apache.org/axis2*";
xmlns:wsoap="*http://www.w3.org/ns/wsdl/soap*"xmlns:wrpc
="*http://www.w3.org/ns/wsdl/rpc*"; xmlns:wsaw="*
http://www.w3.org/2006/05/addressing/wsdl*"; xmlns:wsdlx="*
http://www.w3.org/ns/wsdl-extensions*"; xmlns:whttp="*
http://www.w3.org/ns/wsdl/http*"; targetNamespace="*
http://ws.apache.org/axis2*";>
 * * *Wsdl2class*
 * * 
 *-*  <
wsdl2:interface name="*ServiceInterface*">
 *-*  <
wsdl2:operation name="*add*" pattern="*http://www.w3.org/ns/wsdl/in-out*";>
 * * 
 * * 
* * 
* * 
 *-*  http://www.w3.org/ns/wsdl/soap*"; wsoap:version="*1.1*">
 * * 
* * 
 *-*  http://www.w3.org/ns/wsdl/http*";>
 * * 
* * 
 *-*  http://www.w3.org/ns/wsdl/soap*"; wsoap:version="*1.2*">
 * * 
* * 
 *-*  
 * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap12Endpoint
*" />
 * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpEndpoint*
" />
 * * http://192.168.10.144:8080/axis2/services/Wsdl2class.Wsdl2classHttpSoap11Endpoint
*" />
* * 
* * 




So as you can see, I have not one binding and one endpoint as in the
original WSDL provided

Can you help me to have the same WSDL2.0 after deployement ?
Thanx a lot.