RE: Rampart 1.4 mustUnderstand

2008-10-14 Thread Taariq Levack
In my case it still says mustUnderstand=1, but it tolerates the empty
header which 1.4 does not.

-Original Message-
From: RonnieMJ [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2008 01:30
To: axis-user@ws.apache.org
Subject: RE: Rampart 1.4 mustUnderstand


I switched back to axis 1.3 with rampart 1.3.  Still getting
mustUnderstand=1.  I see others with the issue when using their own
axis2.xml, but I'm using the default axis2.xml that comes with axis.  I
simply load the client policy (attached).  Is it something in my policy
that
causes mustUnderstand=1?  I wouldn't think so.



Taariq Levack wrote:
> 
> Had the same issue recently, the security header coming back from the
> service was empty in my case.
> 
> For now I'm using 1.3 until the issue I raised is resolved.
> Try the same code with Axis 1.3 and Rampart 1.3 and see if that works
> for you.
> 
> Taariq
> 
> -Original Message-
> From: RonnieMJ [mailto:[EMAIL PROTECTED] 
> Sent: 10 October 2008 23:32
> To: axis-user@ws.apache.org
> Subject: Rampart 1.4 mustUnderstand
> 
> 
> Does rampart version 1.4 default mustUnderstand to 1?  I'm getting the
> famous
> error, and am using a policy to set my configurations in code (client
> side
> ONLY).
> 
> My wsse:security tag ends up as mustunderstand="1".
> 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
> curity-secext-1.0.xsd"
> soapenv:mustUnderstand="1">
> 
> The security isn't set in the WSDL.  I am using axis2 1.4.1.
> 
> I've seen the WSDL2Constants flag, but I'm not using WSDL2Constants.  
> 
> Just the plain old:
> 
> options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, 
> loadPolicy(confDir + "/clientSecurityPolicy.xml"));
>   
> stub._getServiceClient().setOptions(options);
> 
> 
> stub._getServiceClient().engageModule("rampart");
> 
> 
> I also don't have access to or control over what is used on the
service
> side
> (external).
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Rampart-1.4-mustUnderstand-tp19926442p19926442.htm
> l
> 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]
> 
> 
> 
http://www.nabble.com/file/p19984135/clientSecurityPolicyExternal.xml
clientSecurityPolicyExternal.xml 
-- 
View this message in context:
http://www.nabble.com/Rampart-1.4-mustUnderstand-tp19926442p19984135.htm
l
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: Client address on messagecontext??

2008-10-14 Thread Amila Suriarachchi
On Wed, Oct 15, 2008 at 9:35 AM, Igor Nogueira <[EMAIL PROTECTED]
> wrote:

> Guys, I have a doubt. I have handler engaged on the inflow and outflow. I'd
> like to know what's the client's address . I tested the MessageContext's
> "From" and "To"  parameters  and I have the following situation:
>

Does client sends the Addressing headers. if so this detail can be found in
To Header.

>
>
> At Inflow:
> "From" value is 127.0.0.1 (I invoke the webservice from localhost);
> "To" value is "http://127.0.0.1:8080/axis2/services/ShoppingCart1";.
>
> At outflow:
> "From" is null;
> "To" is ":http://www.w3.org/2005/08/addressing/anonymous";
>

This means the response is send in the back channel.  if the client  message
has given a reply to address it would have showed the address.

thanks,
Amila.

>
>
>
> Is it possible to retrieve the real client's address on the messagecontext
> received as parameter of the handler's invoke method? Or is it built on a
> later phase of OutFlow and I can' access it?
>
>
>
> Thanks in advance,
>
> Igor
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: In-flow request insertion

2008-10-14 Thread Amila Suriarachchi
On Tue, Oct 14, 2008 at 10:17 PM, Igor Nogueira <
[EMAIL PROTECTED]> wrote:

>
> Actually I want to develop a passive replication schema, so I have the
> handlers together in a group. If the Active member fails, I'll have to
> re-invoke the message, but in another handler in another server. I'm
> serializing the Messagecontext and moving it through the replicas, so when
> a
> fault is detected I'll invoke the message again, but in another service .
> Is
> there a way to do that?I tryed to use LocalTranportSender, but it returns
> me
> a nullexception error...I've opened another thread on the list about
> it...if
> you have time, could you take a lokk at it too? ;-)


I am not clear about your requirement. But may be looking at Axis2
clustering would be usefull to you.

thanks,
Amila.

>
>
> Thanks again!!!,
>
> Igor Nogueira
>
>
> Amila Suriarachchi wrote:
> >
> > On Mon, Oct 13, 2008 at 4:29 PM, Igor Nogueira
> > <[EMAIL PROTECTED]
> >> wrote:
> >
> >> Amila, thank you! I've tested what you said, but I've got this
> exception:
> >> "A message was added that is not valid. However, the operation context
> >> was
> >> complete."
> >>
> >
> > this means it try to add an Axis2 Message to an operation context which
> > already has required number of Axis2 messages. This may happen when it
> > goes
> > through the dispatches again.
> >
> >>
> >> Here's the code I'm using:
> >>
> >> contextomensagem.setCurrentHandlerIndex(0);
> >> contextomensagem.setCurrentPhaseIndex(0);
> >> AxisEngine engine = new
> >> AxisEngine(contextomensagem.getConfigurationContext());
> >> try {
> >> engine.receive(contextomensagem);
> >>
> > you can simply called . AxisEngine.receive() since this is a static
> > method.
> >
> >>
> >> } catch (AxisFault e1) {
> >>
> >> e1.printStackTrace();
> >> return (e1.getReason());
> >> }
> >>
> >> "contextomensagem" is a static variable that keeps a copy of the
> >> MessageContext received at the invoke method. As I'm testing I didin't
> >> change the SOAPEnvelope, I'm  just trying to re-send the same message.
> Is
> >> there something else to do?
> >>
> >
> > Are you experimenting with Axis2 Engine or what do you try to archive?
> why
> > you want to send the same message twice?
> >
> > thanks,
> > Amila.
> >
> >>
> >>
> >> Thanks!
> >>
> >
> >
> >
> > --
> > Amila Suriarachchi
> > WSO2 Inc.
> > blog: http://amilachinthaka.blogspot.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/In-flow-request-insertion-tp19946886p19977558.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: Threshold for File size in MTOM

2008-10-14 Thread Thilina Gunarathne
Hi,Currently it's not possible to specify this from Axis2..

IIRC somebody in this list earlier mentioned that it is possible to
configure your servlet container to limit the incoming message size..May be
that'll help as a work around.

thanks,
Thilina

On Tue, Oct 14, 2008 at 1:41 PM, Sriram Vaidyanathan <
[EMAIL PROTECTED]> wrote:

>  Hello Axis Users,
>
>  I am new to MTOM processing using Axis2. In MTOM, is there a way to
> specify the maximum attachment size on the server so that anything exceeding
> that size is rejected. Can this achieved by configuration or should I need
> to use a custom handler to enforce this limit. Any insight on this would be
> appreciated.
>
> Thanks
>
> Sriram
>
>


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


Re: [AXIS2] v1.4.1 WODEN using network URL for XMLSchema.xsd instead of WodenWjar file

2008-10-14 Thread Sagara Gunathunga
Hi leon,
There was a Woden issue locating  W3C schema  without network access [1] but
it is already  fixed from M7 release , I'm not sure what is your Woden
version . Any way it's good place to post in Woden user list with a error
trace you got .

[1] -  http://issues.apache.org/jira/browse/WODEN-83


thanks ,

On Tue, Oct 14, 2008 at 11:09 PM, searl <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I've looked at the Woden code and it looks like this is
> purely a Woden issue.
>
> I'll switch this to the Woden user list.
>
> Thanks to anyone that was looking at this.
>
> leon
>
> On Mon, 13 Oct 2008 16:10:09 -0500, searl <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Unless I am misunderstanding something, when a service
> > starts up and the service is using user WSDL, it looks like WODEN
> > is looking for the XMLSchema.xsd file over the network instead
> > of looking in the Woden jar file (unless there is no network
> > connection in which case it eventually uses the woden jar file after
> > failing to obtain the network connection).
> >
> > Is there a mechanism that I can use (system property?) to
> > force Woden to only use its jar file to find the XMLSchema.xsd.
> > The reason that I want this is that I have a very slow network
> > connection (1200baud) and I don't want to be using it to load
> > the XMLSchema.xsd every time a service starts up.
> > It makes for very slow service startup.
> >
> > Thanks
> >
> > leon
> >
> >
> --
> Leon S. Searl, Software Research Engineer
> Information and Telecommunication Technology Center, University of Kansas
> Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
> Ph: 785-864-7820 Fax: 785-864-0387
> http://www.ittc.ku.edu
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Client address on messagecontext??

2008-10-14 Thread Igor Nogueira
Guys, I have a doubt. I have handler engaged on the inflow and outflow. I'd
like to know what's the client's address . I tested the MessageContext's
"From" and "To"  parameters  and I have the following situation:

At Inflow:
"From" value is 127.0.0.1 (I invoke the webservice from localhost);
"To" value is "http://127.0.0.1:8080/axis2/services/ShoppingCart1";.

At outflow:
"From" is null;
"To" is ":http://www.w3.org/2005/08/addressing/anonymous";


Is it possible to retrieve the real client's address on the messagecontext
received as parameter of the handler's invoke method? Or is it built on a
later phase of OutFlow and I can' access it?



Thanks in advance,

Igor


Rampart and WSS 1.0 DRAFT

2008-10-14 Thread RonnieMJ

Is there any way to use the WSS 1.0 Draft specification with rampart (pre
Oasis - http://schemas.xmlsoap.org/ws/2002/07/secext)?   I realize that one
wouldn't WANT to do this, but I'm wondering if it's possible.  
-- 
View this message in context: 
http://www.nabble.com/Rampart-and-WSS-1.0-DRAFT-tp19985451p19985451.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



axis2 datahandler to blob and viceversa

2008-10-14 Thread Shehan Simen
Hi,
I want to create a datahandler out of a blob. Can we do that without saving the 
blob to a file?
Also I want to save the file (coming through the datahandler) to a blob. Can it 
be done without saving it to a file (directly convert datahandler to blob)?

Please help me.

thanks


Re: Help! How to set the value of SOAPAction for a SOAP service using Axis2?

2008-10-14 Thread Deepal Jayasinghe
Hi Tian,
Have a look at the action mapping section of the following article.

http://wso2.org/library/2060

Deepal

Tian Chi wrote:
> Hi all, 
>
> I'm new to Axis2 and SOAP. I need to create a SOAP service using Axis2.
> I wonder how to set the SOAPAction value so my service will verify the  value 
> when a client program call the service? 
> I assume Axis2 will do the SOAPAction validation automatically as long as I 
> set the value somewhere in my service, right? But how to do that?
>
> thanks in advance,
>
> -tian
>
>
>   
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
Thank you!


http://blogs.deepal.org


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



Help! How to set the value of SOAPAction for a SOAP service using Axis2?

2008-10-14 Thread Tian Chi
Hi all, 

I'm new to Axis2 and SOAP. I need to create a SOAP service using Axis2.
I wonder how to set the SOAPAction value so my service will verify the  value 
when a client program call the service? 
I assume Axis2 will do the SOAPAction validation automatically as long as I set 
the value somewhere in my service, right? But how to do that?

thanks in advance,

-tian


  

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



Help! How to get the XML data from a SOAP client and respond with a result XML file?

2008-10-14 Thread Tian Chi
Hi all, 

I'm new at using Axis2. Don't know how to do this?
Can anyone give me some guidance about this or tell me 
where to find examples/documents about this?

Basically I need to provide a web service and the client program (a SOAP client 
not using Axis2) will post an XML file to the service. The service program 
should save the data in the XML file to my database and respond with result 
message to the client.

I noticed in the Axis2 'Quick Start Guide', there's an example about building 
the service using AXIOM. I wonder if that's the way to do it.

The function is like

public OMElement getPrice(OMElement element) throws XMLStreamException {
element.build();
element.detach();

OMElement symbolElement = element.getFirstElement();
String symbol = symbolElement.getText();

String returnText = "42";
Double price = (Double) map.get(symbol);
if(price != null){
returnText  = "" + price.doubleValue();
}
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =

fac.createOMNamespace("http://axiom.service.quickstart.samples/xsd";, "tns");
OMElement method = fac.createOMElement("getPriceResponse", omNs);
OMElement value = fac.createOMElement("price", omNs);
value.addChild(fac.createOMText(value, returnText));
method.addChild(value);
return method;
}

Does this mean the 'element' object is the XML element sent from the client 
program?   

Also do I need to do anything else to write (OutputStream stuff) the returned 
object 'method' to the client?

thanks in advance,

-tian


  

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



RE: Rampart 1.4 mustUnderstand

2008-10-14 Thread RonnieMJ

I switched back to axis 1.3 with rampart 1.3.  Still getting
mustUnderstand=1.  I see others with the issue when using their own
axis2.xml, but I'm using the default axis2.xml that comes with axis.  I
simply load the client policy (attached).  Is it something in my policy that
causes mustUnderstand=1?  I wouldn't think so.



Taariq Levack wrote:
> 
> Had the same issue recently, the security header coming back from the
> service was empty in my case.
> 
> For now I'm using 1.3 until the issue I raised is resolved.
> Try the same code with Axis 1.3 and Rampart 1.3 and see if that works
> for you.
> 
> Taariq
> 
> -Original Message-
> From: RonnieMJ [mailto:[EMAIL PROTECTED] 
> Sent: 10 October 2008 23:32
> To: axis-user@ws.apache.org
> Subject: Rampart 1.4 mustUnderstand
> 
> 
> Does rampart version 1.4 default mustUnderstand to 1?  I'm getting the
> famous
> error, and am using a policy to set my configurations in code (client
> side
> ONLY).
> 
> My wsse:security tag ends up as mustunderstand="1".
>  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
> curity-secext-1.0.xsd"
> soapenv:mustUnderstand="1">
> 
> The security isn't set in the WSDL.  I am using axis2 1.4.1.
> 
> I've seen the WSDL2Constants flag, but I'm not using WSDL2Constants.  
> 
> Just the plain old:
> 
> options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, 
> loadPolicy(confDir + "/clientSecurityPolicy.xml"));
>   
> stub._getServiceClient().setOptions(options);
> 
> 
> stub._getServiceClient().engageModule("rampart");
> 
> 
> I also don't have access to or control over what is used on the service
> side
> (external).
> 
> -- 
> View this message in context:
> http://www.nabble.com/Rampart-1.4-mustUnderstand-tp19926442p19926442.htm
> l
> 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]
> 
> 
> 
http://www.nabble.com/file/p19984135/clientSecurityPolicyExternal.xml
clientSecurityPolicyExternal.xml 
-- 
View this message in context: 
http://www.nabble.com/Rampart-1.4-mustUnderstand-tp19926442p19984135.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]



regarding https://issues.apache.org/jira/browse/AXIS2-3732

2008-10-14 Thread Eugene Koifman
Subject: regarding https://issues.apache.org/jira/browse/AXIS2-3732

 

Hello,

I've ran into the same issue described in
https://issues.apache.org/jira/browse/AXIS2-3732, but when I check the
sources code distribution for 1.3, 1.4, and 1.4.1 I don't see the
changes listed in the attachment in Jira.  Could anyone suggest how to
get this patch or any workaround?  Currently it's causing huge memory
leaks in my server after repeated re-deployments of the application.

 

Thank you,

Eugene

 



Out Only MEP questions

2008-10-14 Thread Barry Alexander
1)  I have built and successfully deployed the two mentioned services
ActiveService and ClientService, when attempting to register with
http://localhost:8080/axis2/rest/ActiveService?register?notifyEpr=http://localhost:8080/axis2/services/ClientServiceI
get "Requested resource not found!"

2)  I modified the axis2.xml as follows:









rest



   

   false

This seemed to have no effect.



How do I enable the 'rest' url to register my client service?

Environment details:


Axis2 Happiness Page
Examining webapp configuration
Essential Components
Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
  at C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\axis2-kernel-1.4.1.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
  at C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\commons-logging-1.1.1.jar
Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
  at an unknown location
Found Streaming API for XML implementation
(org.codehaus.stax2.XMLStreamWriter2)
  at C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar
The core axis2 libraries are present.
Note: Even if everything this page probes for is present, there is no
guarantee your Axis Service will work, because there are many configuration
options that we do not check for. These tests are necessary but not
sufficient
Examining Version Service
Found Axis2 default Version service and Axis2 is working properly.
Now you can drop a service archive in axis2/WEB-INF/services. Following
output was produced while invoking Axis2 version service
Hello I am Axis2 version service , My version is 1.4.1
Examining Application Server
Servlet version 2.5
Platform Apache Tomcat/6.0.16

Examining System Properties
java.runtime.name Java(TM) SE Runtime Environment

sun.boot.library.path C: \Program Files\Java\jre1.6.0_05\bin

java.vm.version 10.0-b19

shared.loader

java.vm.vendor Sun Microsystems Inc.

java.vendor.url http: //java.sun.com/

path.separator ;

java.vm.name Java HotSpot(TM) Client VM

tomcat.util.buf.StringCache.byte.enabled true

file.encoding.pkg sun.io

java.util.logging.config.file C: \Program Files\Apache Software
Foundation\Tomcat 6.0\conf\logging.properties

user.country US

sun.os.patch.level Service Pack 2

java.vm.specification.name Java Virtual Machine Specification

user.dir C: \Program Files\Apache Software Foundation\Tomcat 6.0

java.runtime.version 1.6.0_05-b13

java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment

java.endorsed.dirs C: \Program Files\Apache Software Foundation\Tomcat
6.0\common\endorsed

os.arch x86

java.io.tmpdir C: \Program Files\Apache Software Foundation\Tomcat 6.0\temp


line.separator

java.vm.specification.vendor Sun Microsystems Inc.

user.variant

java.util.logging.manager org.apache.juli.ClassLoaderLogManager

java.naming.factory.url.pkgs org.apache.naming

os.name Windows XP

sun.jnu.encoding Cp1252

java.library.path C: \Program Files\Apache Software Foundation\Tomcat
6.0\bin;.;C: \WINDOWS1\Sun\Java\bin;C: \WINDOWS1\system32;C: \WINDOWS1;D:
\Program Files\Java\jdk1.5.0_15\bin;D: \axis\axis2-1.4.1\bin;c: \ruby\bin;C:
\Program Files\IBM\WebSphere MQ\Java\lib;C:
\OraHome_2\jre\1.4.2\bin\client;C: \OraHome_2\jre\1.4.2\bin;C:
\oracle\ora92\bin;C: \WINDOWS1\system32;C: \WINDOWS1;C:
\WINDOWS1\System32\Wbem;C: \Program Files\UltraEdit;C: \Program
Files\IBM\WebSphere MQ\bin;C: \Program Files\IBM\WebSphere
MQ\tools\c\samples\bin;"C: \Program
Files\Hummingbird\Connectivity\7.00\Accessories\";C: \Program
Files\Subversion\bin;C: \Program Files\Support Tools\;c: \Program
Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\svnmerge;D:
\apache-ant-1.7.0\bin;D: \Sun\SDK\bin;C: \Program
Files\QuickTime\QTSystem\;D: \groovy\groovy-1.5.6\bin

java.specification.name Java Platform API Specification

java.class.version 50.0

sun.management.compiler HotSpot Client Compiler

os.version 5.1

user.home C: \

user.timezone America/Los_Angeles

catalina.useNaming true

java.awt.printerjob sun.awt.windows.WPrinterJob

java.specification.version 1.6

file.encoding Cp1252

catalina.home C: \Program Files\Apache Software Foundation\Tomcat 6.0

user.name SYSTEM

java.class.path C: \Program Files\Apache Software Foundation\Tomcat
6.0\bin\bootstrap.jar

java.naming.factory.initial org.apache.naming.java.javaURLContextFactory

package.definition
sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.


java.vm.specification.version 1.0

sun.arch.data.model 32

java.home C: \Program Files\Java\jre1.6.0_05

java.specification.vendor Sun Microsystems Inc.

user.language en

awt.toolkit sun.awt.windows.WToolkit

java.vm.info mixed mode, sharing

java.version 1.6.0_05

java.ext.dirs C: \Program Files\Java\jre1.6.0_05\lib\ext;C:
\WINDOWS1\Sun\Java\lib\ext

sun.boot.class.path C: \Program Files\Java\jre1.6.0_05\lib\resources.jar;C:

[Axis2] How to (using Axis2) get the XML file posted from a SOAP client?

2008-10-14 Thread Tian Chi
Hi all, 

This is my first time to try to use Axis2 to create a SOAP service.
Basically my SOAP service needs to recieve an XML file posted from an SOAP 
client. The SOAP client program is from a third party who is not using Axis2.

Can anyone tell me how to do that or tell me where I can find 
documents/exmaples to accomplish that? 

Assume my service is something like

http://myUrl/axis2/postXmlData

I guess there should be some special Axis2 API codes in the function 
'postXmlData', right? Can anyone tell me more about 
what kinds of codes there should be to receive the XML document 
sent from the SOAP client?

I'd really appreciate it if someone can give me some guidance
or shed some lights on this.

thanks in advance,

-tian





  

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



xmlbeans in Axis (not Axis2) using Eclipse IDE

2008-10-14 Thread Gabriel Garcia

Hello everyone, I'd like to know if someone of you knows how to modify the
wizard used in Ecipse to create Web Services Skeleton to use a xmlbeans data
binding. Alternatively, it could help to know what an how needs to be
changed in a project generated by that wizard in order to use xmlbeans in
the web service. 


-- 
View this message in context: 
http://www.nabble.com/xmlbeans-in-Axis-%28not-Axis2%29-using-Eclipse-IDE-tp19978820p19978820.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] v1.4.1 WODEN using network URL for XMLSchema.xsd instead of WodenWjar file

2008-10-14 Thread searl
Hi All,

I've looked at the Woden code and it looks like this is
purely a Woden issue.

I'll switch this to the Woden user list.

Thanks to anyone that was looking at this.

leon

On Mon, 13 Oct 2008 16:10:09 -0500, searl <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Unless I am misunderstanding something, when a service
> starts up and the service is using user WSDL, it looks like WODEN
> is looking for the XMLSchema.xsd file over the network instead
> of looking in the Woden jar file (unless there is no network
> connection in which case it eventually uses the woden jar file after
> failing to obtain the network connection).
> 
> Is there a mechanism that I can use (system property?) to 
> force Woden to only use its jar file to find the XMLSchema.xsd. 
> The reason that I want this is that I have a very slow network
> connection (1200baud) and I don't want to be using it to load
> the XMLSchema.xsd every time a service starts up.
> It makes for very slow service startup.
> 
> Thanks 
> 
> leon
> 
>
-- 
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu

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



Threshold for File size in MTOM

2008-10-14 Thread Sriram Vaidyanathan
Hello Axis Users,
 I am new to MTOM processing using Axis2. In MTOM, is there a way to
specify the maximum attachment size on the server so that anything
exceeding that size is rejected. Can this achieved by configuration or
should I need to use a custom handler to enforce this limit. Any insight
on this would be appreciated.

Thanks
Sriram



Re: In-flow request insertion

2008-10-14 Thread Igor Nogueira

Actually I want to develop a passive replication schema, so I have the
handlers together in a group. If the Active member fails, I'll have to
re-invoke the message, but in another handler in another server. I'm
serializing the Messagecontext and moving it through the replicas, so when a
fault is detected I'll invoke the message again, but in another service . Is
there a way to do that?I tryed to use LocalTranportSender, but it returns me
a nullexception error...I've opened another thread on the list about it...if
you have time, could you take a lokk at it too? ;-)

Thanks again!!!,

Igor Nogueira


Amila Suriarachchi wrote:
> 
> On Mon, Oct 13, 2008 at 4:29 PM, Igor Nogueira
> <[EMAIL PROTECTED]
>> wrote:
> 
>> Amila, thank you! I've tested what you said, but I've got this exception:
>> "A message was added that is not valid. However, the operation context
>> was
>> complete."
>>
> 
> this means it try to add an Axis2 Message to an operation context which
> already has required number of Axis2 messages. This may happen when it
> goes
> through the dispatches again.
> 
>>
>> Here's the code I'm using:
>>
>> contextomensagem.setCurrentHandlerIndex(0);
>> contextomensagem.setCurrentPhaseIndex(0);
>> AxisEngine engine = new
>> AxisEngine(contextomensagem.getConfigurationContext());
>> try {
>> engine.receive(contextomensagem);
>>
> you can simply called . AxisEngine.receive() since this is a static
> method.
> 
>>
>> } catch (AxisFault e1) {
>>
>> e1.printStackTrace();
>> return (e1.getReason());
>> }
>>
>> "contextomensagem" is a static variable that keeps a copy of the
>> MessageContext received at the invoke method. As I'm testing I didin't
>> change the SOAPEnvelope, I'm  just trying to re-send the same message. Is
>> there something else to do?
>>
> 
> Are you experimenting with Axis2 Engine or what do you try to archive? why
> you want to send the same message twice?
> 
> thanks,
> Amila.
> 
>>
>>
>> Thanks!
>>
> 
> 
> 
> -- 
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/In-flow-request-insertion-tp19946886p19977558.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: problem with String [] in axis 1.3 and .net client

2008-10-14 Thread jayalal jayarathna
This is the C# request which is not working,


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="
http://external.soap.service.cps.moota.com"; xmlns:types="
http://external.soap.service.cps.moota.com/encodedTypes"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema";>
http://schemas.xmlsoap.org/soap/encoding/";>

   
 http://dto.service.cps.moota.com";>
   
   
   
   
   
   
   
   
   

   
  123456

  



but for following Axis 1.3 client request it works fine

http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
 http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="
http://soap.service.cps.moota.com";>
 
 
  http://schemas.xmlsoap.org/soap/encoding/"; xsi:type="ns2:SmsRequestDto"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns2="
http://dto.service.cps.moota.com";>
  
  
  
  
 http://webservice.clientprovisioning.moota.com";>123456789
  
  
   
   
   
   
   

   http://schemas.xmlsoap.org/soap/encoding/"; xsi:type="xsd:long"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
   10
   






http://schemas.xmlsoap.org/soap/envelope/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="
http://external.soap.service.cps.moota.com"; xmlns:types="
http://external.soap.service.cps.moota.com/encodedTypes"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema";>http://schemas.xmlsoap.org/soap/encoding/";>
http://dto.service.cps.moota.com";>123456






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

soapenv:Server.userException
java.lang.IllegalArgumentException: array element type
mismatch
http://xml.apache.org/axis/
">jayalal-PC


2008/10/13 Deepal Jayasinghe <[EMAIL PROTECTED]>

> Did you check whether it sends the correct request , I mean is it valid
> according to the WSDL ?
> You can see the message if you send that via TCP Monitor.
>
> -Deepal
>
> jayalal jayarathna wrote:
> > Hi,
> > I have a web service developed on Axis 1.3, and it has following method.
> > SendTaskResponseDto sendSmsMessage(SmsRequestDto in0)
> >
> > SmsRequestDto has an string array
> >
> > public class SmsRequestDto implements java.io.Serializable {
> > private java.lang.Long projectId;
> >
> > private java.lang.String user;
> >
> > private java.lang.String message;
> >
> > private java.lang.String[] msisdn;
> >
> > private java.lang.Integer applicationId;
> >
> > .
> >
> >
> > when I try to call SendTaskResponseDto sendSmsMessage(SmsRequestDto
> > in0) through C#.net client it gives following exception at server
> >
> > 13 Oct 2008 11:03:00,015 ERROR BeanPropertyTarget - Could not convert
> > [Ljava.lang.String; to bean field 'msisdn[0]', type java.lang.String
> > 13 Oct 2008 11:03:00,028 INFO EXCEPTIONS - AxisFault:
> > AxisFault
> > faultCode:
> > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > 
> > faultSubcode:
> > faultString: java.lang.IllegalArgumentException: array element type
> > mismatch
> > faultActor:
> > faultNode:
> > faultDetail:
> > {
> http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentException
> > <
> http://xml.apache.org/axis/%7DstackTrace:java.lang.IllegalArgumentException
> >:
> > array element type mismatch
> > at java.lang.reflect.Array.set(Native Method)
> > at
> >
> org.apache.axis.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:195)
> >
> >
> >
> >
> >
> >
> > WSDL as follows
> >
> > http://schemas.xmlsoap.org/soap/encoding/"/>
> > −
> > 
> > −
> > 
> > −
> > 
> > 
> > 
> > 
> > 
> >
> >
> > 
> > 
> > 
> > 
> > 
> >  > type="impl:ArrayOf_soapenc_string"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > c# code
> > static void Main(string[] args)
> > {
> > lh.CPSWebServiceService service = new
> > ConsoleApplication1.lh.CPSWebServiceService();
> > lh.SmsRequestDto request = new ConsoleApplication1.lh.SmsRequestDto();
> > string[] msisdn = new string[1];
> > msisdn[0] = "123456";
> > // msisdn[1] = "456";
> > request.msisdn = msisdn;
> > service.sendSmsMessage(request);
> >
> > }
> >
> >
> >
> > Please help me. Thank you,
> >
> > Jayalal
>
> --
> Thank you!
>
>
> http://blogs.deepal.org
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: In-flow request insertion

2008-10-14 Thread Amila Suriarachchi
On Mon, Oct 13, 2008 at 4:29 PM, Igor Nogueira <[EMAIL PROTECTED]
> wrote:

> Amila, thank you! I've tested what you said, but I've got this exception:
> "A message was added that is not valid. However, the operation context was
> complete."
>

this means it try to add an Axis2 Message to an operation context which
already has required number of Axis2 messages. This may happen when it goes
through the dispatches again.

>
> Here's the code I'm using:
>
> contextomensagem.setCurrentHandlerIndex(0);
> contextomensagem.setCurrentPhaseIndex(0);
> AxisEngine engine = new
> AxisEngine(contextomensagem.getConfigurationContext());
> try {
> engine.receive(contextomensagem);
>
you can simply called . AxisEngine.receive() since this is a static method.

>
> } catch (AxisFault e1) {
>
> e1.printStackTrace();
> return (e1.getReason());
> }
>
> "contextomensagem" is a static variable that keeps a copy of the
> MessageContext received at the invoke method. As I'm testing I didin't
> change the SOAPEnvelope, I'm  just trying to re-send the same message. Is
> there something else to do?
>

Are you experimenting with Axis2 Engine or what do you try to archive? why
you want to send the same message twice?

thanks,
Amila.

>
>
> Thanks!
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: namespaces error

2008-10-14 Thread Harm de Laat
The message generated by SOAPUI looks like:

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:mdc="http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";
xmlns:sch="
http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";>
   
   
  
 
135756.010
 
  
   


This works out of the box.

The difference seems to be that SOAPUI declares all namespaces in the
Envelope tag, and Axis does not.
Also the Axis generated message does not include a namespace(prefix) on the
OrderInfo tag.

No matter what I try the Axis generated client does not work.

Any idea?

Thanks for your help,

Harm!


On Tue, Oct 14, 2008 at 3:57 PM, keith chapman <[EMAIL PROTECTED]>wrote:

> Looking at the WSDL it looks like a correct message should be of the form.
>
> http://www.w3.org/2003/05/soap-envelope";>
>
>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
> ">
> 123456.123
>  
>   
>
> 
>
> Could you a sample message generated using SOAPUI.
>
> Thanks,
> Keith.
>
>
> On Tue, Oct 14, 2008 at 6:52 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:
>
>> Here is the complete WSDL file (I just commented out the IP address for
>> the service).
>>
>> What may be worth of mentioning is that I tried using SOAPUI, which worked
>> instantly with this specific WSDL.
>>
>>
>> 
>> http://schemas.xmlsoap.org/wsdl/soap/";
>> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:soapenc="
>> http://schemas.xmlsoap.org/soap/encoding/"; xmlns:mime="
>> http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:tns="
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"; xmlns:s1="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";
>> xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s2="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";
>> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="
>> http://schemas.xmlsoap.org/wsdl/http/"; targetNamespace="
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"; xmlns:wsdl="
>> http://schemas.xmlsoap.org/wsdl/";>
>>   http://schemas.xmlsoap.org/wsdl/";>BizTalk
>> assembly "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
>> Culture=neutral, PublicKeyToken=8c063b3a22630ca9" published web
>> service.
>>   
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>>   http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";
>> />
>>   http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";
>> />
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>> > ref="s2:OrderInfoResult" />
>>   
>> 
>>   
>> 
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>>   
>> 
>>   
>> > name="Referentienummer" type="s:string" />
>>   
>> 
>>   
>> 
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb
>> ">
>>   
>> 
>>   
>> > name="Referentienr" type="s:string" />
>> > name="NameAdvertiser" type="s:string" />
>> > name="TypeOfAd" type="s:string" />
>> > name="titleId" type="s:string" />
>> > name="editionId" type="s:string" />
>> > name="orderStatus" type="s:integer" />
>> > name="returnCode" type="s:integer" />
>> > name="returnMessage" type="s:string" />
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   > name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> 
>>   
>>   
>> 
>>   
>>   > type="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> http://schemas.xmlsoap.org/soap/http"; />
>> 
>>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails";
>> style="document" />
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>>   > name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap12"
>> type="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> http://schemas.xmlsoap.org/soap/http"; />
>> 
>>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails";
>> style="document" />
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>>   
>> http://schemas.xmlsoap.org/wsdl/";>BizTalk
>> assembly "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
>> Culture=neutral, PublicKeyToken=8c063b3a22630ca9" published web
>> service.
>> > binding="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>>   http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePor

FW: Axis2.war in weblogic

2008-10-14 Thread Rajesh, Peter (CLAIMS, WIP)

> Hi,
> 
> Is there any solution to deploy the axis2.war file instead of the
> exploded format? We receive below error in Weblogic
> 
>  application: "axis2".
> javax.servlet.ServletException: Servlet class:
> 'org.apache.axis2.transport.http.AxisServlet' doesn't have a default
> constructor
> 
> Thanks & Regards,
> 
> Peter Rajesh
> CI Production Support
> Office  - 860-547-3881 
> Mobile - 201-6580195
> 
> 


*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



Re: ADBException: Unexpected subelement return

2008-10-14 Thread keith chapman
Hi Jeremy,

It looks like your WSDL is RPC encoded (Which is not supported by axis2).
How about simply deploying the calculator service as a POJO and then using
the generated WSDL to write your client. That should work for you just fine
(The WSDL generated by Axis2 by default is doc/lit).

Thanks,
Keith.

On Tue, Oct 14, 2008 at 7:30 PM, Audino, Jeremy
<[EMAIL PROTECTED]>wrote:

>  I've got a Java Client and Server using the Calculator.wsdl supplies with
> the original Axis (not Axis2). I've
>
> generated Axis2 bindings using WSDL2Java. I also have a client and server
> written in C++ using gSoap.
>
> I have no issue with both the Java and C++ clients communicating with the
> C++ Server. I am however
>
> having an issue with the Java Client and the Java Server (using
> SimpleHTTPServer). I'm getting the
>
> following exception from the Client. The C++ client works fine with the
> Java Server.
>
>
>
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement return
>
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>
> at localhost.axis.calculator.CalculatorStub.fromOM(Unknown Source)
>
> at localhost.axis.calculator.CalculatorStub.add(Unknown Source)
>
> at localhost.axis.calculator.CalculatorClient.main(Unknown Source)
>
> Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
> Unexpected subelement return
>
> at localhost.axis.calculator.AddResponse$Factory.parse(Unknown
> Source)
>
> ... 3 more
>
> Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
> return
>
> ... 4 more
>
>
>
> I've attached the WSDL and Java Source….
>
> Any help would be great.
>
>
>
> Best Regards,
>
> Jeremy
>
>
>
>
>
>
>
> Jeremy F. Audino
>
> Senior Software Development Engineer
>
> Philips Healthcare -- Nuclear Medicine
>
> Tel: 440-483-7444
>
> E-mail: [EMAIL PROTECTED]
>
>
>
> --
> The information contained in this message may be confidential and legally
> protected under applicable law. The message is intended solely for the
> addressee(s). If you are not the intended recipient, you are hereby notified
> that any use, forwarding, dissemination, or reproduction of this message is
> strictly prohibited and may be unlawful. If you are not the intended
> recipient, please contact the sender by return e-mail and destroy all copies
> of the original message.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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

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


ADBException: Unexpected subelement return

2008-10-14 Thread Audino, Jeremy
I've got a Java Client and Server using the Calculator.wsdl supplies with the 
original Axis (not Axis2). I've
generated Axis2 bindings using WSDL2Java. I also have a client and server 
written in C++ using gSoap.
I have no issue with both the Java and C++ clients communicating with the C++ 
Server. I am however
having an issue with the Java Client and the Java Server (using 
SimpleHTTPServer). I'm getting the
following exception from the Client. The C++ client works fine with the Java 
Server.

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: 
Unexpected subelement return
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at localhost.axis.calculator.CalculatorStub.fromOM(Unknown Source)
at localhost.axis.calculator.CalculatorStub.add(Unknown Source)
at localhost.axis.calculator.CalculatorClient.main(Unknown Source)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
Unexpected subelement return
at localhost.axis.calculator.AddResponse$Factory.parse(Unknown Source)
... 3 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
return
... 4 more

I've attached the WSDL and Java Source
Any help would be great.

Best Regards,
Jeremy



Jeremy F. Audino
Senior Software Development Engineer
Philips Healthcare -- Nuclear Medicine
Tel: 440-483-7444
E-mail: [EMAIL PROTECTED]



The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.


calculator.wsdl
Description: calculator.wsdl


CalculatorServer_SimpleAxisServer.java
Description: CalculatorServer_SimpleAxisServer.java


CalculatorClient.java
Description: CalculatorClient.java


CalculatorServer.java
Description: CalculatorServer.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: namespaces error

2008-10-14 Thread keith chapman
Looking at the WSDL it looks like a correct message should be of the form.

http://www.w3.org/2003/05/soap-envelope";>
   
  http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
 http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";>
123456.123
 
  
   


Could you a sample message generated using SOAPUI.

Thanks,
Keith.


On Tue, Oct 14, 2008 at 6:52 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:

> Here is the complete WSDL file (I just commented out the IP address for the
> service).
>
> What may be worth of mentioning is that I tried using SOAPUI, which worked
> instantly with this specific WSDL.
>
>
> 
> http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:soapenc="
> http://schemas.xmlsoap.org/soap/encoding/"; xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:tns="
> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"; xmlns:s1="
> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";
> xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s2="
> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/"; targetNamespace="
> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"; xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/";>
>   http://schemas.xmlsoap.org/wsdl/";>BizTalk
> assembly "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=8c063b3a22630ca9" published web
> service.
>   
> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>   http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";
> />
>   http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";
> />
>   
> 
>   
> 
>   
> 
>   
>   
> 
>   
>  />
>   
> 
>   
> 
> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
> ">
>   
> 
>   
>  name="Referentienummer" type="s:string" />
>   
> 
>   
> 
> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb
> ">
>   
> 
>   
>  name="Referentienr" type="s:string" />
>  name="NameAdvertiser" type="s:string" />
>  name="TypeOfAd" type="s:string" />
>  name="titleId" type="s:string" />
>  name="editionId" type="s:string" />
>  name="orderStatus" type="s:integer" />
>  name="returnCode" type="s:integer" />
>  name="returnMessage" type="s:string" />
>   
> 
>   
> 
>   
>   
> 
>   
>   
> 
>   
>name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
> 
>   
>   
> 
>   
>type="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
> http://schemas.xmlsoap.org/soap/http"; />
> 
>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails";
> style="document" />
>   
> 
>   
>   
> 
>   
> 
>   
>name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap12"
> type="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
> http://schemas.xmlsoap.org/soap/http"; />
> 
>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails";
> style="document" />
>   
> 
>   
>   
> 
>   
> 
>   
>   
> http://schemas.xmlsoap.org/wsdl/";>BizTalk
> assembly "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=8c063b3a22630ca9" published web
> service.
>  binding="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>   http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx";
> />
> 
>  binding="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap12">
>   http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx";
> />
> 
>   
> 
>
>
> Thanks,
>
> Harm!
>
>
>
> On Tue, Oct 14, 2008 at 2:42 PM, keith chapman <[EMAIL PROTECTED]>wrote:
>
>> Could you post the schema section in the WSDL that describes
>> GetOrderDetails. That would give us a clue to whats wrong.
>>
>> Thanks,
>> Keith.
>>
>>
>> On Tue, Oct 14, 2008 at 5:02 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:
>>
>>> Hi all,
>>>
>>> I'm having great difficulties calling a BizTalk webservice using axis2
>>> (1.4.1) with ADB.
>>>
>>> I have generated my client using the following command:
>>>
>>> wsdl2java.sh -uri
>>> http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx?WSDL-p
>>>  nl.kabisa.sanoma.webservices -d

Re: namespaces error

2008-10-14 Thread Harm de Laat
Here is the complete WSDL file (I just commented out the IP address for the
service).

What may be worth of mentioning is that I tried using SOAPUI, which worked
instantly with this specific WSDL.



http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"; xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:tns="
http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"; xmlns:s1="
http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";
xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s2="
http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"; targetNamespace="
http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"; xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/";>
  http://schemas.xmlsoap.org/wsdl/";>BizTalk
assembly "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=8c063b3a22630ca9" published web
service.
  
http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";
/>
  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";
/>
  

  

  

  
  

  

  

  

http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";>
  

  

  

  

http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb";>
  

  








  

  

  
  

  
  

  
  

  
  

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

  http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails";
style="document" />
  

  
  

  

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

  http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails";
style="document" />
  

  
  

  

  
  
http://schemas.xmlsoap.org/wsdl/";>BizTalk
assembly "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=8c063b3a22630ca9" published web
service.

  http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx";
/>


  http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx";
/>

  



Thanks,

Harm!


On Tue, Oct 14, 2008 at 2:42 PM, keith chapman <[EMAIL PROTECTED]>wrote:

> Could you post the schema section in the WSDL that describes
> GetOrderDetails. That would give us a clue to whats wrong.
>
> Thanks,
> Keith.
>
>
> On Tue, Oct 14, 2008 at 5:02 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:
>
>> Hi all,
>>
>> I'm having great difficulties calling a BizTalk webservice using axis2
>> (1.4.1) with ADB.
>>
>> I have generated my client using the following command:
>>
>> wsdl2java.sh -uri
>> http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx?WSDL-p
>>  nl.kabisa.sanoma.webservices -d adb -s
>>
>> This generates all classes and using my (test)client I get to call the
>> service. This generates the following SOAP message:
>>
>> http://www.w3.org/2003/05/soap-envelope
>> ">
>>
>>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>>  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> 123456.123
>>  
>>   
>>
>> 
>>
>> However, this call gets discarded by the BizTalk server. When I manually
>> modify the soap message to the message below everything is fine. (Notice the
>> ns2 namespace):
>>
>> http://www.w3.org/2003/05/soap-envelope
>> ">
>>
>>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>>  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> 123456.123
>>  
>>   
>>
>> 
>>
>> What is going on here? Why is the NS2 namespace missing in the Axis2
>> generated Soap message?
>> Also, what can I do to make this relatively simple client work?
>>
>> Kind regards,
>>
>> --
>> Harm de Laat
>> Kabisa ICT
>>
>>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>



-- 
Harm de Laat

Kabisa ICT
't Inne 9c
6021 DA Budel
KVK: 14090089

e : [EMAIL PROTECTED]
w : http://www.kabisa.nl
m : +31 (0)6 144 288 21
t : +31 (0)495 43 07 98
f : +31 (0)495 43 05 93


Re: How to make non-webmethod in axis2 webservices?

2008-10-14 Thread Deepal jayasinghe
ERaj wrote:
> Hi,
>  I have a webservice which have few service methods (webmethods) and other
> methods to inject object into the service (through spring) but when I
> generate wsdl file or deploy with default wsdl, my non-webmethods are also
> visible to client. Actually I can't make the non-webmethods as
> private/protected because spring needs them as public. 
>  How to overcome this? Please let me know your suggestion.
> Cheers,
> Raja
>   
Have a look at the following article that will help you, just read how
to exclude operation section.

http://wso2.org/library/2060

Deepal

-- 
Thank you!


http://blogs.deepal.org


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



Re: [Axis2]Help! How to create a SOAP service using Axis2 in my own webapp?

2008-10-14 Thread keith chapman
Thisshould
give you a clue. I think thats what your looking for.

Thanks,
Keith.

[1]
http://www.keith-chapman.org/2008/10/how-to-embed-axis2-into-existing-web.html

On Tue, Oct 14, 2008 at 6:21 AM, Tian Chi <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Sorry previous message is still in wrong text format, this is it again.
>
> I'm a newbie on using Axis2. After reading through most of the documents on
> this site,
> I still couldn't find the answer I need. I'd really apreciate it if someone
> can help me on this.
>
> All Axis2 documents I read on this site are to build new web
> services/client using Axis2.
> Currently I have already a big web app  in use and I need to add a SOAP
> service to
> my web app using Axis2. Is that doable?  If yes, what are the steps to make
> that happen?
>
> Is it possible to copy axis2.war into my servlet container (Resin) (both
> 'axis2' and 'myWebapp' directories under webapps directory) , create a SOAP
> service in the axis2 app and then forward the request (by deinfing the
> 'ServiceClass' parameter in services.xml?) to my own web app to handle some
> complicated database processes? It seems to me it's not doable.  Please
> don't laugh at me if this question is too sily.
>
> If the previous approach is not possible. The only other apprach I can
> think of is to embed Axis2 in my
> own webapp. In that case, do I need to copy all the needed Axis2 jar files
> to my own web app in WEB-INF/lib directory? If so, what are the needed jar
> files for a SOAP service?
> Basically the SOAP service is receive data from my client, save it to
> database and respond to client with the results. There are many jar files in
> Axis2. I just hope to skip some unnecessary Axis2 jar files to avoid
> overhead since my own web app is already very big.
>
> Besides the Axis2 jar files, what else needs to be done to embed a SOAP
> service in my own web app?
>
> I'd really really appreciate it if someone gives me some guidance or shed
> some lights on this.
> Hope to hear from you soon.
>
> thank you very much,
>
> -tian
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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


Re: namespaces error

2008-10-14 Thread keith chapman
Could you post the schema section in the WSDL that describes
GetOrderDetails. That would give us a clue to whats wrong.

Thanks,
Keith.

On Tue, Oct 14, 2008 at 5:02 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I'm having great difficulties calling a BizTalk webservice using axis2
> (1.4.1) with ADB.
>
> I have generated my client using the following command:
>
> wsdl2java.sh -uri
> http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx?WSDL-p
>  nl.kabisa.sanoma.webservices -d adb -s
>
> This generates all classes and using my (test)client I get to call the
> service. This generates the following SOAP message:
>
> http://www.w3.org/2003/05/soap-envelope";>
>
>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
> ">
> 123456.123
>  
>   
>
> 
>
> However, this call gets discarded by the BizTalk server. When I manually
> modify the soap message to the message below everything is fine. (Notice the
> ns2 namespace):
>
> http://www.w3.org/2003/05/soap-envelope";>
>
>   http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>  http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
> ">
> 123456.123
>  
>   
>
> 
>
> What is going on here? Why is the NS2 namespace missing in the Axis2
> generated Soap message?
> Also, what can I do to make this relatively simple client work?
>
> Kind regards,
>
> --
> Harm de Laat
> Kabisa ICT
>
>


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

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


namespaces error

2008-10-14 Thread Harm de Laat
Hi all,

I'm having great difficulties calling a BizTalk webservice using axis2
(1.4.1) with ADB.

I have generated my client using the following command:

wsdl2java.sh -uri
http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx?WSDL-p
nl.kabisa.sanoma.webservices -d adb -s

This generates all classes and using my (test)client I get to call the
service. This generates the following SOAP message:

http://www.w3.org/2003/05/soap-envelope";>
   
  http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
 http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";>
123456.123
 
  
   


However, this call gets discarded by the BizTalk server. When I manually
modify the soap message to the message below everything is fine. (Notice the
ns2 namespace):

http://www.w3.org/2003/05/soap-envelope";>
   
  http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
 http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb";>
123456.123
 
  
   


What is going on here? Why is the NS2 namespace missing in the Axis2
generated Soap message?
Also, what can I do to make this relatively simple client work?

Kind regards,

-- 
Harm de Laat
Kabisa ICT