Re: [Axis2C] Regarding WSDL2C tool for Axis2C

2007-04-26 Thread Milinda Pathirage

Hi,
To use the WSDL2C tool you have to include all the jars in the Axis2 lib
directory if you download to your class path. Following shell script will do
the all the tasks required.

---
#!/bin/sh

export AXIS2_HOME=/home/axis2java

for f in $AXIS2_HOME/lib/*.jar
do
 AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f
done
export AXIS2_CLASSPATH

echo the classpath $AXIS2_CLASSPATH
java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $*
---

You can use this script with required options to generate code.
If your script is saved as WSDL2C.sh you can use following command to
generate server side skeletons:

sh WSDL2C.sh -ss -sd -d adb -u -f -o server

You have to change the AXIS2_HOME variable to point your axis2 directory. If
you build from the source point it to target directory.

For the Windows platform use the attached batch script.

Thanks
Milinda



On 4/26/07, Yogender Singh01 [EMAIL PROTECTED] wrote:


 Hi all,



Which jar file is to be included in CLASSPATH for this tool?



TIA

yogender


  CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this e-mail
or its contents to any other person and any such actions are unlawful. This
e-mail may contain viruses. Infosys has taken every reasonable precaution to
minimize this risk, but is not liable for any damage you may sustain as a
result of any virus in this e-mail. You should carry out your own virus
checks before opening the e-mail or attachment. Infosys reserves the right
to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored
on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***





--
[EMAIL PROTECTED]
WSO2, Inc: http://www.wso2.com Oxygenating the Web Service Platform
http://www.milindalakmal.wordpress.com


WSDL2C
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

SSL and certificate support

2007-04-26 Thread Greg Denton
 Sorry if this is in some documentation somewhere (I've tried and not
found if). A cursory glance at the rampart code shows a lot of
references to ssl and certificates. Some specific questions:

 

Is SSL supported on server side? Client?

 

Are client side certificates (i.e. server-requested client
authentication via certificates) supported on the server side? Client?

 

Thanks.

 



[Axis2] SSL and certificate support

2007-04-26 Thread Dumindu Pallewela

Please use the correct prefix...

Dumindu.

Greg Denton wrote:
 Sorry if this is in some documentation somewhere (I’ve tried and not 
found if). A cursory glance at the rampart code shows a lot of 
references to ssl and certificates. Some specific questions:


 


Is SSL supported on server side? Client?

 

Are client side certificates (i.e. server-requested client 
authentication via certificates) supported on the server side? Client?


 


Thanks.

 




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



[AXIS2] Module configuration and flows

2007-04-26 Thread Ephemeris Lappis
Hello.

 

I'm trying to make a simple custom module. According to the tutorial from
Axis site, I've added the custom phase in the four flow definitions of the
conf/axis2.xml : in, out, fault in and fault out. Indeed, my handler expects
calls for these four flows.

 

Then, for a testing service, I have declared the module in the services.xml.
So, when my service gets normally invoked, my module handler is called for
flows 1 and 2: in and out.

 

But, when other services are called, my handler is also called on flow 2
(out), while no module is configured for these services.

 

Any explanation about what services and flows are taken into account for
module invocation ? Did I make something bad ?

 

Thanks.

 

--

Ephemeris Lappis

 

 



Axis2/Java Cannot build samples

2007-04-26 Thread VijesH

When I try to build Axis2/Java samples from source using ant, I get this
error

___
/usr/bin/build-classpath: error: could not find jaxp_parser_impl Java
extension for this JVM
/usr/bin/build-classpath: error: could not find xml-commons-apis Java
extension for this JVM
/usr/bin/build-classpath: error: All specified jars were not found
Buildfile: build.xml

compile:
   [javac] Compiling 3 source files to /home/kvijesh/axis2_java/axis2-1.1.1
/src/modules/samples/yahoorestsearch/build/classes

BUILD FAILED
/home/kvijesh/axis2_java/axis2-1.1.1/src/modules/samples/yahoorestsearch/build.xml:17:
/home/kvijesh/axis2_java/axis2-1.1.1/src/modules/lib not found.

Total time: 0 seconds
___
I use jdk 1.4.2_11
Ant version 1.6.2
Any help on this regard?

Thanks,
Vijesh


Re: wsdl2java: UnmatchedTypeException: No type was mapped

2007-04-26 Thread Amila Suriarachchi

What is the axis2 version you use? I tried with the axis2-1.2-RC2 and it
looks good.

On 4/25/07, Stefan Neumann [EMAIL PROTECTED] wrote:


Hi all,

when I run wsdl2java, it throws an UnmatchedTypeException so no java
sources are generated.

Can somebody help me what the problem is? You can find below the command
call, the exception, the wsdl and the xsd definition.

Thanks in advance

Stefan


This is the output from ant with the following exception:

 [java] 'org.apache.axis2.wsdl.WSDL2Java'
 [java] '-d'
 [java] 'xmlbeans'
 [java] '-uri'
 [java]
'/home/stefan/projects/ark_ibe/etc/webservice/UserService.wsdl'
 [java] '-o'
 [java] '/home/stefan/projects/ark_ibe/gen-src/userWebservice'
 [java] '-p'
 [java] 'com.freiheit.ark.user.integration.webservice.server.generated
'
 [java] '-ns2p'
 [java]
'
http://freiheit.com/userTypes=com.freiheit.ark.user.integration.webservice.server.generated.model,http://freiheit.com/user=com.freiheit.ark.user.integration.webservice.server.generated.model,http://freiheit.com/user/wsdl=com.freiheit.ark.user.integration.webservice.server.generated
'
 [java] '-ssi'
 [java] '-sd'
 [java] '-ss'
 [java] Retrieving schema at 'UserTypes.xsd', relative to
'file:/home/stefan/projects/ark_ibe/etc/webservice/'.
 [java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.addressing.wsdl.WSDL11ActionHelper).
 [java] log4j:WARN Please initialize the log4j system properly.
 [java] Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped to the name createUserRequest with namespace
http://freiheit.com/user/types/
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
CodeGenerationEngine.java:224)
 [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 [java] Caused by:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped to the name createUserRequest with namespace
http://freiheit.com/user/types/
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton
(AxisServiceBasedMultiLanguageEmitter.java:961)
 [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
CodeGenerationEngine.java:206)
 [java] ... 2 more
 [java] Caused by:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped to the name createUserRequest with namespace
http://freiheit.com/user/types/
 [java] at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(
TypeMappingAdapter.java:73)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement
(AxisServiceBasedMultiLanguageEmitter.java:2099)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement
(AxisServiceBasedMultiLanguageEmitter.java:1935)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement
(AxisServiceBasedMultiLanguageEmitter.java:1701)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations
(AxisServiceBasedMultiLanguageEmitter.java:1623)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface
(AxisServiceBasedMultiLanguageEmitter.java:1586)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface
(AxisServiceBasedMultiLanguageEmitter.java:1515)
 [java] at

org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton
(AxisServiceBasedMultiLanguageEmitter.java:922)
 [java] ... 3 more
 [java] Java Result: 1



WSDL:



definitions xmlns:ut=http://freiheit.com/user/types/;
targetNamespace=http://freiheit.com/user/service/;
xmlns:tns=http://freiheit.com/user/service/;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
types
xsd:schema
xsd:import schemaLocation=UserTypes.xsd
namespace=http://freiheit.com/user/types/;
/
/xsd:schema
/types

message name=CreateUserRequest
part name=CreateUserRequest
element=ut:createUserRequest /
/message

message name=CreateUserResponse
part name=CreateUserResponse
element=ut:createUserResponse /
/message

portType 

Re: Axis2/Java Cannot build samples

2007-04-26 Thread Amila Suriarachchi

have you set the AXIS2_HOME environmet variable correctly?

On 4/26/07, VijesH [EMAIL PROTECTED] wrote:


When I try to build Axis2/Java samples from source using ant, I get this
error

___
/usr/bin/build-classpath: error: could not find jaxp_parser_impl Java
extension for this JVM
/usr/bin/build-classpath: error: could not find xml-commons-apis Java
extension for this JVM
/usr/bin/build-classpath: error: All specified jars were not found
Buildfile: build.xml

compile:
[javac] Compiling 3 source files to /home/kvijesh/axis2_java/axis2-
1.1.1/src/modules/samples/yahoorestsearch/build/classes

BUILD FAILED
/home/kvijesh/axis2_java/axis2-1.1.1/src/modules/samples/yahoorestsearch/build.xml:17:
/home/kvijesh/axis2_java/axis2-1.1.1/src/modules/lib not found.

Total time: 0 seconds
___
I use jdk 1.4.2_11
Ant version 1.6.2
Any help on this regard?

Thanks,
Vijesh





--
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl2java: UnmatchedTypeException: No type was mapped

2007-04-26 Thread Stefan Neumann
Thanks for testing.

I use axis2-1.1.1 . So this must be a bug and already fixed. I will try
to switch to the RC.

Thanks

Amila Suriarachchi wrote:
 What is the axis2 version you use? I tried with the axis2-1.2-RC2 and it
 looks good.
 
 On 4/25/07, Stefan Neumann [EMAIL PROTECTED] wrote:

 Hi all,

 when I run wsdl2java, it throws an UnmatchedTypeException so no java
 sources are generated.

 Can somebody help me what the problem is? You can find below the command
 call, the exception, the wsdl and the xsd definition.

 Thanks in advance

 Stefan


 This is the output from ant with the following exception:

  [java] 'org.apache.axis2.wsdl.WSDL2Java'
  [java] '-d'
  [java] 'xmlbeans'
  [java] '-uri'
  [java]
 '/home/stefan/projects/ark_ibe/etc/webservice/UserService.wsdl'
  [java] '-o'
  [java] '/home/stefan/projects/ark_ibe/gen-src/userWebservice'
  [java] '-p'
  [java]
 'com.freiheit.ark.user.integration.webservice.server.generated
 '
  [java] '-ns2p'
  [java]
 '
 http://freiheit.com/userTypes=com.freiheit.ark.user.integration.webservice.server.generated.model,http://freiheit.com/user=com.freiheit.ark.user.integration.webservice.server.generated.model,http://freiheit.com/user/wsdl=com.freiheit.ark.user.integration.webservice.server.generated

 '
  [java] '-ssi'
  [java] '-sd'
  [java] '-ss'
  [java] Retrieving schema at 'UserTypes.xsd', relative to
 'file:/home/stefan/projects/ark_ibe/etc/webservice/'.
  [java] log4j:WARN No appenders could be found for logger
 (org.apache.axis2.addressing.wsdl.WSDL11ActionHelper).
  [java] log4j:WARN Please initialize the log4j system properly.
  [java] Exception in thread main
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
 mapped to the name createUserRequest with namespace
 http://freiheit.com/user/types/
  [java] at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
 CodeGenerationEngine.java:224)
  [java] at
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
  [java] at
 org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
  [java] Caused by:
 org.apache.axis2.wsdl.codegen.CodeGenerationException:
 org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
 mapped to the name createUserRequest with namespace
 http://freiheit.com/user/types/
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton

 (AxisServiceBasedMultiLanguageEmitter.java:961)
  [java] at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
 CodeGenerationEngine.java:206)
  [java] ... 2 more
  [java] Caused by:
 org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
 mapped to the name createUserRequest with namespace
 http://freiheit.com/user/types/
  [java] at
 org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(
 TypeMappingAdapter.java:73)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement

 (AxisServiceBasedMultiLanguageEmitter.java:2099)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement

 (AxisServiceBasedMultiLanguageEmitter.java:1935)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement

 (AxisServiceBasedMultiLanguageEmitter.java:1701)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations

 (AxisServiceBasedMultiLanguageEmitter.java:1623)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface

 (AxisServiceBasedMultiLanguageEmitter.java:1586)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface

 (AxisServiceBasedMultiLanguageEmitter.java:1515)
  [java] at

 org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton

 (AxisServiceBasedMultiLanguageEmitter.java:922)
  [java] ... 3 more
  [java] Java Result: 1



 WSDL:



 definitions xmlns:ut=http://freiheit.com/user/types/;
 targetNamespace=http://freiheit.com/user/service/;
 xmlns:tns=http://freiheit.com/user/service/;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns=http://schemas.xmlsoap.org/wsdl/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 types
 xsd:schema
 xsd:import schemaLocation=UserTypes.xsd

 namespace=http://freiheit.com/user/types/;
 /
 /xsd:schema
 /types

 message 

[Axis2] Get access to ServletContext

2007-04-26 Thread Jochen Zink
Hello,

I use Client Certiicate authentication. Afeter authentication the client 
certificate is placed in the SessionContext from the Servlet. For authorisation 
I need access to this certificate. Is any possiblity to get access of the 
Servlet/SessionContext?

Thanks!

Regards!
Jochen Zink
___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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



Re: Invalid Content Type Field in the Mime Message

2007-04-26 Thread Thilina Gunarathne

Please post the message snapshots to see what's going wrong...

You can use tcpmon[1] to capture the messages..

Thanks,
Thilina
[1]http://ws.apache.org/commons/tcpmon

On 4/26/07, Jennifer Yang [EMAIL PROTECTED] wrote:

Hi,

I'm integrating with a thirdparty client which sends two attachments.
I am getting the folllowing error:

2007-04-25 00:43:10,625 DEBUG
org.apache.axis2.transport.http.AxisServlet -
org.apache.axis2.AxisFault: Invalid Content Type Field in the Mi
me Message; nested exception is:
  org.apache.axiom.om.OMException: Invalid Content Type Field in
the Mime Message


I saw the following post, but didn't see any resolution.
http://marc.info/?l=axis-userm=114707741728856w=2

Any idea?

I wrote a test client that sends SWA that is similar to
samples\soapwithattachments.  However, I couldn't figure out how to
set the content type to try sending different type.

Thanks in advance,
Jennifer

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





--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: [Axis2] Get access to ServletContext

2007-04-26 Thread Deepal Jayasinghe
Hi Jochen,

Try the following,
http://wso2.org/library/480

Thanks
Deepal

Hello,

I use Client Certiicate authentication. Afeter authentication the client 
certificate is placed in the SessionContext from the Servlet. For 
authorisation I need access to this certificate. Is any possiblity to get 
access of the Servlet/SessionContext?

Thanks!

Regards!
Jochen Zink
___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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



  




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



Re: [axis2 ]soap session scope does not work

2007-04-26 Thread Nencho Lupanov

Hi Sanjesh,

yes, i have:

client.engageModule(new QName(addressing));

in my client - you can take a look at this at Client.java that i attached in
my previous post.
Thanks,

Nencho


2007/4/25, Sanjesh Pathak [EMAIL PROTECTED]:


 Hi Nencho,



Did you engage addressing module on the client side? This is required for
soap session based communication.



Sanjesh


 --

*From:* Nencho Lupanov [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, April 25, 2007 11:14 AM
*To:* [EMAIL PROTECTED]; axis-user@ws.apache.org
*Subject:* [axis2 ]soap session scope does not work



Hi All,



I read this axis2 session management article:

http://www.developer.com/java/web/article.php/3620661



Basically, it says that i can define my services being of a soap session
scope,

then i have to put this option on my client:

*options.setManageSession(true);*


Therefore it is expected for the service to include
wsa:ReferenceParameters
element as an session identifier in the soap envelope.



I tested this and it does not work - axis2 does not put that element, in
order

to be used as session identifier.Am i missing something or this is a bug?



Thanks,

Nencho







Re: [axis2 ]soap session scope does not work

2007-04-26 Thread Nencho Lupanov

Hi Anil,

Thanks but this is for this but it is
about transport session scope and i need soap session scope,
where ws addressing come to play and sends an identifier(pretty much like a
cookie)
that is passed fforth and back.

Thanks,
Nencho


2007/4/25, Anil Chukkapalli [EMAIL PROTECTED]:


You can look at the thread Axis2 Manage Session Cookie Manually

On 4/25/07, Paul Fremantle [EMAIL PROTECTED]  wrote:

 Nencho

 Think of this as a cookie. The client has to be enabled to respond
 with cookies, but that doesn't create the cookie in the first place.
 To make this work you need to set

 service scope=soapsession

 in services.xml

 Now the server will set the ref params in the reply-to header. If you
 have setManageSession(true) now the client will send them back.

 Paul

 On 4/25/07, Nencho Lupanov [EMAIL PROTECTED] wrote:
  Hi All,
 
  I read this axis2 session management article:
  http://www.developer.com/java/web/article.php/3620661
 
  Basically, it says that i can define my services being of a soap
 session
  scope,
  then i have to put this option on my client:
  options.setManageSession(true);
 
  Therefore it is expected for the service to include
  wsa:ReferenceParameters
  element as an session identifier in the soap envelope.
 
  I tested this and it does not work - axis2 does not put that element,
 in
  order
  to be used as session identifier.Am i missing something or this is a
 bug?
 
  Thanks,
  Nencho
 
 


 --
 Paul Fremantle
 VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

 http://bloglines.com/blog/paulfremantle
 [EMAIL PROTECTED]

 Oxygenating the Web Service Platform, www.wso2.com

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





Re: Axis2 xmlbeans http transport error 302 found

2007-04-26 Thread Markus F.

Paul

I guess I can't monitor a http*s* connection with tcpmon?
I mean I could but I would't see anything readable...
Unfortunately my service is only available over TLS, so I will not be able
to figure out whats going over the line that easy.

Is there no other way of debbuging?

What I've also tried is to access the URL over the browser, after
authentication I get an SOAP error message saying something about incomplete
request - So the URL must be correct, right?

What I did was trying out XFire, again with no success, but this time it
seemed to be a binding issue with namespaces and JAXB which is the only
option when autogenerating a client with XFire, as I figured out. The error
message said something about an unknown method even though the Class was
there. I didnot understand what the real problem was, because the error
message was not very helpful to me.
 (org.codehaus.xfire.fault.XFireFault: Method 'Payment' not implemented:
method name or namespace not recognized
at
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
  )

Anyway, asking questions about xfire doesnot belong here.
What confuses about my axis2 variant, is that it talks about redirecting,
and xfire does not.

One of my intents why i chose to use a soap based communication with an
already working server implementation (there are users successfully using
it, even though maybe not based on Java but C#) was that it should be easy.
Generate a client and use it.

But it seems to me, that the S in SOAP doesnot really mean simple, at least
for me :(

Markus



pzfreo wrote:
 
 Markus
 
 I think you need to use tcpmon to trace the HTTP flow. It seems like
 the server doesn't likethe URI that you are sending the request
 to. Its sending back an HTTP 302 Found code which is basically a
 redirect. I guess Axis2 should probably follow that redirect, but at
 the same time the server shouldn't be publishing a URI in the WSDL
 that ends up with a redirect.
 
 If you trace it you can set the stub to go to the real URI and all
 should be fine.
 
 Paul
 
 On 4/25/07, Markus F. [EMAIL PROTECTED] wrote:

 Hello list,
 this is my first contact with axis2. I've to implemtent a client using a
 3rd
 party service over https and username/passwd authentication.
 I've been spending many hours on this and couldnot find any similar
 errors
 on the list or even on the web
 I autogenerated the client with following command.

 wsdl2java.bat -o src\generated -s -p com.someservice.test -uri
 src\wsdl\some.wsdl -d xmlbeans

 The wsdl makes use of complex type extension, so I'm using xmlbeans for
 binding.
 I get the following error: org.apache.axis2.AxisFault: HTTP Transport
 error
 : '302' - 'Found'
 It must be something basic, what I'm missing here, because I get the same
 error when not providing the credentials.

 Any hints?
 Thanks a lot.
 Markus


 Here's the stack trace:

 25.04.2007 11:17:54 org.apache.commons.httpclient.HttpMethodDirector
 isRedirectNeeded
 INFO: Redirect requested but followRedirects is disabled
 org.apache.axis2.AxisFault: HTTP Transport error : '302' - 'Found';
 nested
 exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'; nested
 exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'; nested
 exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
 at
 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
 ...
 Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'; nested exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
 ... 5 more
 Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'
 at
 org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
 ... 6 more
 --
 View this message in context:
 http://www.nabble.com/Axis2-xmlbeans-http-transport-error-302-found-tf3644416.html#a10177848
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 
 -- 
 Paul 

soapsession with axis2 and vb.net client

2007-04-26 Thread Stefan Egli

Hi

I'm new to web services and I have some question concerning interoperability
and session-handling with axis2 and .NET.

I'm using axis2 1.1.1 on server-side for my basic web service. I tried to
invoke this service with my client written in VB.NET (using proxy classes
generated with wsdl.exe). It worked fine if I use only the application or
request scope. But I need to provide a session-handling for this service.

So I first wrote a java client which uses WS-Addressing for
session-handling. This also worked fine with my web service.

Now I need to enable soap session for my .NET client. Is there any know
approach using soapsession with a .NET client, does anyone made some
experience with this kind of problem? Does someone know where to find
documents, tutorials … concerning this problem?

I'll appreciate any help.

Thanks

stefan


Generating fixed value for complex type element

2007-04-26 Thread Kacper Mosienski

Hi all,
my name is Kacper Mosienski. I'm using complex type messages in services 
running on Axis engine. What I'm trying to achieve is to make one of 
parameters of this message to have fixed value.

In the wsdl file the message definition would look as follow:

complexType name=ExampleMessage
   sequence
element name=dialogID nillable=true type=xsd:string/
element name=name nillable=true type=xsd:string 
fixed=example/

   /sequence
/complexType

The parameter 'name' would have fixed - example - value.
The question is:  is it possible to generate servig-config.wsdd 
descriptor that would have this information? If so, how would it look like?


Do I have to throw RemoteException in service operation method when 
examlpeMessage has other 'name' parameter?


Thank you in advance
Cheers


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



Re: Generating fixed value for complex type element

2007-04-26 Thread Kacper Mosienski

Kacper Mosienski wrote:


Hi all,
my name is Kacper Mosienski. I'm using complex type messages in 
services running on Axis engine. What I'm trying to achieve is to make 
one of parameters of this message to have fixed value.

In the wsdl file the message definition would look as follow:

complexType name=ExampleMessage
sequence
element name=dialogID nillable=true type=xsd:string/
element name=name nillable=true type=xsd:string fixed=example/
/sequence
/complexType

The parameter 'name' would have fixed - example - value.
The question is: is it possible to generate servig-config.wsdd 
descriptor that would have this information? If so, how would it look 
like?


Do I have to throw RemoteException in service operation method when 
examlpeMessage has other 'name' parameter?


Thank you in advance
Cheers


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




--
_

Kacper Mosienski
System Engineer
Ericpol Telecom sp. z o.o.
Sienkiewicza 85/87, 90-057 Lodz, Poland
e-mail: [EMAIL PROTECTED]
tel: +48 42 635 1949
http://www.ericpol.pl/

Tax Identification Number (NIP): 727-012-56-20,
National Court Register Number (KRS): 002804, District Court for
Łódź-Śródmieście, 20th Division of the National Court Register
Share Capital: 500 000 PLN 
_



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



Re: [axis2 ]soap session scope does not work

2007-04-26 Thread Nencho Lupanov

Hi Deepal,

I checked the test and yes i was able to run it successfull.
anyway, when i try to put this in my running enviroment i get this strange
error:

[java] Exception in thread main org.apache.axis2.AxisFault: Unable to
fin
d corresponding context for the serviceGroupId:
urn:uuid:97198317A8B28D4CDF11775
98325288

In services.xml on the server side i have the

scope=soapsession attribute

At the client side I have the following code

*options.setManageSession(true);   *

*...*

client.engageModule(new QName(addressing));

Is there anything else to configure?

Thanks,

Nencho

2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED]:


Hi Nencho ,

Axis2 soap session to be work , you need to engage addressing in both
the side.

It is working , there is a test case in the build so we are testing that
daily.
org.apache.axis2.engine.ServiceGroupContextTest

Thanks
Deepal

 Hi All,

 I read this axis2 session management article:
 http://www.developer.com/java/web/article.php/3620661

 Basically, it says that i can define my services being of a soap
 session scope,
 then i have to put this option on my client:
 *options.setManageSession(true);*

 Therefore it is expected for the service to include
 wsa:ReferenceParameters
 element as an session identifier in the soap envelope.

 I tested this and it does not work - axis2 does not put that element,
 in order
 to be used as session identifier.Am i missing something or this is a
bug?

 Thanks,
 Nencho




--
Thanks,
Deepal

The highest tower is built one brick at a time



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




Re: [axis2 ]soap session scope does not work

2007-04-26 Thread Nencho Lupanov

Hi Deepal,

what about this jira issue:

https://issues.apache.org/jira/browse/AXIS2-2561

Does it means that we need to wait the issue to be closed in order to use
the soap session scope?

Thanks,
Nencho


2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED]:


Hi Nencho ,

Axis2 soap session to be work , you need to engage addressing in both
the side.

It is working , there is a test case in the build so we are testing that
daily.
org.apache.axis2.engine.ServiceGroupContextTest

Thanks
Deepal

 Hi All,

 I read this axis2 session management article:
 http://www.developer.com/java/web/article.php/3620661

 Basically, it says that i can define my services being of a soap
 session scope,
 then i have to put this option on my client:
 *options.setManageSession(true);*

 Therefore it is expected for the service to include
 wsa:ReferenceParameters
 element as an session identifier in the soap envelope.

 I tested this and it does not work - axis2 does not put that element,
 in order
 to be used as session identifier.Am i missing something or this is a
bug?

 Thanks,
 Nencho




--
Thanks,
Deepal

The highest tower is built one brick at a time



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




Re: Generating fixed value for complex type element

2007-04-26 Thread Martin Gainty

Kacper
hand-crafting (Axis1 specific) WSDD for Axis2 environment is no longer 
necessary


You can now incorporate your complexType into your service's wsdl
then you can declare part of the message to be that type (as you see in the 
following example)


?xml version=1.0 encoding=UTF-8?
definitions xmlns=http://schemas.xmlsoap.org/wsdl/; 
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; 
xmlns:xs=http://www.w3.org/2001/XMLSchema; 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; 
xmlns:types=http://www.example.com/types; xmlns:y=http://www.example.com; 
targetNamespace=http://www.example.com;

types/
types
 xs:schema targetNamespace=http://www.example.com/types;
  xs:complexType name=myComplexType
   xs:sequence
xs:element name=myElt type=xs:string/
   /xs:sequence
  /xs:complexType
 /xs:schema
/types
message name=requestMessage
 part name=part1 type=xs:string/
 part name=part2 type=xs:int/
 part name=part3 type=types:myComplexType/
/message

HTH/
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Kacper Mosienski [EMAIL PROTECTED]

To: axis-user@ws.apache.org
Sent: Thursday, April 26, 2007 10:38 AM
Subject: Generating fixed value for complex type element



Hi all,
my name is Kacper Mosienski. I'm using complex type messages in services 
running on Axis engine. What I'm trying to achieve is to make one of 
parameters of this message to have fixed value.

In the wsdl file the message definition would look as follow:

complexType name=ExampleMessage
   sequence
element name=dialogID nillable=true type=xsd:string/
element name=name nillable=true type=xsd:string 
fixed=example/

   /sequence
/complexType

The parameter 'name' would have fixed - example - value.
The question is:  is it possible to generate servig-config.wsdd descriptor 
that would have this information? If so, how would it look like?


Do I have to throw RemoteException in service operation method when 
examlpeMessage has other 'name' parameter?


Thank you in advance
Cheers


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





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



Re: [axis2 ]soap session scope does not work

2007-04-26 Thread Nencho Lupanov

Hi Sanjesh,

I tried with axis1.1.1 and it works.
It fails with axis 1.2.

thaks,
Nencho


2007/4/26, Sanjesh Pathak [EMAIL PROTECTED]:


 Hi Nencho,



I am using Axis2 version 1.1.1 and it is working fine in my local
environment here for session scope. What version of Axis2 are you using?



I am hosting a sample service that uses session scope accessible at this
URL: http://82.165.253.192:8081/axis2/services/SessionService



This service takes an OMElement as the parameter and echoes it back. Can
you test your client against this service?



Sanjesh


 --

*From:* Nencho Lupanov [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, April 26, 2007 9:53 AM
*To:* axis-user@ws.apache.org
*Subject:* Re: [axis2 ]soap session scope does not work



Hi Deepal,



what about this jira issue:



https://issues.apache.org/jira/browse/AXIS2-2561



Does it means that we need to wait the issue to be closed in order to use
the soap session scope?



Thanks,

Nencho



2007/4/26, Deepal Jayasinghe [EMAIL PROTECTED]:

Hi Nencho ,

Axis2 soap session to be work , you need to engage addressing in both
the side.

It is working , there is a test case in the build so we are testing that
daily.
org.apache.axis2.engine.ServiceGroupContextTest

Thanks
Deepal

 Hi All,

 I read this axis2 session management article:
 http://www.developer.com/java/web/article.php/3620661

 Basically, it says that i can define my services being of a soap
 session scope,
 then i have to put this option on my client:
 *options.setManageSession(true);*

 Therefore it is expected for the service to include
 wsa:ReferenceParameters
 element as an session identifier in the soap envelope.

 I tested this and it does not work - axis2 does not put that element,
 in order
 to be used as session identifier.Am i missing something or this is a
bug?

 Thanks,
 Nencho




--
Thanks,
Deepal

The highest tower is built one brick at a time



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





Re: soapsession with axis2 and vb.net client

2007-04-26 Thread Anil Chukkapalli

Stefan

I suggest you look at this thread **Axis2 Manage Session Cookie Manually
in the mailing list.

Anil

On 4/26/07, Stefan Egli [EMAIL PROTECTED] wrote:


Hi

I'm new to web services and I have some question concerning
interoperability and session-handling with axis2 and .NET.

I'm using axis2 1.1.1 on server-side for my basic web service. I tried to
invoke this service with my client written in VB.NET (using proxy classes
generated with wsdl.exe). It worked fine if I use only the application or
request scope. But I need to provide a session-handling for this service.

So I first wrote a java client which uses WS-Addressing for
session-handling. This also worked fine with my web service.

Now I need to enable soap session for my .NET client. Is there any know
approach using soapsession with a .NET client, does anyone made some
experience with this kind of problem? Does someone know where to find
documents, tutorials … concerning this problem?

I'll appreciate any help.

Thanks

stefan



Re: Axis2 xmlbeans http transport error 302 found

2007-04-26 Thread Paul Fremantle

Markus

Is this a publicly available server that we can try?

Paul

On 4/26/07, Markus F. [EMAIL PROTECTED] wrote:


Paul

I guess I can't monitor a http*s* connection with tcpmon?
I mean I could but I would't see anything readable...
Unfortunately my service is only available over TLS, so I will not be able
to figure out whats going over the line that easy.

Is there no other way of debbuging?

What I've also tried is to access the URL over the browser, after
authentication I get an SOAP error message saying something about incomplete
request - So the URL must be correct, right?

What I did was trying out XFire, again with no success, but this time it
seemed to be a binding issue with namespaces and JAXB which is the only
option when autogenerating a client with XFire, as I figured out. The error
message said something about an unknown method even though the Class was
there. I didnot understand what the real problem was, because the error
message was not very helpful to me.
 (org.codehaus.xfire.fault.XFireFault: Method 'Payment' not implemented:
method name or namespace not recognized
at
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
  )

Anyway, asking questions about xfire doesnot belong here.
What confuses about my axis2 variant, is that it talks about redirecting,
and xfire does not.

One of my intents why i chose to use a soap based communication with an
already working server implementation (there are users successfully using
it, even though maybe not based on Java but C#) was that it should be easy.
Generate a client and use it.

But it seems to me, that the S in SOAP doesnot really mean simple, at least
for me :(

Markus



pzfreo wrote:

 Markus

 I think you need to use tcpmon to trace the HTTP flow. It seems like
 the server doesn't likethe URI that you are sending the request
 to. Its sending back an HTTP 302 Found code which is basically a
 redirect. I guess Axis2 should probably follow that redirect, but at
 the same time the server shouldn't be publishing a URI in the WSDL
 that ends up with a redirect.

 If you trace it you can set the stub to go to the real URI and all
 should be fine.

 Paul

 On 4/25/07, Markus F. [EMAIL PROTECTED] wrote:

 Hello list,
 this is my first contact with axis2. I've to implemtent a client using a
 3rd
 party service over https and username/passwd authentication.
 I've been spending many hours on this and couldnot find any similar
 errors
 on the list or even on the web
 I autogenerated the client with following command.

 wsdl2java.bat -o src\generated -s -p com.someservice.test -uri
 src\wsdl\some.wsdl -d xmlbeans

 The wsdl makes use of complex type extension, so I'm using xmlbeans for
 binding.
 I get the following error: org.apache.axis2.AxisFault: HTTP Transport
 error
 : '302' - 'Found'
 It must be something basic, what I'm missing here, because I get the same
 error when not providing the credentials.

 Any hints?
 Thanks a lot.
 Markus


 Here's the stack trace:

 25.04.2007 11:17:54 org.apache.commons.httpclient.HttpMethodDirector
 isRedirectNeeded
 INFO: Redirect requested but followRedirects is disabled
 org.apache.axis2.AxisFault: HTTP Transport error : '302' - 'Found';
 nested
 exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'; nested
 exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'; nested
 exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'
 at
 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
 at
 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
 at
 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
 ...
 Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'; nested exception is:
 org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'
 at
 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
 at
 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
 ... 5 more
 Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '302' -
 'Found'
 at
 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
 at
 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
 ... 6 more
 --
 View this message in context:
 
http://www.nabble.com/Axis2-xmlbeans-http-transport-error-302-found-tf3644416.html#a10177848
 Sent from the Axis - User mailing list archive at Nabble.com.


 

[Axis2] How to get result after calling OperationClient.execute(true)

2007-04-26 Thread Anil Chukkapalli

hi

I am using Axis2 OperationClient API with MTOM. I got the result back as i
can see using TCPMon is there a standard way to access the result after we
get the message context and the SOAP envelope.

Thanks
Anil


WORKAROUND to BindException in axis client

2007-04-26 Thread david2

In the bug report (AXIS2-2593) Michele's comments point out a link to a link
to a link that identified a workaround.

To clarify, this is a workaround to the AxisFault caused by the
BindException Address already in use: connect generated when you very
rapidly send messages to a web service (usually the exception occurs at
about 4000 messages).

The problem is caused when the MaxUserPort is set too low (Windows XP
default is 5000) and TcpTimedWaitDelay is set too high (Windows XP default
is 120 seconds).  Note that similar errors occur on UNIX platforms for
similar reasons (running out of port numbers that are slow to be released by
the OS).

I summarized the workaround to in the JIRA bug report AXIS2-2593:

https://issues.apache.org/jira/browse/AXIS2-2593

The IBM site containing a detailed description of the workaround is located
at:

http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/index.jsp?topic=/com.ibm.eclient.doc/trs40019.htm
-- 
View this message in context: 
http://www.nabble.com/BindException-in-axis-client-tf3632035.html#a10206377
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: axis2 in tomcat, java.net.BindException: Address already in use:

2007-04-26 Thread david2

Here is a web site Michele pointed me to addressing this OS limitation and
workarounds for Windows, AIX,  Solaris:

http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/index.jsp?topic=/com.ibm.eclient.doc/trs40019.htm

On Windows XP, I used TcpTimedWaitDelay=30 and MaxUserPort=65535

-David
-- 
View this message in context: 
http://www.nabble.com/axis2-in-tomcat%2C-java.net.BindException%3A-Address-already-in-use%3A-tf3271278.html#a10206571
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: To many open connections

2007-04-26 Thread david2

Here is a web site Michele pointed me to addressing this OS limitation and
workarounds for Windows, AIX,  Solaris:

http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/index.jsp?topic=/com.ibm.eclient.doc/trs40019.htm

On Windows XP, I used TcpTimedWaitDelay=30 and MaxUserPort=65535

-David
-- 
View this message in context: 
http://www.nabble.com/To-many-open-connections-tf3258240.html#a10206583
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: Invalid Content Type Field in the Mime Message

2007-04-26 Thread Jennifer Yang

Thilina,

Here are the request and response.

Request:==
POST /broker/services/mm7 HTTP/1.0
Host: 127.0.0.1:
Content-Type: multipart/related;
boundary=NextPart_000_0125_01C19839.7237929064; type=text/xml;
start=0704191919160100
Content-Length: 2215
SOAPAction: 

--NextPart_000_0125_01C19839.7237929064
Content-Type: text/xml; charset=utf-8
Content-ID: 0704191919160100

?xml version=1.0 encoding=utf-8 ?
env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
env:Header
mm7:TransactionID
xmlns:mm7=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0;
env:mustUnderstand=1
35556
/mm7:TransactionID
/env:Header
env:Body
DeliverReq 
xmlns=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0;
   MM7Version5.3.0/MM7Version
   MMSRelayServerID209.86.124.29/MMSRelayServerID
   Sender
Number3109108747/Number
/Sender
Recipients
To
ShortCode102/ShortCode
/To
   /Recipients
   LinkedID/LinkedID
TimeStamp1177035556/TimeStamp
PriorityNormal/Priority
Subjectjyy/Subject
   Content href=cid:070419191900/
/DeliverReq
/env:Body
/env:Envelope

--NextPart_000_0125_01C19839.7237929064
Content-Type: application/smil
Content-ID: 070419191900

smil xmlns=http://www.w3.org/2001/SMIL20/Language;
  head
   meta name=mms_skt_version content=4.0 /
layout
 root-layout background-color=#FF width=220 height=198 
/
 region id=text1 top=0 left=0 width=220 height=198
z-index=0 fit=hidden /
   /layout

 /head
 body
par repeatCount=indefinite 


text id=mc_textId repeatCount=indefinite 
region=text1
src=0704191919101100  begin=0 dur=10 
param name=style value=normal valuetype=data 
/param
/text
/par
 /body
/smil

--NextPart_000_0125_01C19839.7237929064
Content-Type: text/x-sktxt
Content-ID: 0704191919101100

?xml version=2.0 encoding=ksc5601?
xt xmlns=http://www.w3.org/1999/xhtml;
head
style type =text/css
!--
   color1{color:  0,   1,   0;}

 --
/style
/head
body bgcolor=#FF
  div
   color1jyy/color1
  /div
/body
/xt

--NextPart_000_0125_01C19839.7237929064--

Response:==
HTTP/1.1 500 Internal Server Error
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_B2A7AB4D72019EFB341177619516424;
type=text/xml;
start=0.urn:uuid:[EMAIL PROTECTED];charset=UTF-8
Date: Thu, 26 Apr 2007 20:31:56 GMT
Server: Apache-Coyote/1.1
Connection: close

--MIMEBoundaryurn_uuid_B2A7AB4D72019EFB341177619516424
content-type: text/xml; charset=UTF-8
content-transfer-encoding: 8bit
content-id: 0.urn:uuid:[EMAIL PROTECTED]

?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:wsa=http://www.w3.org/2005/08/addressing;
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Headerwsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/none/wsa:Address/wsa:ReplyTowsa:MessageIDurn:uuid:63FF5319E63FE7D3691177619516377/wsa:MessageIDwsa:Actionhttp://www.w3.org/2005/08/addressing/soap/fault/wsa:Action/soapenv:Headersoapenv:Bodysoapenv:Faultfaultcode/faultcodefaultstringInvalid
Content Type Field in the Mime Message/faultstringdetail
//soapenv:Fault/soapenv:Body/soapenv:Envelope
--MIMEBoundaryurn_uuid_B2A7AB4D72019EFB341177619516424--


Do I need to register content types?  The log doesn't show which
content type that is invalid.  Wish the errors were more descriptive.
Is there more debug log I can turn on?

Thanks in advance,
--Jennifer

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



Re: Problems using Axis on i5/iSeries/AS400/whatever they call it these days

2007-04-26 Thread Jon Brisbin
Thanks for this info. It turns out that another copy of axis.jar (from
an older project) was in the /QIBM/UserData/Java400/ext directory, so
the classloading was all wonky, just as you describe.

Once I removed the axis.jar file from there, I was able to fire Axis up
in Tomcat on the i5. Runs like a champ.

Jon Brisbin
NPC International, Inc.

Spies, Brennan wrote:
 Jon,

 NoClassDefFoundError is a linkage error. Probably because the ClassLoader
 that loaded org.apache.catalina.startup.HostConfig is unable to see the
 ClassLoader that loaded HttpSessionListener (i.e. it was loaded by a child or
 sibling ClassLoader). AFAIK, Tomcat does not expose its classloading tree via
 JMX, so you may have to do some investigative work using logging calls like
 (retrieving different ClassLoaders)...
  

 ClassLoader cl = Class.forName(some.test.class).getClassLoader();

 Class.forName(javax.servlet.http.HttpSessionListener, false,
 cl).getProtectionDomain().getCodeSource()
   .getLocation();


 My guess (?) is that HttpSessionListener is in one of the jars on your Shared
 or WebApp classpath, and is not being loaded by the Common classloader.


   Bootstrap
   |
System
   |
Common  (Servlet api classes should be here...)
   /  \
  Catalina   Shared
  /   \
 Webapp1  Webapp2 ... 





 -Original Message-
 From: Jon Brisbin [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 25, 2007 8:17 AM
 To: axis-user@ws.apache.org
 Subject: Problems using Axis on i5/iSeries/AS400/whatever they call it these
 days

 I downloaded the latest Axis 1 so I could provide the C++ guys a way to
 contact the 400 from their native code. I put the latest Axis 1.4 and
 Tomcat 5.5 on the 400 (v5r4 and Java 1.5). I can get Tomcat to fire up,
 but I can't run Axis in it because of a ClassNotFoundError:

 2007-04-25 09:10:24,262 ERROR [org.apache.catalina.startup.HostConfig]
 (Thread
 java.lang.NoClassDefFoundError:
 javax/servlet/http/HttpSessionListener   

 Tomcat itself runs fine, and I can deploy the same files on my Linux box
 and they work fine. It looks like when it gets to the 400, there are
 some classloader issues and it's not seeing the jar files in the server.

 Does anyone have suggestions on what I can do to get this issue
 resolved. I really need to get this fixed today if I can manage it.

   

-- 

Thanks!

Jon Brisbin
NPC International, Inc.



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



Re: Axis2 xmlbeans http transport error 302 found

2007-04-26 Thread Markus F.

Paul

thanks for your engagement about this.
I'm sorry, the server is not available to public, you have to sign a test
account contract (as we did) with the company providing the service.

This is also why i didnot post my code.
I know that that will not ease the whole thing to solve.
The only thing available is the wsdl, as its public, you could generate
client code off from it, I don´t know if this would help, as long as you
want to fire off a request you have to have an account there.
Perhaps you see something in the generated code that would help finding the
problem?

As well it seems to me, that it might be a M$ C# incompatiblity with the
Java world, although web services should be interoperable, perhaps some
details where C# clients have other defaults, and that's why it works there.
But only a guess. Otherwise I cannot explain that others use this service.

If you would find it helpful I'll send the wsdl to you, but let me contact
the service company first, to assure that this would be OK

Markus


pzfreo wrote:
 
 Markus
 
 Is this a publicly available server that we can try?
 
 Paul
 
 On 4/26/07, Markus F. [EMAIL PROTECTED] wrote:

 Paul

 I guess I can't monitor a http*s* connection with tcpmon?
 I mean I could but I would't see anything readable...
 Unfortunately my service is only available over TLS, so I will not be
 able
 to figure out whats going over the line that easy.

 Is there no other way of debbuging?

 What I've also tried is to access the URL over the browser, after
 authentication I get an SOAP error message saying something about
 incomplete
 request - So the URL must be correct, right?

 What I did was trying out XFire, again with no success, but this time it
 seemed to be a binding issue with namespaces and JAXB which is the only
 option when autogenerating a client with XFire, as I figured out. The
 error
 message said something about an unknown method even though the Class was
 there. I didnot understand what the real problem was, because the error
 message was not very helpful to me.
  (org.codehaus.xfire.fault.XFireFault: Method 'Payment' not implemented:
 method name or namespace not recognized
 at
 org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
   )

 Anyway, asking questions about xfire doesnot belong here.
 What confuses about my axis2 variant, is that it talks about redirecting,
 and xfire does not.

 One of my intents why i chose to use a soap based communication with an
 already working server implementation (there are users successfully using
 it, even though maybe not based on Java but C#) was that it should be
 easy.
 Generate a client and use it.

 But it seems to me, that the S in SOAP doesnot really mean simple, at
 least
 for me :(

 Markus



 pzfreo wrote:
 
  Markus
 
  I think you need to use tcpmon to trace the HTTP flow. It seems like
  the server doesn't likethe URI that you are sending the request
  to. Its sending back an HTTP 302 Found code which is basically a
  redirect. I guess Axis2 should probably follow that redirect, but at
  the same time the server shouldn't be publishing a URI in the WSDL
  that ends up with a redirect.
 
  If you trace it you can set the stub to go to the real URI and all
  should be fine.
 
  Paul
 
  On 4/25/07, Markus F. [EMAIL PROTECTED] wrote:
 
  Hello list,
  this is my first contact with axis2. I've to implemtent a client using
 a
  3rd
  party service over https and username/passwd authentication.
  I've been spending many hours on this and couldnot find any similar
  errors
  on the list or even on the web
  I autogenerated the client with following command.
 
  wsdl2java.bat -o src\generated -s -p com.someservice.test -uri
  src\wsdl\some.wsdl -d xmlbeans
 
  The wsdl makes use of complex type extension, so I'm using xmlbeans
 for
  binding.
  I get the following error: org.apache.axis2.AxisFault: HTTP Transport
  error
  : '302' - 'Found'
  It must be something basic, what I'm missing here, because I get the
 same
  error when not providing the credentials.
 
  Any hints?
  Thanks a lot.
  Markus
 
 
  Here's the stack trace:
 
  25.04.2007 11:17:54 org.apache.commons.httpclient.HttpMethodDirector
  isRedirectNeeded
  INFO: Redirect requested but followRedirects is disabled
  org.apache.axis2.AxisFault: HTTP Transport error : '302' - 'Found';
  nested
  exception is:
  org.apache.axis2.AxisFault: HTTP Transport error : '302' -
  'Found'; nested
  exception is:
  org.apache.axis2.AxisFault: HTTP Transport error : '302' -
  'Found'; nested
  exception is:
  org.apache.axis2.AxisFault: HTTP Transport error : '302' -
  'Found'
  at
 
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
  at
 org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
  at
 
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
  at

Axis2 1.1.1 java.net.SocketTimeoutException: Read timed out

2007-04-26 Thread Ninad Agate
I am using axis2 1.1.1 release. In my code I call
org.apache.axis2.client.ServiceClient.sendReceive(elem). It throws
following timeout exception after ~40 seconds. I have set
HTTPConstants.SO_TIMEOUT and HTTPConstants.CONNECTION_TIMEOUT properties
to 5 minutes. Has anyone run into this issue? Are there any other
timeout properties that I ned to set.

Thanks.

- Ninad

java.net.SocketTimeoutException: Read timed out; nested exception is: 

org.apache.axis2.AxisFault: Read timed out; nested exception is: 

java.net.SocketTimeoutException: Read timed out, . ., ITSVMsg.6, ,
org.apache.axis2.AxisFault: Read timed out; nested exception is: 

java.net.SocketTimeoutException: Read timed out; nested exception is: 

org.apache.axis2.AxisFault: Read timed out; nested exception is: 

java.net.SocketTimeoutException: Read timed out

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:227)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:237)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:202)

at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579
)

at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508

...

Caused by: org.apache.axis2.AxisFault: Read timed out; nested exception
is: 

java.net.SocketTimeoutException: Read timed out

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:344)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:204)

... 28 more

Caused by: java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read(BufferedInputStream.java:235)

at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)

at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)

at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.jav
a:1115)

at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBa
se.java:1832)

at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase
.java:1590)

at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:995)

at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:397)

at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
96)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)

at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:541)

at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSend
er.java:119)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:335)

... 29 more


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



Re: [Axis2] How to get result after calling OperationClient.execute(true)

2007-04-26 Thread Deepal Jayasinghe
Hi Anil,

You get get the OperationContext from the operation client and from that
you can get the response message context. Once you have the message
context , you can get the SOAPEnvelop from the MC.

Have a look at Working with OperationClient section in the following
article for more infor.
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html


Thanks
Deepal

 hi

  I am using Axis2 OperationClient API with MTOM. I got the result back
 as i can see using TCPMon is there a standard way to access the result
 after we get the message context and the SOAP envelope.

 Thanks
 Anil


-- 
Thanks,
Deepal

The highest tower is built one brick at a time



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



Re: Axis2/Java Cannot build samples

2007-04-26 Thread VijesH

Yes, the problem was with env variable.
Once the path is correct! It works fine.

Thanks

On 4/26/07, Amila Suriarachchi [EMAIL PROTECTED] wrote:


have you set the AXIS2_HOME environmet variable correctly?

On 4/26/07, VijesH [EMAIL PROTECTED] wrote:

 When I try to build Axis2/Java samples from source using ant, I get this
 error

 ___
 /usr/bin/build-classpath: error: could not find jaxp_parser_impl Java
 extension for this JVM
 /usr/bin/build-classpath: error: could not find xml-commons-apis Java
 extension for this JVM
 /usr/bin/build-classpath: error: All specified jars were not found
 Buildfile: build.xml

 compile:
 [javac] Compiling 3 source files to /home/kvijesh/axis2_java/axis2-
 1.1.1/src/modules/samples/yahoorestsearch/build/classes

 BUILD FAILED
 
/home/kvijesh/axis2_java/axis2-1.1.1/src/modules/samples/yahoorestsearch/build.xml:17:
 /home/kvijesh/axis2_java/axis2-1.1.1/src/modules/lib not found.

 Total time: 0 seconds
 ___
 I use jdk 1.4.2_11
 Ant version 1.6.2
 Any help on this regard?

 Thanks,
 Vijesh




--
Amila Suriarachchi,
WSO2 Inc.