Axis Core Dump while writing to log file

2007-10-17 Thread Raghavendra SM
Hi All,

Please find below the GDB back trace of the core dump I found.

Program terminated with signal 25, File size limit exceeded.
#0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
#1  0xb794ce4c in _IO_file_write () from /lib/tls/libc.so.6
#2  0xb794b869 in _IO_file_setbuf () from /lib/tls/libc.so.6
#3  0xb794b93f in _IO_do_write () from /lib/tls/libc.so.6
#4  0xb794c477 in _IO_file_sync () from /lib/tls/libc.so.6
#5  0xb79416e2 in fflush () from /lib/tls/libc.so.6
#6  0xb7af922b in axutil_log_impl_write_to_file () from 
/opt/aylus/lib/libaxutil.so.0
#7  0xb7af9320 in axutil_log_impl_log_debug () from 
/opt/aylus/lib/libaxutil.so.0
#8  0xb773a34d in axis2_http_worker_process_request 
(http_worker=0x81d4cc8, env=0x81d6348, svr_conn=0x81d6368,
simple_request=0x81d6438) at http_worker.c:155
#9  0xb7aed01f in axis2_svr_thread_worker_func (thd=0x81c4180, 
data=0x81d4d00) at http_svr_thread.c:256
#10 0xb7b043af in dummy_worker () from /opt/aylus/lib/libaxutil.so.0
#11 0xb7f71ced in start_thread () from /lib/tls/libpthread.so.0
#12 0xb79bbdee in clone () from /lib/tls/libc.so.6

When: It was produced when the axis2.log file was very huge (like 
3451222890 Bytes) and axis tried to write some logs.

Doubts: 1) Does axis2 log utility support writing to a new log file when 
ever a file becomes huge? If yes, how can we enable it?
  2) Does axis2 log utility support wrapping of the log file 
instead of appending to it after certain file size limit? If yes, how 
can we enable it?
  3) Does axis2 has a way to preserve all the logs yet not crash 
due to file size limit? 
  4) If the answers are NO for all of the above questions, is 
axutil_log_impl_write_to_file() (before the fprintf, line #250)is the 
right place to support either of the above?

Please reply.  

Regards,
~raghav
 


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



Re: Axis Core Dump while writing to log file

2007-10-17 Thread Samisa Abeysinghe

Raghavendra SM wrote:

Hi All,

Please find below the GDB back trace of the core dump I found.

Program terminated with signal 25, File size limit exceeded.
#0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
#1  0xb794ce4c in _IO_file_write () from /lib/tls/libc.so.6
#2  0xb794b869 in _IO_file_setbuf () from /lib/tls/libc.so.6
#3  0xb794b93f in _IO_do_write () from /lib/tls/libc.so.6
#4  0xb794c477 in _IO_file_sync () from /lib/tls/libc.so.6
#5  0xb79416e2 in fflush () from /lib/tls/libc.so.6
#6  0xb7af922b in axutil_log_impl_write_to_file () from 
/opt/aylus/lib/libaxutil.so.0
#7  0xb7af9320 in axutil_log_impl_log_debug () from 
/opt/aylus/lib/libaxutil.so.0
#8  0xb773a34d in axis2_http_worker_process_request 
(http_worker=0x81d4cc8, env=0x81d6348, svr_conn=0x81d6368,

simple_request=0x81d6438) at http_worker.c:155
#9  0xb7aed01f in axis2_svr_thread_worker_func (thd=0x81c4180, 
data=0x81d4d00) at http_svr_thread.c:256

#10 0xb7b043af in dummy_worker () from /opt/aylus/lib/libaxutil.so.0
#11 0xb7f71ced in start_thread () from /lib/tls/libpthread.so.0
#12 0xb79bbdee in clone () from /lib/tls/libc.so.6

When: It was produced when the axis2.log file was very huge (like 
3451222890 Bytes) and axis tried to write some logs.


Doubts: 1) Does axis2 log utility support writing to a new log file when 
ever a file becomes huge? If yes, how can we enable it?
  
No. You are the first to report this bug. So now we know we have to 
handle it. Please raise a Jira and we have to fix that.
	  2) Does axis2 log utility support wrapping of the log file 
instead of appending to it after certain file size limit? If yes, how 
can we enable it?
  
No, again, and it is a good idea to have this feature as well. Please 
raise a Jira on this as well.
	  3) Does axis2 has a way to preserve all the logs yet not crash 
due to file size limit? 
  

Crashing is a bug. That needs fixing.
	  4) If the answers are NO for all of the above questions, is 
axutil_log_impl_write_to_file() (before the fprintf, line #250)is the 
right place to support either of the above?
  

Yes, that is probably where the fixes should go.

Samisa...
Please reply.  


Regards,
~raghav
 



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


  



--
Samisa Abeysinghe : WSO2 WSF/PHP
http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


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



RE: Problem with parameter SOAPAction

2007-10-17 Thread Cedric Peyruqueou
Hello Charitha,

Thank you very much for your time and your help, it works now with
the instruction you gave me.

Best Regards,

Cédric Peyruqueou

-Message d'origine-
De : Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 16 octobre 2007 18:49
À : axis-user@ws.apache.org
Objet : Re: Problem with parameter SOAPAction

Cedric Peyruqueou wrote:

 Hello,

 I'm trying to use axis with the axiom client to connect to a public 
 web service, these are the information I have on this webservice:

 --

 POST /webservicedemo/service.asmx HTTP/1.1

 Host: www.dagorsoftware.com

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

 Content-Length: length

 SOAPAction: http://tempuri.org/HelloWho;

 ?xml version=1.0 encoding=utf-8?

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

 soap:Body

 HelloWho xmlns=http://tempuri.org/;

 firstNamestring/firstName

 lastNamestring/lastName

 /HelloWho

 /soap:Body

 /soap:Envelope

 --

 This is my class:

 ---

 package samples.quickstart.clients;

 import org.apache.axiom.om.OMAbstractFactory;

 import org.apache.axiom.om.OMElement;

 import org.apache.axiom.om.OMFactory;

 import org.apache.axiom.om.OMNamespace;

 import org.apache.axis2.Constants;

 import org.apache.axis2.addressing.EndpointReference;

 import org.apache.axis2.client.Options;

 import org.apache.axis2.client.ServiceClient;

 public class AXIOMClient {

 private static EndpointReference targetEPR = new 

EndpointReference(http://www.dagorsoftware.com/webservicedemo/service.asmx;
);

 public static OMElement sendRequest(String symbol, String price) {

 OMFactory fac = OMAbstractFactory.getOMFactory();

 OMNamespace omNs = 
 fac.createOMNamespace(http://tempuri.org/HelloWho;, tns);

 OMElement method = fac.createOMElement(HelloWho, omNs);

 OMElement value1 = fac.createOMElement(firstName, omNs);

 value1.addChild(fac.createOMText(value1, symbol));

 method.addChild(value1);

 OMElement value2 = fac.createOMElement(lastName, omNs);

 value2.addChild(fac.createOMText(value2,price));

 method.addChild(value2);

 return method;

 }

 public static void main(String[] args) {

 try {

 //OMElement getPricePayload = getPricePayload(WSO);

 OMElement updatePayload = sendRequest(WSO, 123.42);

 Options options = new Options();

 options.setTo(targetEPR);

 options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

 ServiceClient sender = new ServiceClient();

 sender.setOptions(options);

 OMElement result = sender.sendReceive(updatePayload);

 System.out.println( result :  + result.getFirstElement().getText());

 } catch (Exception e) {

 e.printStackTrace();

 }

 }

 

 This is the error I receive:

 [java] org.apache.axis2.AxisFault: Server did not recognize the value 
 of HTTP Header SOAPAction: urn:anonOutInOp.

 [java] at 

org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486
)

 [java] at 

org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx
isOperation.java:343)

 [java] at 

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
n.java:389)

 [java] at 

org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
peration.java:211)

 [java] at 
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

 [java] at 
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)

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

 [java] at samples.quickstart.clients.AXIOMClient.main(AXIOMClient.java:59)

 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 [java] at 

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

 [java] at 

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

 [java] at java.lang.reflect.Method.invoke(Method.java:324)

 [java] at 
 org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)

 [java] at 
 org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)

 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)

 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)

 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)

 [java] at 
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 [java] at 

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

 [java] at 

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

 [java] at java.lang.reflect.Method.invoke(Method.java:324)

 [java] at 


Namespace problem or data type problem?

2007-10-17 Thread foo shyn

Hi guys,

I'd face another issue while trying to connect to the third party web 
services using Axis 1.4 Client.


I have a few parameters that i need to pass over as short, from the SOAP 
envelope that i get, i find that the message is send through this format:


ParamName href=#id0/

where the href refers to the multiRef tag at the bottom

multiRef id=id0 soapenc:root=0 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xsi:type=xsd:short 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;123/multiRef


Is it possible to configure my client so that the message is sent in the

ParamName xsi:type=xsd:short123/ParamName

format?

Thanx
FooShyn



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



Issue with exception handling for 'InOnly' methods

2007-10-17 Thread Ashish Arya
Hi All,

 

I am using Axis2 1.3 and have issues with exception handling especially
for 'InOnly' type of operations.

 

I noticed that if we throw a runtime exception from skeleton incase of
'InOut' type of operations, the exception is properly wrapped in
AxisFault and available at client side. But the same logic is not
working with 'InOnly' type of operations. When monitored through TCPMON,
I was expecting SOAP fault response, but there is no response incase of
'InOnly' type of operations and hence client don't get any exception.

 

I guess this is incorrect. 'InOnly' methods can also throw some
exception and the same should be navigated back to client.

 

I am not sure, if I am missing anything. Please help me to resolve the
issue.

 

Thanks and Regards,

 

Ashish

 

 



XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Luposlip
HI there gurus,

I've generated a SOAP based service with WSDL2Java (AXIS2 1.2). The issue is
that it doesn't include a XML declaration as the first line in the response
documents.
Could you please tell me how to do this?

Thanks a bunch!


Re: Axis2: howto handle custom mustUnderstand Headers

2007-10-17 Thread Andreas Schultz
Hi,

Thanks for you help, i have it working now.

It might be noteworthy that the mustUnderstand validation is executed
after the  inFlow is complete but before the message receiver is
invoked. So doing the header processor in the invokeBusinessLogic()
method of a generate ADB binding is to late.

I have now written my own in flow handler that processes the incoming
headers and a out flow handler that adds the headers in the response.

Andreas

On 10/16/07, ROSSILLE Samuel [EMAIL PROTECTED] wrote:
 Hi

 messageContext.getEnvelope().getHeader().examineAllHeaderBlocks()
 gives you an Iterator over all the SOAPHeaderBlock of the message

 hb.getMustUnderstand()
 tells you if a the SOAPHeaderBlock hb must be understood.

 hb.setProcessed()
 tells Axis that your program understands a the SOAPHeaderBlock hb and has 
 correctly completed it's processing.

 Regards
 Samuel Rossille

 -Message d'origine-
 De: Andreas Schultz [mailto:[EMAIL PROTECTED]
 Envoyé: mardi 16 octobre 2007 15:54
 À: axis-user@ws.apache.org
 Objet: Axis2: howto handle custom mustUnderstand Headers

 Hi all,

 I need to handle custom header fields that have the mustUnderstand
 attribute set to true(1).
 Currently such an invocation triggers a fault:
 org.apache.axis2.AxisFault: Must Understand check failed for header : MyID

 Searching the maillinglist has turned up a references to a
 MustUnderstandChecker, but i don't understand how i tell it what
 header elements are supported.

 Is there a magic trick to tell axis which headers my service likes?

 Regards
 Andreas

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

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



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



[Axis2] saaj SOAPMessage writeTo

2007-10-17 Thread Cencio

Hi all,

if i make the writeTo() of a message with attachment it write only the
envelope, skipping the rest.. it's correct? 
If it is, how do i can write the entire message (so i can rebuild it for
later uses)? 



Thx 4 any help,
Lorenzo


Sample service to test it:

import java.io.File;
import java.io.FileOutputStream;
import java.util.Iterator;
import javax.xml.soap.AttachmentPart;
import javax.xml.soap.MimeHeader;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.Provider;
import javax.xml.ws.ServiceMode;
import javax.xml.ws.WebServiceProvider;
import javax.xml.ws.Service.Mode;

@ServiceMode(value=Mode.MESSAGE)
@WebServiceProvider

public class attachmentTest implements ProviderSOAPMessage{

public SOAPMessage invoke(SOAPMessage request){
try{
System.out.println(Test write resume);
System.out.println(SOAPMessage class :  +
request.getClass().getName()); 

File file = new File(/var/axis2/test/SOAPMessage.msg);
FileOutputStream fos = new FileOutputStream(file);
request..writeTo(fos);
fos.close();

Iterator it = request.getMimeHeaders().getAllHeaders();
while(it.hasNext()){
MimeHeader mh = (MimeHeader) it.next();
System.out.println(Header   + mh.getName() 
+  :  + mh.getValue());
}
Iterator att = request.getAttachments();
while(att.hasNext()){
AttachmentPart attpart = (AttachmentPart) 
att.next();
System.out.println(Attachment   + 
attpart.getContentId() );
}
}
catch(Exception e){
System.out.println(Something goes wrong!! :  + 
e.toString());
}
return request;
}
}


This is the output for my message sample:

10:37:45,149 INFO  [STDOUT] Test write resume
10:37:45,149 INFO  [STDOUT] SOAPMessage class :
org.apache.axis2.saaj.SOAPMessageImpl
10:37:45,150 INFO  [STDOUT] Header  content-length : 1443
10:37:45,150 INFO  [STDOUT] Header  cache-control : no-cache
10:37:45,150 INFO  [STDOUT] Header  host : 127.0.0.1:8000
10:37:45,150 INFO  [STDOUT] Header  user-agent : Axis/1.4
10:37:45,150 INFO  [STDOUT] Header  pragma : no-cache
10:37:45,150 INFO  [STDOUT] Header  content-type : multipart/related
10:37:45,151 INFO  [STDOUT] Header  accept : application/soap+xml,
application/dime, multipart/related, text/*
10:37:45,151 INFO  [STDOUT] Header  soapaction : 
10:37:45,151 INFO  [STDOUT] Attachment  79DCD4A4606040B6C0FD77C51F77E014
10:37:45,151 INFO  [STDOUT] Attachment  AEAD96EABAA03E66BB4C15E3DAC6E4A9

and this is the content of the file written:

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;soapenv:BodyeseguiServizio
xmlns=http://spcoop.it/cart/pdd-test;Richiestalt;persona nome=mario
cognome=rossi//RichiestaattachInZIP1 xmlns=
href=cid:79DCD4A4606040B6C0FD77C51F77E014 /attachInZIP2 xmlns=
href=cid:AEAD96EABAA03E66BB4C15E3DAC6E4A9
//eseguiServizio/soapenv:Body/soapenv:Envelope




-- 
View this message in context: 
http://www.nabble.com/-Axis2--saaj-SOAPMessage-writeTo-tf4638927.html#a13249324
Sent from the Axis - User mailing list archive at Nabble.com.


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



SOAP 1.2 support

2007-10-17 Thread Kasper Frederiksen

What version of the SOAP protocol does the current version (1.4) of
Axis implement?

I am using a system with Axis 1.1 installed, does this support the
1.2 version of the SOAP protocol?

/thanks
Kasper Frederiksen


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



Re: SOAP 1.2 support

2007-10-17 Thread foo shyn

Hi,

Personally i found that for SOAP 1.2 Axis2 is a much better choice... i 
can't use it because my vendors needs RPC...argh...


Thanx
FooShyn

Kasper Frederiksen wrote:

What version of the SOAP protocol does the current version (1.4) of
Axis implement?

I am using a system with Axis 1.1 installed, does this support the
1.2 version of the SOAP protocol?

/thanks
Kasper Frederiksen


-
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: XMLBeans: get methods returns null

2007-10-17 Thread Antonio Manuel Muñiz Martín
Thanks Amila, thanks Robert. I found the problem, it isn´t a bug.

I used XStream for transform schema domain objects to ResponseDocument.
XStream generates the xml representation:

fully.qualified.name.Foo
   foo3content/foo1
   foo3content/foo2
   foo3content/foo3
fully.qualified.name.Foo

and response looks like this:
...
return
   fully.qualified.name.Foo
  foo3content/foo1
  foo3content/foo2
  foo3content/foo3
   fully.qualified.name.Foo
/return
...
With this return get and set methods of schema classes generated by axis
returns null.
The problem is the FQN which Xstream include. Axis2 1.3 client side
libraries requires:

return
  foo3content/foo1
  foo3content/foo2
  foo3content/foo3
/return

With this response axis work fine.

Thanks for all.
Antonio.

2007/10/16, robert lazarski  [EMAIL PROTECTED]:

 What version of axis2 are you using? If not using 1.3 , try upgrading
 to that if possible. This seems like an old bug.

 If you are using axis2 1.3, try pasting your code and wsdl and maybe
 someone can help.

 Robert

 On 10/16/07, Antonio Manuel Muñiz Martín  [EMAIL PROTECTED]
 wrote:
  Hi.
  I´m using XMLBeans data binding. I receive the response Document and I
 do
 
  Foo f = response.getFooResponse ().getReturn();
 
  Foo has an attribute named foo and
 
  f.getFoo() returns null, but f.toString () return a string which
 contains
  the correct xml (with foo attribute fixed).
 
  ¿Why f.getFoo() returns null?
 

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




Axis does not find my external libs

2007-10-17 Thread Vincent Pretre

Hi everyone,

I am trying to produce a web services which interacts with a mysql  
database. I use connector/j to do this, but when I try to call one of  
my web service operations, I get an error  
java.lang.ClassNotFoundException: Class Not found :  
org.gjt.mm.mysql.Driver.

The connector/j jar is in $JAVA-HOME/lib/ext.

The code for the database connection works in a simple java class  
(just compiled using javac without any option), but not in my web  
service.


I'm not a Java guru so I've certainly missed something.

Thanks,
Vincent

PS: the code that does not work is Class.forName 
(org.gjt.mm.mysql.Driver).newInstance();

Re: Axis does not find my external libs

2007-10-17 Thread Upul Godage
Put the connector/j jar in the aar archive's lib folder.

In the service class,
ClassLoader classLoader = getClass().getClassLoader();
Class.forName(org.gjt.mm.mysql.Driver , true, classLoader).newInstance();

Upul


On 10/17/07, Vincent Pretre [EMAIL PROTECTED] wrote:

 Hi everyone,
 I am trying to produce a web services which interacts with a mysql
 database. I use connector/j to do this, but when I try to call one of my web
 service operations, I get an error java.lang.ClassNotFoundException:
 Class Not found : org.gjt.mm.mysql.Driver.
 The connector/j jar is in $JAVA-HOME/lib/ext.

 The code for the database connection works in a simple java class (just
 compiled using javac without any option), but not in my web service.

 I'm not a Java guru so I've certainly missed something.

 Thanks,
 Vincent

 PS: the code that does not work is Class.forName(org.gjt.mm.mysql.Driver
 ).newInstance();



IllegalAccessError

2007-10-17 Thread Kahler, Jason J (US SSA)
So I am very close to getting my Web Service ported to Axis2.
I am using hibernate so I put the hibernate jars under axis2/WEB-INF/lib
As well as a jar with my mapping files. When the jar with mapping files
was in
The aar my hibernate session loading code couldn't find them. Now that
the jar w/ mapping files is under WEB-INF
Lib it finds them, but I get an IllegalAccessError 


Caused by: java.lang.IllegalAccessError: tried to access method
org.hibernate.cfg.Mappings.init(Ljava/util/Map;Ljava/util/Map;Ljava/ut
il/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava
/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/
Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/u
til/Map;)V from class org.hibernate.cfg.ExtendedMappings
at
org.hibernate.cfg.ExtendedMappings.init(ExtendedMappings.java:65)
at
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(Annotat
ionConfiguration.java:175)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationCo
nfiguration.java:263)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
283)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotation
Configuration.java:915)
at
com.bae.nedc.wfnp.util.HibernateUtil.clinit(HibernateUtil.java:26)

Do I need to do something with security settings or something ? 

Thanks;
Jay


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



Re: SOAP 1.2 support

2007-10-17 Thread Anne Thomas Manes
Axis 1.4 supports SOAP 1.2 -- use the SOAP 1.2 Constants.

Anne

On 10/17/07, Kasper Frederiksen [EMAIL PROTECTED] wrote:
 What version of the SOAP protocol does the current version (1.4) of
 Axis implement?

 I am using a system with Axis 1.1 installed, does this support the
 1.2 version of the SOAP protocol?

 /thanks
 Kasper Frederiksen


 -
 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: Namespace problem or data type problem?

2007-10-17 Thread Anne Thomas Manes
Use the sendMultiRefs=false attribute in the client configuration file.

Anne

On 10/17/07, foo shyn [EMAIL PROTECTED] wrote:
 Hi guys,

 I'd face another issue while trying to connect to the third party web
 services using Axis 1.4 Client.

 I have a few parameters that i need to pass over as short, from the SOAP
 envelope that i get, i find that the message is send through this format:

 ParamName href=#id0/

 where the href refers to the multiRef tag at the bottom

 multiRef id=id0 soapenc:root=0
 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
 xsi:type=xsd:short
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;123/multiRef

 Is it possible to configure my client so that the message is sent in the

  ParamName xsi:type=xsd:short123/ParamName

 format?

 Thanx
 FooShyn



 -
 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: Providing a custom schema for validation

2007-10-17 Thread Anne Thomas Manes
You can put the schema into the META-INF, and it should be accessible
via a ?schema query (or maybe ?xsd).

You will need to build your own WSDL (import the schema into the
types section) and put it into the META-INF to make it available to
consumers.

Anne

On 10/16/07, Dimitris Mouchritsas [EMAIL PROTECTED] wrote:
 Hi again, I've written a couple of services using the
 RawXMLInOutReceiver, so my methods (operations) look like:

 public  OMElement myOperation(OMElement xml) {
   // do stuff
 }

 I also managed to create my schema for the service and I'm validating by
 using a new File(my_schema_file); to read the schema.
 1) Is there a way I can put it on the server and get it via the uri?
 2) Can I tell services.xml where to find the schema, so it can produce a
 proper wsdl file?

 -
 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: Unable to Pass values of type LONG from .NET client to Java webservice

2007-10-17 Thread Anne Thomas Manes
The .NET client generates its message structure based on the schema
that's defined in the WSDL. Make sure that the WSDL describes the
value object correctly in XML Schema.

Anne

On 10/17/07, Raghavan [EMAIL PROTECTED] wrote:
 Hi,

 We have a java web service running in Axis 1.3 that accepts a java value
 object as input parameter. The value object has some variables of java
 data type String and long.

 The .NET client sets the value for these variables and sends it as the
 input parameter to the java web service.

 When we check the SOAP message coming from the .NET client we see that
 the variables of type long are no longer available as part of the value
 object. (ie)when we receive the value object and print out the values,
 only string value is printed and the long value is no longer available.

 Any help would be appreciated

 Thanks in advance,
 Raghavan.V.


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



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



Re: How to tell JBOSS/AXIS to create WSDL on the fly with style=WRAPPING/LITERAL?

2007-10-17 Thread Anne Thomas Manes
It all sounds fine until you mentioned the .jws file. You should not
be using the .jws deployment option. It supports rpc/encoded only.

Anne

On 10/16/07, M N [EMAIL PROTECTED] wrote:
 Jeff

 Thanks for reply.appreciate it.

 This is how I have done my thing. I am new to WS so starting from WSDL seems
 tough.

 1) I have a Java class which has a method getName(String idstring)
 2) I run ANT JAVA2WSDL with STYLE = wrapped option.
 3) This creates the WSDL file.
 4) Then I run WSDL2JAVA on wsdl file to create client java stubs. It also
 creates the deploy.wsdd and undeploy.wsdd files.
 5) The deploy.wsdd file is then fed to
 org.apache.axis.utils.Admin to create the server-deploy.wsdd file.
 6) I place the server-deploy.wsdd file under /WEB-INF/ directory. This wsdd
 file has wrapped/literal declarations.
 7) Start JBOSS . I have a servlet which uses the client stubs created in
 step 4 to call webservice and it runs fine.
 8) But when I create WSDL using the link in my previous email I see RPC /
 SOAP encoding.

 So my question is how do I know the JBOSS server read server-deploy.wsdd and
 deployed the WS correctly. I have the .jws file outside the /WEB-INF/
 directory.

 Thanks
 MN




 Walker, Jeff [EMAIL PROTECTED] wrote:

 Ok,
 so I don't think that's right. Did you mean style=wrapped ? Also, you
 can't tell the browser to format it as wrapped. The browser has no idea what
 'wrapped' or 'document' or 'RPC encoded' means. Its just plain xml to a
 browser. Not sure what JBOSS allows, but I'm pretty sure it has no idea what
 wrapped/document/rpc endocded is either.

 Whatever the wsdl format is that they see, is what you have created. If they
 see rpc encoded, then your web service follows that style. (In other words,
 I don't think you are using document or wrapped yet). These are the basic
 characteristics of the document/literal wrapped pattern:



 The input message has a single part. (One object passed in).
 The part is an element in the schema.
 The element has the same name as the operation. (Wierd Microsoft preferred
 convention here. The input object has the same name as the operation itself.
 Very strange. Try writing a project in a computer science course in college
 and do that, name a parameter the same name as the operation that takes it
 and see what mark you get! Fortunately, wsdl is flexible and this can easily
 be done).
 The element's complex type has no attributes. (Another Microsoft convention;
 to simplify class construction, I'm guessing).
 Here are the strengths and weaknesses of this approach:
 Strengths

 There is no type encoding info. (Finally, something useful from this wrapped
 idea).
 Everything that appears in the soap:body is defined by the schema, so you
 can easily validate this message. (Great idea!)
 Once again, you have the method name in the SOAP message. (Good for routing
 requests I suppose, but one wonders what web services will look like 5 years
 from now if we no longer use OO and we don't have methods in classes
 anymore?)
 Document/literal is WS-I compliant, and the wrapped pattern meets the WS-I
 restriction that the SOAP message's soap:body has only one child.
 Weaknesses

 The WSDL is more complicated. (Only slightly, really. And considering we can
 easily develop .NET clients from the wsdl now, it's worth it).

 I recommend you use style=document. The wrapped part is just the way you
 organize message parts in your wsdl to follow a convention originally
 defined by Microsoft and later ratified by the WSI for interoperability. So,
 to play with Microsoft nicely, we bend a little and adopt their wrapped
 style.

 One more thing, I don't start with a Java interface and run it through
 Java2WSDL. I usually use WSDL2Java, that is, I start with WSDL first
 (contract-first approach) and then generate the Java from that. (Afterall,
 if your'e a client trying to communicate to a web service, you get the wsdl
 given to you and that's usually about all you get. So, why not get the wsdl
 down-pat first?)
 -jeff



  
  From: M N [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2007 4:29 PM
 To: axix axis
 Subject: How to tell JBOSS/AXIS to create WSDL on the fly with
 style=WRAPPING/LITERAL?



 I have installed java webservice on JBOSS using AXIS 1.4. I created the WSDL
 using ANT-java2wsdl tool. Using this tool I can specify the
 STYLE=WRAPPING. This works fine.
 But when the user creates the WSDL on the fly by pointing to browser
 http://100.11.8.330:8080/okayapp/CustAccountService.jws?wsdl
 he gets a WSDL in browser which is RPC encoded. How can I tell browser or
 JBOSS to provide style=WRAPPING/LITERAL wsdl on the fly?
  
  Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.


  
 Shape Yahoo! in your own image. Join our Network Research Panel today!



-
To unsubscribe, 

Re: Axis 1.4 - (405) Method Not Allowed

2007-10-17 Thread Martin Gainty
Jeff Walkers note from yesterday where he explained all of the styles
(binding of RPC/document and use of encoded or literal)
to quote Microsoft supports ONLY the doc/lit/wrapped style but dont use this
for overloaded methods
an example of which is

types
schema
element name=myMethod
complexType
sequence
element name=x type=xsd:int/
element name=y type=xsd:float/
/sequence
/complexType
/element
element name=myMethodResponse
complexType/
/element
/schema
/types
message name=myMethodRequest
part name=parameters element=myMethod/
/message
message name=empty
part name=parameters element=myMethodResponse/
/message
portType name=PT
operation name=myMethod
input message=myMethodRequest/
output message=empty/
/operation
/portType

Here is the a very good tutorial from Jeff's email (located on IBM
developerworks)
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/

Martin--
- Original Message -
From: foo shyn [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, October 16, 2007 10:55 PM
Subject: Re: Axis 1.4 - (405) Method Not Allowed


 Hi,

 Ya i asked and they told me that they don't see any log there, thus i
 only can rely on the information i get from my own log.

 Headache.

 Thanx
 FooShyn

 M N wrote:
  can u ask the other party if they see any error traces in their log?
 
  */foo shyn [EMAIL PROTECTED]/* wrote:
 
  Hi guys,
 
  I'm new to the list, so pardon me if my question sounds dumb.
 
  I'm trying to connect to a third party web services (which is
  developed
  using microsoft tools) and i had used Axis 1.4 components to
  create my
  client. I got the stub generated and run it in my own servlet.
  However
  when i try to call the web services i got a (405)Method Not
Allowed
  error from the web.
 
  I'm thinking of the possibility of the method that i use is not
  allow.
  Since Axis is defaulted to process its request in Post method, i'm
  not
  sure whether i can alter that. Does anyone have any idea on how to
  do this?
 
  Here's a portion of my debug log from Axis:
 
  16 Oct 2007 20:01:17,859 %- HTTP/1.1 405 Method not allowed
  16 Oct 2007 20:01:17,859 %- Server Microsoft-IIS/5.0
  16 Oct 2007 20:01:17,859 %- Date Tue, 16 Oct 2007 12:21:32 GMT
  16 Oct 2007 20:01:17,875 %- Allow OPTIONS, TRACE, GET, HEAD
  16 Oct 2007 20:01:17,875 %- Content-Length 3923
  16 Oct 2007 20:01:17,875 %- Content-Type text/html
  16 Oct 2007 20:01:17,890 %-
  org.apache.axis.i18n.resource::handleGetObject(return01)
  16 Oct 2007 20:01:17,890 %- (405)Method not allowed
  16 Oct 2007 20:01:17,906 %- Enter: SOAPPart ctor(FORM_FAULT)
  16 Oct 2007 20:01:17,906 %-
  org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
  16 Oct 2007 20:01:17,906 %- Setting current message form to:
  FORM_FAULT
  (currentMessage is now org.apache.axis.AxisFault)
  16 Oct 2007 20:01:17,906 %- Exit: SOAPPart ctor()
  16 Oct 2007 20:01:17,906 %-
  org.apache.axis.i18n.resource::handleGetObject(toAxisFault00)
  16 Oct 2007 20:01:17,906 %- NSPush (32)
  16 Oct 2007 20:01:17,921 %-
  org.apache.axis.i18n.resource::handleGetObject(empty00)
  16 Oct 2007 20:01:17,921 %- NSPop (empty)
  16 Oct 2007 20:01:17,921 %- NSPush (32)
  16 Oct 2007 20:01:17,937 %-
  org.apache.axis.i18n.resource::handleGetObject(empty00)
  16 Oct 2007 20:01:17,937 %- NSPop (empty)
  16 Oct 2007 20:01:17,906 %- Mapping Exception to AxisFault
 
  Any suggestion or idea are welcome.
 
  Thanx
  FooShyn
 
 

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  Pinpoint customers
 
http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/spon
soredsearch_v9.php?o=US2226cmp=Yahooctv=AprNIs=Ys2=EMb=50who
  are looking for what you sell.
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.488 / Virus Database: 269.14.13/1074 - Release Date:
10/16/2007 2:14 PM
 



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




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



RE: How to tell JBOSS/AXIS to create WSDL on the fly with style=WRAPPING/LITERAL?

2007-10-17 Thread Walker, Jeff
I suspect the style=wrapped isn't working.
Can you post your wsdl and deploy.wsdd files?
 
If your not allowed for security reasons, then can you search in your
wsdl file for something like this: soap:binding style=rpc or
soap:binding style=document
and post the lines from your deploy.wsdd that start with: service name=
-jeff
 
  _  

From: M N [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 16, 2007 5:56 PM
To: axis-user@ws.apache.org
Subject: RE: How to tell JBOSS/AXIS to create WSDL on the fly with
style=WRAPPING/LITERAL?



Jeff
 
Thanks for reply.appreciate it.
 
This is how I have done my thing. I am new to WS so starting
from WSDL seems tough.
 
1) I have a Java class which has a method getName(String
idstring)
2) I run ANT JAVA2WSDL with STYLE = wrapped option.
3) This creates the WSDL file.
4) Then I run WSDL2JAVA on wsdl file to create client java
stubs. It also creates the deploy.wsdd and undeploy.wsdd files.
5) The deploy.wsdd file is then fed to 
org.apache.axis.utils.Admin to create the server-deploy.wsdd
file.
6) I place the server-deploy.wsdd file under /WEB-INF/
directory. This wsdd file has wrapped/literal declarations.
7) Start JBOSS . I have a servlet which uses the client stubs
created in step 4 to call webservice and it runs fine.
8) But when I create WSDL using the link in my previous email I
see RPC / SOAP encoding.
 
So my question is how do I know the JBOSS server read
server-deploy.wsdd and deployed the WS correctly. I have the .jws file
outside the /WEB-INF/ directory.
 
Thanks
MN
 


Walker, Jeff [EMAIL PROTECTED] wrote:

Ok,
so I don't think that's right. Did you mean
style=wrapped ? Also, you can't tell the browser to format it as
wrapped. The browser has no idea what 'wrapped' or 'document' or 'RPC
encoded' means. Its just plain xml to a browser. Not sure what JBOSS
allows, but I'm pretty sure it has no idea what wrapped/document/rpc
endocded is either.
 
Whatever the wsdl format is that they see, is what you
have created. If they see rpc encoded, then your web service follows
that style. (In other words, I don't think you are using document or
wrapped yet). These are the basic characteristics of the
document/literal wrapped pattern:

*   The input message has a single part. (One object
passed in). 
*   The part is an element in the schema. 
*   The element has the same name as the operation.
(Wierd Microsoft preferred convention here. The input object has the
same name as the operation itself. Very strange. Try writing a project
in a computer science course in college and do that, name a parameter
the same name as the operation that takes it and see what mark you get!
Fortunately, wsdl is flexible and this can easily be done). 
*   The element's complex type has no attributes.
(Another Microsoft convention; to simplify class construction, I'm
guessing).

Here are the strengths and weaknesses of this approach:
Strengths

*   There is no type encoding info. (Finally,
something useful from this wrapped idea). 
*   Everything that appears in the soap:body is
defined by the schema, so you can easily validate this message. (Great
idea!) 
*   Once again, you have the method name in the SOAP
message. (Good for routing requests I suppose, but one wonders what web
services will look like 5 years from now if we no longer use OO and we
don't have methods in classes anymore?) 
*   Document/literal is WS-I compliant, and the
wrapped pattern meets the WS-I restriction that the SOAP message's
soap:body has only one child. 

Weaknesses

*   The WSDL is more complicated. (Only slightly,
really. And considering we can easily develop .NET clients from the wsdl
now, it's worth it).

 
I recommend you use style=document. The wrapped part
is just the way you organize message parts in your wsdl to follow a
convention originally defined by Microsoft and later ratified by the WSI
for interoperability. So, to play with Microsoft nicely, we bend a
little and adopt their wrapped style.
 
One more thing, I don't start with a Java interface and
run it through Java2WSDL. I usually use WSDL2Java, that is, I start with
WSDL first (contract-first approach) and then generate the Java from
that. (Afterall, if your'e a client trying to communicate to a web
service, you get the wsdl given to you and that's usually about all you
get. So, why not get the wsdl down-pat first?)
-jeff

 

  _  

From: M N 

Re: IllegalAccessError

2007-10-17 Thread Martin Gainty
Jason-

This means the (catalina) container is not allowing access to the hibernate
code
try granting the necessary permissions in
$CATALINA_HOME/conf/catalina.policy
e.g.
grant codeBase file:${catalina.home}/webapps/axis2/WEB-INF/LIB/- {
permission java.lang.RuntimePermission
accessClassInPackage.org.hibernate.*;
};

HTH/
Martin--
- Original Message -
From: Kahler, Jason J (US SSA) [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Wednesday, October 17, 2007 8:12 AM
Subject: IllegalAccessError


So I am very close to getting my Web Service ported to Axis2.
I am using hibernate so I put the hibernate jars under axis2/WEB-INF/lib
As well as a jar with my mapping files. When the jar with mapping files
was in
The aar my hibernate session loading code couldn't find them. Now that
the jar w/ mapping files is under WEB-INF
Lib it finds them, but I get an IllegalAccessError


Caused by: java.lang.IllegalAccessError: tried to access method
org.hibernate.cfg.Mappings.init(Ljava/util/Map;Ljava/util/Map;Ljava/ut
il/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava
/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/
Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/u
til/Map;)V from class org.hibernate.cfg.ExtendedMappings
at
org.hibernate.cfg.ExtendedMappings.init(ExtendedMappings.java:65)
at
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(Annotat
ionConfiguration.java:175)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationCo
nfiguration.java:263)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
283)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotation
Configuration.java:915)
at
com.bae.nedc.wfnp.util.HibernateUtil.clinit(HibernateUtil.java:26)

Do I need to do something with security settings or something ?

Thanks;
Jay


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



question

2007-10-17 Thread mathieu fabre
Hi,

i use axis2 with tomcat and i don't know axis2 very well.
i have made a simple service, and i wrote a client which use the client
stub.
i want to use my own transport, so i made a simple jar that contain the
minimum
files like http protocol.(i begin to copy the http protocol and i will write
changes after).
I change the axis2.xml file and my server is using my jar for the transport.
But i don't know how to do the same thing for the client because the client
use the axis2-kernel.jar
which contain normal version of the http transport.

How could i force the client to use my jar for the transport..?

thank in advance.

mathieu Fabre

(sorry for my english, i'm french)


RE: IllegalAccessError

2007-10-17 Thread Kahler, Jason J (US SSA)
I tried your suggestion but I still get the same error. Note that class
in the stacktrace HibernateUtil is my utility class to initialize a
hibernate session. It lives in a jar under my aar/lib dir. The hibernate
classes all live in jars under axis2/WEB-INF/lib. Is that a problem ?

java.lang.IllegalAccessError: tried to access method
org.hibernate.cfg.Mappings.init(Ljava/util/Map;Ljava/util/Map;Ljava/ut
il/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava
/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/
Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/u
til/Map;)V from class org.hibernate.cfg.ExtendedMappings
at
org.hibernate.cfg.ExtendedMappings.init(ExtendedMappings.java:65)
at
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(Annotat
ionConfiguration.java:175)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationCo
nfiguration.java:263)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
283)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotation
Configuration.java:915)
at
com.bae.nedc.wfnp.util.HibernateUtil.clinit(HibernateUtil.java:26)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.catalogConfigExists(WF
NPConfiguration.java:79)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.getConfig(WFNPConfigur
ation.java:56)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.getStagingPath(WFNPCon
figuration.java:172)
at
com.bae.nedc.wfnp.create.HoldingManager.init(HoldingManager.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:52)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:640)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:626)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:381)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:140)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:248)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:950)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:740)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:417)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:140)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:273)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:346)
at wfnp.SpringInit.startUp(SpringInit.java:23)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(Ser
viceBuilder.java:469)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde
r.java:184)
at

Re: question

2007-10-17 Thread Upul Godage
Just like in the server side, there is an axis2.xml to configure the client
side. It is in the axis2-kernel.jar.
For example the following line uses that axis2.xml to configure itself by
default.
ServiceClient serviceClient = new ServiceClient ();
Either you can remove that file and put a changed axis2.xml in the
classpath.

Instead you can give an axis2.xml and repository as follows,
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
axis2RepoLocation, axis2XmlLocation);
ServiceClient serviceClient = new ServiceClient(configContext , null)

When using the stub there will be constructor which takes a given
configuration object.
Stub stub = new Stub(configContext, epr);

Good luck

Upul


On 10/17/07, mathieu fabre [EMAIL PROTECTED] wrote:


 Hi,

 i use axis2 with tomcat and i don't know axis2 very well.
 i have made a simple service, and i wrote a client which use the client
 stub.
 i want to use my own transport, so i made a simple jar that contain the
 minimum
 files like http protocol.(i begin to copy the http protocol and i will
 write changes after).
 I change the axis2.xml file and my server is using my jar for the
 transport.
 But i don't know how to do the same thing for the client because the
 client use the axis2-kernel.jar
 which contain normal version of the http transport.

 How could i force the client to use my jar for the transport..?

 thank in advance.

 mathieu Fabre

 (sorry for my english, i'm french)



Re: axis question revisited

2007-10-17 Thread Chad DeBauch
There is a property that you need to set in your services.xml file if you
are using spring.  Do some searching and you should find what that property
is.

Chad

On 10/16/07, Kahler, Jason J (US SSA) [EMAIL PROTECTED] wrote:

  Thanks you for all your help.



 The 1 thing that still confuses me is this.

 I started loading my classes from a jar using spring as per the tutorial
 online.

 It looks like my class is loading via spring. I have told spring to use
 the Services Classloader.

 But the class I load via spring eventually throws a NoClassDefFoundError
 due to org/dom4j/yada

 A dependency of a Hibernate configuration class.


  --

 *From:* Chad DeBauch [mailto:[EMAIL PROTECTED]
 *Sent:* Tuesday, October 16, 2007 10:52 AM
 *To:* Kahler, Jason J (US SSA); axis-user@ws.apache.org
 *Subject:* Re: axis question revisited



 This is the biggest headache with Axis2.  Typically the only time you have
 to worry about the ClassLoader is when your classes need access to
 resources.   If your jars do this and don't provide methods for passing a
 ClassLoader or don't provide a way to pass the resource, then you are forced
 to put that jar in the WEB-INF/lib directory.

 Chad

 On 10/16/07, *Kahler, Jason J (US SSA)* [EMAIL PROTECTED]
 wrote:

 Thanks Chad.



 I would prefer to have my services entirely contained in the aar file.

 The problem is that my service Impl is in jar A and uses jar B.

 The code in jar B knows nothing about MessageContext or the Web Service
 for that matter.

 So if I load the top level class from jar B using
 MessageContext.getCurrentMessageContext
 ().getAxisService().getClassLoader();

 Will all the subsequently loaded classes be able to grab everything they
 need form the aar file ?



 Sorry I am so dense, but these issues are new to me.



 Thanks;

 Jay


  --

 *From:* Chad DeBauch [mailto:[EMAIL PROTECTED]
 *Sent:* Monday, October 15, 2007 9:48 PM
 *To:* Kahler, Jason J (US SSA); axis-user@ws.apache.org
 *Subject:* Re: axis question revisited



 The easiest way I have found to get past this issue temporarily, or if you
 don't care about having your web services be modular, you can dump your jars
 in the WEB-INF/lib directory.  This way you don't have to worry about the
 ClassLoader.  If you don't want to take that approach here is how you get
 the ClassLoader from the aar:

 MessageContext.getCurrentMessageContext
 ().getAxisService().getClassLoader();

 Depending on what application server you are deploying your app to, the
 app server may load jars before they load the ones in your app, causing
 ClassNotFound or MethodNotFound Excpetions.

 Chad

 On 10/15/07, *Kahler, Jason J (US SSA)* [EMAIL PROTECTED]
 wrote:

 Can you give an example ?





 The jars in your lib aar directory will be loaded in a separate
 classloader.  So you must reference those classes using that classloader.
 You can do this by getting the MessageContext.

 Chad

 On 10/12/07, *Kahler, Jason J (US SSA)* [EMAIL PROTECTED]
 wrote:

 I am building my aar using the maven2 pluggin. Everything builds but when
 I deploy I get NoClassDefFound
 ERRORS all over. This was working as a war in tomcat using axis 1. All the
 required jars are in



 myArr.arr/lib what could be wrong ?



 Jay









Rampart Policy.xml

2007-10-17 Thread Tirtza Bernstein
Does anyone have an example of a policy.xml file that has signature only
symmetricBinding?
Thanks.


RE: sending calendar object in axis stub

2007-10-17 Thread Walker, Jeff
Senthivel,
I don't know how to do that.
Sorry.
-jeff


  _  

From: Senthivel U S [mailto:[EMAIL PROTECTED]

Sent: Tuesday, October 16, 2007 2:52 AM
To: axis-user@ws.apache.org
Subject: RE: sending calendar object in axis stub



Hi Jeff,

 

Thanks for your clue. I have sorted out the issue. Now I am
trying to sign. Please throw me some light how to engage the security
modules only for created stub. I have tried this, but it gives the
error, Security token not found.

 

My code:

 

URL endPointURL = new URL(http:// );

EngineConfiguration config = new FileProvider(services.xml);

Service service = new Service();

DefaultSoapStub stub = new DefaultSoapStub(endPointURL,
service);

 

 

Service.xml is

 

service name=Default scope=application

description

Testing

/description



parameter name=OutflowSecurity

  action

itemsTimestamp/items


encryptionPropFileservice.properties/encryptionPropFile


encryptionKeyIdentifierSKIKeyIdentifier/encryptionKeyIdentifier

encryptionUseruseReqSigCert/encryptionUser

userclient/user


signaturePropFileservice.properties/signaturePropFile


passwordCallbackClasscom.unistream.client.ServiceSecurityHandler/pass
wordCallbackClass  


signatureParts{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-2
00401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.
xmlsoap.org/soap/envelope/}Body/signatureParts

 !--
optimizeParts//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue/op
timizeParts --

  /action

/parameter

/service 

 

TIA,

-senthil

 


  _  


From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 15, 2007 6:32 PM
To: axis-user@ws.apache.org
Subject: RE: sending calendar object in axis stub

 

Hi Senthil,

shame on them for writing a language-specific web serivce!

 

Anyway, if they are the authors of the web service and you are
the client, then you must have gotten the wsdl from them. The wsdl must
have a complexType in it that declares the issuedDate as non-nillable.
But I can't tell why the line
transfer.setIssueDate(Calendar.getInstance()); failed.

You'll have to debug it and step through slowly at this point to
see if the instance returned from Calendar.getInstance() is null or not.
(If it is not null, then it is getting nulled out later before the stub
attempts to serialize everything).

This is my guess.

-jeff

 


  _  


From: Senthivel U S [mailto:[EMAIL PROTECTED]

Sent: Monday, October 15, 2007 9:38 AM
To: axis-user@ws.apache.org
Subject: RE: sending calendar object in axis stub

Hi Jeff,

 

Thanks for your comments and I do agree with you. The
service was deployed by third party and I want to consume the service. I
have created my stub using wsdl (Eclipse IDE).

 

TIA,

-senthil

 

 


  _  


From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 15, 2007 5:08 PM
To: axis-user@ws.apache.org
Subject: RE: sending calendar object in axis stub

 

Hi Senthil,

Don't pass language specific constructs like Calendar,
in a web service call.

 

You are better taking the less obvious route; just pass
the minimal amount number fo fields in the Calendar object that can be
used by a client to regenerate the equivalent object on their side. That
is, build a new complexType in XML Schema and use Doc/Lit-wrapped web
services.

 

The main reason is simply, interoperability. Even of you
know all of your clients will be Java going forward, it's bad practice
to pass language specific objects in a web service. If indeed all of
your clients will always be Java, then you would benefit from RMI or EJB
where you would get a significant speed increase. Web Services is for
interoperability across disparate systems.

Regards,

-jeff

 


  _  


From: Senthivel U S
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 15, 2007 8:27 AM
To: axis-user@ws.apache.org
Subject: sending calendar object in axis stub

Hi,


Axis2-1.3 : adb..databinding..BeanUtil issue

2007-10-17 Thread Jabber W
Hi all
In addition to Jir'ed bug (
http://issues.apache.org/jira/browse/AXIS2-3279) I'd like to add some
comments.
Fixing of mentioned bug will allow correct handling 'of xsi:type' attributes
for extended types. However, if I don't mistake, polymorphism may be also
supported by usage of 'substitutionGroup' attribute. In such case 'no
xsi:type' attribute presence is needed. BeanUtil does not support this
option as well, the base type will be instantiated according to the exposed
service signature type:

 line 345:beanObj = objectSupplier.getObject(beanClass);

The fix of this problem seems quite feasible. In simplest case, the
ObjectSupplier interface may be extended by addition one more method -

 Object getObject(Class clazz, QName elementName) throws AxisFault;

The name of element will be passed to objectSupplier. The default
objectSupplier (DefaultObjectSupplier) will ignore it, but axis2 user will
be able to register his own ObjectSupplier implementation which will allow
support of polymorphism when this is an application requirement (as in our
case). And, of course, Axis may supply its own out-of-box implementation of
such factory.

Sincerely,
Alex


RE: XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Walker, Jeff
I too have noticed this. (I use Axis1 1.4, but from what you say, it
also occurs in Axis2). 

My requests looks like:

POST /fmr-pdk-pag-soaservices/services/PaGWebService HTTP/1.0

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

Accept: application/soap+xml, application/dime, multipart/related,
text/*

User-Agent: Axis/1.3

Host: 127.0.0.1:1234

Cache-Control: no-cache

Pragma: no-cache

SOAPAction: 

Content-Length: 1731

 

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope ..some huge xml string..

 

and my responses look like:

HTTP/1.0 200 OK

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

Content-Language: en-US

Content-Length: 1482

Set-Cookie: JSESSIONID=W_MwQ1tM9VkElguugWBApVz:-1; Path=/

Date: Wed, 17 Oct 2007 14:05:32 GMT

Server: WebSphere Application Server/6.1

Expires: Thu, 01 Dec 1994 16:00:00 GMT

Cache-Control: no-cache=set-cookie, set-cookie2

 

soapenv:Envelope ..some huge xml string..

 

Notice how the request has the ?xml version=1.0 encoding=UTF-8?
line but the response does not. Is this standard web service behavior?
-jeff

 

  _  

From: Luposlip [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 4:27 AM
To: axis-user@ws.apache.org
Subject: XML-declaration in WSDL2Java generated SOAP service



HI there gurus,

I've generated a SOAP based service with WSDL2Java (AXIS2 1.2).
The issue is that it doesn't include a XML declaration as the first line
in the response documents.
Could you please tell me how to do this? 

Thanks a bunch! 



Re: XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Luposlip
I don't know if it's standard or not.
My problem is that my AXIS2-service should be digestable from a .NET
application that requires the XML declaration. .NET based SOAP services
seems to include the XML declaration at top.

Does anyone know how to make AXIS2 include the XML declaration at top of
responses?


2007/10/17, Walker, Jeff [EMAIL PROTECTED]:

  I too have noticed this. (I use Axis1 1.4, but from what you say, it also
 occurs in Axis2).

 My requests looks like:

 POST /fmr-pdk-pag-soaservices/services/PaGWebService HTTP/1.0

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

 Accept: application/soap+xml, application/dime, multipart/related, text/*

 User-Agent: Axis/1.3

 Host: 127.0.0.1:1234

 Cache-Control: no-cache

 Pragma: no-cache

 SOAPAction: 

 Content-Length: 1731



 ?xml version=1.0 encoding=UTF-8?
 soapenv:Envelope ..some huge xml string..



 and my responses look like:

 HTTP/1.0 200 OK

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

 Content-Language: en-US

 Content-Length: 1482

 Set-Cookie: JSESSIONID=W_MwQ1tM9VkElguugWBApVz:-1; Path=/

 Date: Wed, 17 Oct 2007 14:05:32 GMT

 Server: WebSphere Application Server/6.1

 Expires: Thu, 01 Dec 1994 16:00:00 GMT

 Cache-Control: no-cache=set-cookie, set-cookie2



 soapenv:Envelope ..some huge xml string..



 Notice how the request has the ?xml version=1.0 encoding=UTF-8? line
 but the response does not. Is this standard web service behavior?
 -jeff


  --
 *From:* Luposlip [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, October 17, 2007 4:27 AM
 *To:* axis-user@ws.apache.org
 *Subject:* XML-declaration in WSDL2Java generated SOAP service

  HI there gurus,

 I've generated a SOAP based service with WSDL2Java (AXIS2 1.2). The issue
 is that it doesn't include a XML declaration as the first line in the
 response documents.
 Could you please tell me how to do this?

 Thanks a bunch!




Re: A little help on a newbie

2007-10-17 Thread Anne Thomas Manes
Common practice is to define the exact message structures expected and
returned in the WSDL file. This approach is more easily consumed by
application tooling than an undefined WSDL with schemas and samples.

Anne

On 10/16/07, Dimitris Mouchritsas [EMAIL PROTECTED] wrote:
 Deepal Jayasinghe wrote:
  Hi Dimitris ,
  You may use Axis2 POJO rather than using Axiom directly. Then you can
  come up with the java bean with the required properties , after that you
  can use that as the method signature. If you do so Axis2 will generate
  the correct wsdl for you.
 
  Thanks
  Deepal
 
  Hi everyone, I've started to use axis2 (version 1.2) for almost a month
  now and I'd like your help with deployment.
  Even though the service is up and working fine in my development
  environment I would like some advice
  before we need to deploy to the client.
  The messages I need to pass through, say lessons would presumably be in
  the following form:
  (I'm writing without a namespace defined but I would like one)
 
  ===
  Request:
  viewLesson lesson_id=123 /
 
  Response:
  viewLessonResponse
   titleLesson's title/title
   lessonblah blah/lesson
   date_created21/12/2006/date_created
   attached_files
   attachment
   filenamesomething.pdf/filename
   database 64 encoded data/data
/attachment
/attached_files
  /viewLessonResponse
  ===
 
  So I've written my service class like:
 
  ==
  package org.example;
 
  // import stuff
 
  public class MyService {
 
public OMElement viewLesson(OMElement xml) {
// process the element and return the xml
}
  }
  ==
 
  and in my services.xml I have a service group and say MyService in there:
  ===
 
  service name=MyService
  class=my.real.package.lifecycle.MyServiceLifeCycle
  scope=application
  targetNamespace=http://www.example.org;
 
 Description
My Description
 /Description
 
 schema schemaNamespace=http://www.example.org/
 
 module ref=logger /
 
 parameter name=ServiceClass locked=false
 org.example.MyService
 /parameter
 
 operation name=viewLesson
 messageReceiver
 
  class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
 /operation
  /service
 
  Now I know axis can't know about my data to produce a proper wsdl file,
  but what I get is weird, this is what I don't understand:
 
  wsdl:definitions targetNamespace=http://www.examle.org;
 wsdl:documentation
 My Documentation
 /wsdl:documentation
 wsdl:types
 xs:schema targetNamespace=http://www.example.org;
  attributeFormDefault=qualified elementFormDefault=qualified
 xs:element name=viewLesson
 xs:complexType
 xs:sequence
 xs:element name=viewLesson type=xs:anyType
  nillable=true/
 /xs:sequence
 /xs:complexType
 /xs:element
 xs:element name=viewLessonResponse
 xs:complexType
 xs:sequence
 xs:element name=return type=xs:anyType
  nillable=true/
 /xs:sequence
 /xs:complexType
 /xs:element
  ... Rest of stuff
  ===
 
 
  Why does viewLesson contain another element in there named viewLesson?
  And viewLessonResponse an element named return? What am I doing wrong?
  Sorry for the long post, but I tried to be as detailed as possible.
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 I see what you mean, I'll give it a try. What is the current practice in
 Web Services though? Have the exact mapping in the wsdl file or use
 arbitrary xml and provide a schema and examples to the client?

 -
 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: Axis 2 webservice in Weblogic 8.1 - Must Understand check failed for header

2007-10-17 Thread Rajesh, Peter (CLAIMS, WIP)
 
Thanks Dimuthu for you reply.

After I add the System.setProperty with the proper keystore and password
and if I execute the java test client I get below exception.

Any idea what is the reason for this error? Am I missing anything in the
configuration?  

 [java] org.apache.axis2.AxisFault: Must Understand check failed for
header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd : Security
 [java] at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 [java] at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 [java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
)
 [java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
)


Thanks  Regards,

Peter Rajesh | 860-547-3881

-Original Message-
From: Dimuthu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 16, 2007 11:55 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException


Hi,

The exception says No trusted certificate found. If the server
certificate is not a widely accepted certificate, i.e. if it doesn't
chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
you have to set some system properties as follows.

System.setProperty(javax.net.ssl.trustStore,yourpath/keystore.jks);
System.setProperty(javax.net.ssl.trustStorePassword, password);
System.setProperty(javax.net.ssl.trustStoreType,JKS);

Regards,
Dimuthu

On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
 Hi,
 
 I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL 
 enabled and when I execute the simple java client to access the 
 webservice below error is thrown
 
 Please help to resolve this issue.
 
 
  [java] org.apache.axis2.AxisFault:
 sun.security.validator.ValidatorException: No trusted certificate 
 found  .
  
  Caused by: javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: No trusted certificate 
 found
 
 
 Thanks  Regards,
 
 Peter Rajesh
 
 
 
 **
 *** 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.
 **
 ***
 
--
http://wso2.org


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



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


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



Re: Axis 1.4 and .NET interop

2007-10-17 Thread Anne Thomas Manes
If you've defined the schema separately, you can import the schema:

wsdl:types
  xsd:schema
 xsd:import namespace=[your schema namespace]
schemaLocation=[relative path to your schema file]/
  /xsd:schema
/wsdl:types

Otherwise, you can just define the schema inline.

If you run java2wsdl specifying wrapped style and literal use, it will
generate the schema for you. As long as your interface doesn't use
Collections, it should work pretty well, but you need to upgrade to
Axis 1.4. Arrays and nulls can sometimes cause a few stumbling blocks,
but you should be able to make it work.

Anne

On 10/16/07, Dimitris Mouchritsas [EMAIL PROTECTED] wrote:
 Walker, Jeff wrote:
  Anne means Document Literal Wrapped style.
  Go here to see a good definition of the 4 major styles:
  http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
  The style we are advocating means you need to write XML Schema and
  place it into your wsdl file. Then you run your wsdl file through
  WSDL2Java to generate a bunch of serializer and deserializer classes.
  The command is something like:
  %java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy
  true web_service_name.wsdl
  Regards,
  -jeff
 
 
  
  *From:* M N [mailto:[EMAIL PROTECTED]
  *Sent:* Tuesday, October 16, 2007 8:56 AM
  *To:* axis-user@ws.apache.org
  *Subject:* Re: Axis 1.4 and .NET interop
 
  Thanks Anne.
 
  when you say Java specific types I assume you talking about
  something like Collections,arraylists etc. So far I dont have
  anything like that.
 
 
 
  */Anne Thomas Manes [EMAIL PROTECTED]/* wrote:
 
  Wrapped style is the way to go. But you still might encounter
  problems
  if your service is exposing Java-specific types.
 
  Anne
 
  On 10/16/07, M N wrote:
   We have been using AXIS 1.1 ( yeah I know its old) for past
  few years with
   Jboss and everythings looks fine.We have removed the
  jbossws.sar directory
   completely.
  
   Anyway so we have this new requirement where we have to
  provide webservices
   to a .NET client. No matter what we provide .NET client
  keeps getting
   exceptions. We found yesterday that .NET does not support
  RPC transport from
   java webservices. So we decided to use DOCUMENT/LITERAL
  style in WSDL (
   created using ANT JAVA2WSDL tool) . But then even when I
  test the WS from
   Java side it keeps giving me NOT A ARGUMENT(or something
  like that) error. I
   read later on that AXIS 1.1 doesnt support the
  DOCUMENT/LITERAL style well.
   So we decided to upgrade to 1.4.
  
   I still kept getting the NOT A ERROR except when I
   mention in ANT JAVA2WSDL utility that I need WRAPPED/LITERAL
  style. Any
   other style doesnt seem to work. So now with WRAPPED/LITERAL
  style my Java
   client stubs can successfully work with Java WSs. We will be
  testing it with
   .NET tomorrow. I am wondering if it will work and there wont
  be any
   exceptions.
  
   Thanks
  
  
   
   Moody friends. Drama queens. Your life? Nope! - their life,
  your story.
   Play Sims Stories at Yahoo! Games.
  
  
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  Pinpoint customers
  
  http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226cmp=Yahooctv=AprNIs=Ys2=EMb=50who
  are looking for what you sell.
 
 Mmm, how exactly do you put your schema in your wsdl file? And is there
 a way to validate the xml comming in and out (with RawXMLInOutReceiver)
 in Java 1.4;

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



MalformedURLException with cookieless .NET web service

2007-10-17 Thread WALKER-GEOFF
Hi,

I have had years of experience as a Java developer, but I am relatively
new to setting up web services/clients.  I am trying to consume a
cookieless .NET web service with WSDL2Java generated classes, and when
my stub call invokes a web service method, I get the following
exception:

 

java.net.MalformedURLException: no protocol:
/MyWebService/(S(ieyrnf55xs45pd55yi0mjd55))/Service1.asmx

 

All of the strings in the generated Locator class used to set the
endpoint URL correctly include the fully qualified path
(http://localhost//MyWebService/Service1.asmx
http://localhost/MyWebService/Service1.asmx ).

 

As you can probably guess from the useless default names, the web
service is also mine, and when I change the web.config sessionState
properties to use cookies (which I'd rather not do), I don't get the
exception.  I will also add that I find dealing with sessions in .NET a
thorough pain!

 

So, why is Axis trying to create a URL with the sessionID-stamped path
sans protocol/server?

 

Thanks in advance for your help.

- Geoff

 

 

 



[AXIS2] Jaxws service deploy question

2007-10-17 Thread Cencio

hi all,

i try to deploy this simple service in axis2

@ServiceMode(value=Mode.MESSAGE)
@WebServiceProvider
public class simpleService implements ProviderSOAPMessage{
public SOAPMessage invoke(SOAPMessage request){
return request;
}
}

I need to point to http://localhost:8080/axis2/services/simpleService/invoke
to reach it, but it should be reached from
http://localhost:8080/axis2/services/simpleService/everything_or_nothing/i_want
... maybe i did something wrong with deployment? I used this service.xml


service name=simpleService
parameter name=ServiceClass locked=false
samples.simpleService
/parameter
messageReceivers
 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
   
class=org.apache.axis2.jaxws.server.JAXWSMessageReceiver/
/messageReceivers
/service

-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Jaxws-service-deploy-question-tf4640955.html#a13254956
Sent from the Axis - User mailing list archive at Nabble.com.


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



JBOSS webservices install help..

2007-10-17 Thread M N
This may seem more JBOSS related but I am installing AXIS within my JBOSS 
application.
   
  I have installed AXIS 1.4 in an existing application of mine /myapp/. The 
structure under jboss is 
   
  JBOSS install -- /server/default/deploy/myapp.war/
   
  Under above install I have /WEB-INF/classes, /WEB-INF/lib, 
/WEB-INF/jwsclasses. 
   
  Lets say my WS class file is myAccountService.class.
   
  If I place this class file under /WEB-INF/jwsclasses what should I have the 
location option in JAVA2WSDL command ?
   
  Thanks
  MN

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Rampart signature

2007-10-17 Thread Tirtza Bernstein
I am using Axis2-1.3 and Rampart 1.3.
I am the client and my requests need to be signed.
 
My axis.client.xml includes the following
 
 module ref=rampart /
 
 parameter name=OutflowSecurity
  action
itemsSignature/items
userwally/user
signaturePropFilecrypto.properties/signaturePropFile
 
passwordCallbackClassnet.idt.svp.security.PWCallback/passwordCallbackClas
s
signatureKeyIdentifierDirectReference/signatureKeyIdentifier
  /action
/parameter
 
parameter name=InflowSecurity
   action
 itemsSignature/items
 signaturePropFilecrypto.properties/signaturePropFile
   /action
/parameter
 
My crypto.properties 
 
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry
pto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.file=J:\svp_prime\trunk\security\test.j
ks
org.apache.ws.security.crypto.merlin.keystore.password=pswd

My Client includes the following:
_serviceClient.getOptions().setTo(new
org.apache.axis2.addressing.EndpointReference(targetEndpoint));
 
_serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
 
StAXOMBuilder builder = new StAXOMBuilder(resources/policy.xml);

Policy clientPolicy =
PolicyEngine.getPolicy(builder.getDocumentElement());
 
_serviceClient.getOptions().setProperty(RampartMessageData.KEY_RAMPART_POLIC
Y, clientPolicy);
_serviceClient.engageModule(rampart);

My problem is that I have no clue how to set up the policy.xml.  Rampart's
examples do not include an example of pure signature only (no timestamp).
 
 
Can someone supply me with an example?
Thanks.


Re: How to tell JBOSS/AXIS to create WSDL on the fly with style=WRAPPING/LITERAL?

2007-10-17 Thread M N
Anne
   
  Thanks. That explains it. So now I think I need to use the server-deploy.wsdd 
option to install WS on JBoss. I was stuck at the location option in 
ant-java2wsdl option and so had to go thru the JWS route.
   
  I have installed AXIS 1.4 in an existing application of mine /myapp/. The 
structure under jboss is 
   
  JBOSS install -- /server/default/deploy/myapp.war/
   
  Under above istall I have /WEB-INF/classes, /WEB-INF/lib, 
/WEB-INF/jwsclasses. 
   
  Lets say my WS class file is myAccountService.class.
   
  If I place this class file under /WEB-INF/jwsclasses what should I have the 
location option in JAVA2WSDL command ?
   
  Thanks
  MN
  

Anne Thomas Manes [EMAIL PROTECTED] wrote:
  It all sounds fine until you mentioned the .jws file. You should not
be using the .jws deployment option. It supports rpc/encoded only.

Anne

On 10/16/07, M N wrote:
 Jeff

 Thanks for reply.appreciate it.

 This is how I have done my thing. I am new to WS so starting from WSDL seems
 tough.

 1) I have a Java class which has a method getName(String idstring)
 2) I run ANT JAVA2WSDL with STYLE = wrapped option.
 3) This creates the WSDL file.
 4) Then I run WSDL2JAVA on wsdl file to create client java stubs. It also
 creates the deploy.wsdd and undeploy.wsdd files.
 5) The deploy.wsdd file is then fed to
 org.apache.axis.utils.Admin to create the server-deploy.wsdd file.
 6) I place the server-deploy.wsdd file under /WEB-INF/ directory. This wsdd
 file has wrapped/literal declarations.
 7) Start JBOSS . I have a servlet which uses the client stubs created in
 step 4 to call webservice and it runs fine.
 8) But when I create WSDL using the link in my previous email I see RPC /
 SOAP encoding.

 So my question is how do I know the JBOSS server read server-deploy.wsdd and
 deployed the WS correctly. I have the .jws file outside the /WEB-INF/
 directory.

 Thanks
 MN




 Walker, Jeff wrote:

 Ok,
 so I don't think that's right. Did you mean style=wrapped ? Also, you
 can't tell the browser to format it as wrapped. The browser has no idea what
 'wrapped' or 'document' or 'RPC encoded' means. Its just plain xml to a
 browser. Not sure what JBOSS allows, but I'm pretty sure it has no idea what
 wrapped/document/rpc endocded is either.

 Whatever the wsdl format is that they see, is what you have created. If they
 see rpc encoded, then your web service follows that style. (In other words,
 I don't think you are using document or wrapped yet). These are the basic
 characteristics of the document/literal wrapped pattern:



 The input message has a single part. (One object passed in).
 The part is an element in the schema.
 The element has the same name as the operation. (Wierd Microsoft preferred
 convention here. The input object has the same name as the operation itself.
 Very strange. Try writing a project in a computer science course in college
 and do that, name a parameter the same name as the operation that takes it
 and see what mark you get! Fortunately, wsdl is flexible and this can easily
 be done).
 The element's complex type has no attributes. (Another Microsoft convention;
 to simplify class construction, I'm guessing).
 Here are the strengths and weaknesses of this approach:
 Strengths

 There is no type encoding info. (Finally, something useful from this wrapped
 idea).
 Everything that appears in the soap:body is defined by the schema, so you
 can easily validate this message. (Great idea!)
 Once again, you have the method name in the SOAP message. (Good for routing
 requests I suppose, but one wonders what web services will look like 5 years
 from now if we no longer use OO and we don't have methods in classes
 anymore?)
 Document/literal is WS-I compliant, and the wrapped pattern meets the WS-I
 restriction that the SOAP message's soap:body has only one child.
 Weaknesses

 The WSDL is more complicated. (Only slightly, really. And considering we can
 easily develop .NET clients from the wsdl now, it's worth it).

 I recommend you use style=document. The wrapped part is just the way you
 organize message parts in your wsdl to follow a convention originally
 defined by Microsoft and later ratified by the WSI for interoperability. So,
 to play with Microsoft nicely, we bend a little and adopt their wrapped
 style.

 One more thing, I don't start with a Java interface and run it through
 Java2WSDL. I usually use WSDL2Java, that is, I start with WSDL first
 (contract-first approach) and then generate the Java from that. (Afterall,
 if your'e a client trying to communicate to a web service, you get the wsdl
 given to you and that's usually about all you get. So, why not get the wsdl
 down-pat first?)
 -jeff



 
 From: M N [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2007 4:29 PM
 To: axix axis
 Subject: How to tell JBOSS/AXIS to create WSDL on the fly with
 style=WRAPPING/LITERAL?



 I have installed java webservice on JBOSS using AXIS 1.4. I created the 

Re: question

2007-10-17 Thread mathieu fabre
 thanks for your answer.

i tried what you say and i create a client repository with modules (empty
directory) and services directory (empty too)
and a conf directory that contain my axis2.xml modified file.

when i run the client with my repository and my xml i obtain the message :


[W][Simple Http Server] constructor
*

org.apache.axis2.deployment.DeploymentException*:
org/apache/commons/fileupload/FileItemFactory

at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(*
AxisConfigBuilder.java:623*)

at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(*
AxisConfigBuilder.java:186*)

at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(*
DeploymentEngine.java:615*)

at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(*
FileSystemConfigurator.java:115*)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(*ConfigurationContextFactory.java:64*)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(*ConfigurationContextFactory.java:180*)

at fr.j2ltho.webcontracthelpdesk.client.WebContractMainClient.main(*
WebContractMainClient.java:14*)

Caused by: java.lang.NoClassDefFoundError: *org*
/apache/commons/fileupload/FileItemFactory

at java.lang.Class.getDeclaredConstructors0(*Native Method*)

at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

at java.lang.Class.getConstructor0(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(*
DescriptionBuilder.java:229*)

at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(*
AxisConfigBuilder.java:620*)
...

i can see that the simpleServerHttp begin to run correctly, but i have an
error after that :(

do you know why...?

thanks.

mathieu Fabre
[EMAIL PROTECTED]




2007/10/17, Upul Godage [EMAIL PROTECTED]:

 Just like in the server side, there is an axis2.xml to configure the
 client side. It is in the axis2-kernel.jar .
 For example the following line uses that axis2.xml to configure itself by
 default.
 ServiceClient serviceClient = new ServiceClient ();
 Either you can remove that file and put a changed axis2.xml in the
 classpath.

 Instead you can give an axis2.xml and repository as follows,
 ConfigurationContext configContext =
 ConfigurationContextFactory.createConfigurationContextFromFileSystem (
 axis2RepoLocation, axis2XmlLocation);
 ServiceClient serviceClient = new ServiceClient(configContext , null)

 When using the stub there will be constructor which takes a given
 configuration object.
 Stub stub = new Stub(configContext, epr);

 Good luck

 Upul


 On 10/17/07, mathieu fabre  [EMAIL PROTECTED]  wrote:
 
 
  Hi,
 
  i use axis2 with tomcat and i don't know axis2 very well.
  i have made a simple service, and i wrote a client which use the client
  stub.
  i want to use my own transport, so i made a simple jar that contain the
  minimum
  files like http protocol.(i begin to copy the http protocol and i will
  write changes after).
  I change the axis2.xml file and my server is using my jar for the
  transport.
  But i don't know how to do the same thing for the client because the
  client use the axis2-kernel.jar
  which contain normal version of the http transport.
 
  How could i force the client to use my jar for the transport..?
 
  thank in advance.
 
  mathieu Fabre
 
  (sorry for my english, i'm french)
 




Re: IllegalAccessError

2007-10-17 Thread mgainty
Jason-

where is hibernate.properties?
did you grant access for catalina to read hibernate.properties in this
location?

Martin
- Original Message -
Wrom: BLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMY
To: axis-user@ws.apache.org
Sent: Wednesday, October 17, 2007 9:07 AM
Subject: RE: IllegalAccessError


I tried your suggestion but I still get the same error. Note that class
in the stacktrace HibernateUtil is my utility class to initialize a
hibernate session. It lives in a jar under my aar/lib dir. The hibernate
classes all live in jars under axis2/WEB-INF/lib. Is that a problem ?

java.lang.IllegalAccessError: tried to access method
org.hibernate.cfg.Mappings.init(Ljava/util/Map;Ljava/util/Map;Ljava/ut
il/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava
/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/
Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/u
til/Map;)V from class org.hibernate.cfg.ExtendedMappings
at
org.hibernate.cfg.ExtendedMappings.init(ExtendedMappings.java:65)
at
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(Annotat
ionConfiguration.java:175)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationCo
nfiguration.java:263)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
283)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotation
Configuration.java:915)
at
com.bae.nedc.wfnp.util.HibernateUtil.clinit(HibernateUtil.java:26)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.catalogConfigExists(WF
NPConfiguration.java:79)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.getConfig(WFNPConfigur
ation.java:56)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.getStagingPath(WFNPCon
figuration.java:172)
at
com.bae.nedc.wfnp.create.HoldingManager.init(HoldingManager.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:52)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:640)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:626)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:381)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:140)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:248)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:950)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:740)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:417)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:140)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:273)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A

RE: XML-declaration in WSDL2Java generated SOAP service

2007-10-17 Thread Walker, Jeff
Just ruling out a few things.
1. It still happens if you use Http 1.0 or Http 1.1.
2. It still happens if I deploy my service in WebSphere, which
implements JAX-RPC and is not an Axis based web service.
 
So 2 above that tells me it is not just Axis, but some sort of standard
behavior. (It is possible that .NET may indeed be expecting the xml
declaration on responses, but that it is a Microsoft anomaly and they
shouldn't be expecting it. The other possibility is that Microsoft is
indeed correct, and the Java world is lax in not providing the xml
declaration on responses).
 
The other train of thought I had is that this is SOAP 1.2 behavior, and
I am using Soap 1.1.
So, what version of .NET and SOAP are you using?
-jeff
 
  _  

From: Luposlip [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 10:39 AM
To: axis-user@ws.apache.org
Subject: Re: XML-declaration in WSDL2Java generated SOAP service



I don't know if it's standard or not.
My problem is that my AXIS2-service should be digestable from
a .NET application that requires the XML declaration. .NET based SOAP
services seems to include the XML declaration at top. 

Does anyone know how to make AXIS2 include the XML declaration
at top of responses?



2007/10/17, Walker, Jeff [EMAIL PROTECTED] : 

I too have noticed this. (I use Axis1 1.4, but from what
you say, it also occurs in Axis2). 



My requests looks like:

POST /fmr-pdk-pag-soaservices/services/PaGWebService
HTTP/1.0

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

Accept: application/soap+xml, application/dime,
multipart/related, text/*

User-Agent: Axis/1.3

Host: 127.0.0.1:1234

Cache-Control: no-cache

Pragma: no-cache

SOAPAction: 

Content-Length: 1731

 

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope ..some huge xml string..

 

and my responses look like:

HTTP/1.0 200 OK

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

Content-Language: en-US

Content-Length: 1482

Set-Cookie: JSESSIONID=W_MwQ1tM9VkElguugWBApVz:-1;
Path=/

Date: Wed, 17 Oct 2007 14:05:32 GMT

Server: WebSphere Application Server/6.1

Expires: Thu, 01 Dec 1994 16:00:00 GMT

Cache-Control: no-cache=set-cookie, set-cookie2



 

soapenv:Envelope ..some huge xml string..

 



Notice how the request has the ?xml version=1.0
encoding=UTF-8? line but the response does not. Is this standard web
service behavior?
-jeff

 


  _  

From: Luposlip [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 4:27 AM
To: axis-user@ws.apache.org
Subject: XML-declaration in WSDL2Java generated SOAP
service




HI there gurus,

I've generated a SOAP based service with
WSDL2Java (AXIS2 1.2). The issue is that it doesn't include a XML
declaration as the first line in the response documents.
Could you please tell me how to do this? 

Thanks a bunch! 




RE: IllegalAccessError

2007-10-17 Thread Kahler, Jason J (US SSA)
I use hibernate.cfg.xml
It is in axis2/WEB-INF/classes. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2000 11:49 AM
To: axis-user@ws.apache.org
Subject: Re: IllegalAccessError

Jason-

where is hibernate.properties?
did you grant access for catalina to read hibernate.properties in this
location?

Martin
- Original Message -
Wrom: BLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMY
To: axis-user@ws.apache.org
Sent: Wednesday, October 17, 2007 9:07 AM
Subject: RE: IllegalAccessError


I tried your suggestion but I still get the same error. Note that class
in the stacktrace HibernateUtil is my utility class to initialize a
hibernate session. It lives in a jar under my aar/lib dir. The hibernate
classes all live in jars under axis2/WEB-INF/lib. Is that a problem ?

java.lang.IllegalAccessError: tried to access method
org.hibernate.cfg.Mappings.init(Ljava/util/Map;Ljava/util/Map;Ljava/ut
il/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava
/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/
Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/u
til/Map;)V from class org.hibernate.cfg.ExtendedMappings
at
org.hibernate.cfg.ExtendedMappings.init(ExtendedMappings.java:65)
at
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(Annotat
ionConfiguration.java:175)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationCo
nfiguration.java:263)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
283)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotation
Configuration.java:915)
at
com.bae.nedc.wfnp.util.HibernateUtil.clinit(HibernateUtil.java:26)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.catalogConfigExists(WF
NPConfiguration.java:79)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.getConfig(WFNPConfigur
ation.java:56)
at
com.bae.nedc.wfnp.configuration.WFNPConfiguration.getStagingPath(WFNPCon
figuration.java:172)
at
com.bae.nedc.wfnp.create.HoldingManager.init(HoldingManager.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:52)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:640)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:626)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:381)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:140)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:248)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:950)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:740)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:417)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:140)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab

Re: Error: Unexpected subelement responseCode

2007-10-17 Thread M K
Hi Anne,

Any thoughts/ideas on this one?

Thanks,
-- MK

- Original Message 
From: M K [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Monday, October 15, 2007 10:01:46 AM
Subject: Re: Error: Unexpected subelement responseCode

Ok. The wsdl does have the attribute set to qualified. Here is my wsdl again.

?xml version=1.0 encoding=UTF-8?

wsdl:documentationStompHub/wsdl:documentation
wsdl:types

xs:complexType
 name=StompCredentials
xs:sequence
xs:element name=orgnaizationId nillable=false 
type=xs:string/
xs:element name=password nillable=false 
type=xs:string/
xs:element name=username nillable=false 
type=xs:string/
/xs:sequence
/xs:complexType
   
 /xs:schema

xs:element name=transmit
xs:complexType
   
 xs:sequence
xs:element name=request nillable=false 
type=ns2:StompHubRequest/
/xs:sequence
/xs:complexType
/xs:element
xs:element name=transmitResponse
xs:complexType
   
 xs:sequence
xs:element name=return nillable=false 
type=ns2:StompHubResponse/
/xs:sequence
/xs:complexType
/xs:element
/xs:schema

http://inbound.adapters.transport.stomp.ens.com/xsd/
xs:complexType name=StompHubRequest
   
 xs:sequence
xs:element minOccurs=1 name=credentials 
nillable=false type=ns0:StompCredentials/
xs:element minOccurs=0 name=payerCredentials 
nillable=true type=ax21:StompHubPayerCredentials/
xs:element minOccurs=0 name=payloadData 
nillable=true type=xs:string/
xs:element minOccurs=1 name=routing nillable=false
 type=ax21:StompHubRouting/
/xs:sequence
/xs:complexType
xs:complexType name=StompHubPayerCredentials
xs:sequence
xs:element minOccurs=0 name=password nillable=true 
type=xs:string/
xs:element minOccurs=0 name=submitterId nillable=true
 type=xs:string/
xs:element minOccurs=0 name=userid nillable=true 
type=xs:string/
/xs:sequence
/xs:complexType
xs:complexType name=StompHubRouting
xs:sequence
xs:element name=payerId nillable=false 
type=xs:string/
   
 xs:element name=transactionType nillable=false type=xs:string/
/xs:sequence
/xs:complexType
xs:complexType name=StompHubResponse
xs:sequence
xs:element minOccurs=0 name=responseCode 
nillable=true type=xs:string/
xs:element minOccurs=0 name=responseMessage 
nillable=true
 type=xs:string/
xs:element maxOccurs=unbounded minOccurs=0 
name=responsePayload nillable=true type=ax21:StompHubResponsePayload/
/xs:sequence
/xs:complexType
xs:complexType name=StompHubResponsePayload
xs:sequence
xs:element name=payloadData nillable=false
 type=xs:string/
xs:element name=transactionType nillable=false 
type=xs:string/
/xs:sequence
/xs:complexType
/xs:schema
/wsdl:types
wsdl:message name=transmitRequest
wsdl:part name=parameters element=ns1:transmit/
/wsdl:message
wsdl:message name=transmitResponse
wsdl:part name=parameters element=ns1:transmitResponse/
   
 /wsdl:message
wsdl:portType name=StompHubPortType
wsdl:operation name=transmit
wsdl:input message=ns1:transmitRequest 
wsaw:Action=urn:transmit/
wsdl:output message=ns1:transmitResponse 
wsaw:Action=urn:transmitResponse/
/wsdl:operation
/wsdl:portType
wsdl:binding name=StompHubSOAP11Binding type=ns1:StompHubPortType

   
 wsdl:operation name=transmit
soap:operation soapAction=urn:transmit style=document/
wsdl:input
soap:body use=literal/
/wsdl:input
wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:binding
 name=StompHubSOAP12Binding type=ns1:StompHubPortType

wsdl:operation name=transmit
soap12:operation soapAction=urn:transmit style=document/
wsdl:input
soap12:body use=literal/
/wsdl:input
   
 wsdl:output
soap12:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:binding name=StompHubHttpBinding type=ns1:StompHubPortType
http:binding verb=POST/
wsdl:operation name=transmit
  

[Axis2]

2007-10-17 Thread Kurt Bulbring
Hi there,

I'm using 
fedora core 5
tomcat5 
j2sdk1.5.0
vb6 soap

I'm busy downloading thousands of images.

  public byte[] getImage(String archId,String format,String user,String 
password){
 checkCredentials(user,password);
 String fileName = dB.getOneString(select concat(dirName,link) 
from archive where id =  + archId);
 if(format.equals(pdf)){

 }
 //String str = fileIO.getFileString(fileName);
 //return str.getBytes();
 FileIO fileIO = new FileIO();
 byte b[];
 b = fileIO.getByteArray(fileName);
 fileIO = null;
 return b;
  }

If I use axis1 version: 1.4 the images download fine.
If I use axis2 version: 1.3 the memory usage continues to grow until all the 
system memory is used up, then it seems the 
GarbageCollector starts working but it us very slow.

Any ideas?

Regards,
Kurt




How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
Hi,

 

I want to change my webservice URL from

 

http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName (Remove /services from the
URL)

 

I've changed the following 2 parameters in axis2.xml

 

parameter name=contextRoot/webservices/parameter

parameter name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using the URL
http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing (soap:address location in the
WSDL) to http://localhost/webservices/myServiceName/myServiceName
(Observe that myServiceName is repeated twice).

 

Now when I try to access the webservice from the client for End Point
http://localhost/webservice/myServiceName I'm getting an exception
saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 



From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot  servicePath in axis2.xml.
After changing that, I'm able to see the WSDL correctly in the browser
(http://localhost/webservices/myService?wsdl ), but when I try to access
the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is showing the
address as http://localhost/webservices/myService/myService (service
name is repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters into axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote:

 Hi Deepal,

 

According to what you said I've changed the contextRoot 

 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 parameter name=servicePathmyService/parameter

 

 And when I go to http://localhost/webservices/myService?wsdl I'm able
to

 see the WSDL.

 

 But in the WSDL the end point address is shown as

 

 soap:address

 location=http://10.5.1.241:80/webservices/myService/myService; /

 

 Because of this when I'm trying to run the client and access my

 webservice, I'm getting an exception

 

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

 http://localhost/webservices/myService

 

 

 Thanks

 Raghu

 -Original Message-

 From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]

 Sent: Monday, October 08, 2007 8:27 AM

 To: axis-user@ws.apache.org

 Subject: Re: [AXIS2] Simple (?) config question

 

 Lorenzo wrote:

  Hi all,

 

  i need to change axis2 services path from

 

  http://localhost:8080/axis2/services/myService

 

  to

 

  http://localhost:8080/axis2/myService

 

  (possibly without move .aar archives) but i didn't find where to do

 it..

 

 You can do that by adding following two parameters into axis2.xml

 

  parameter name=contextRoot/axis2/parameter

parameter name=servicePathmyService/parameter

 

 Thanks

 Deepal

 

 

 

 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Walker, Jeff
Edit your web.xml file to change the servlet mapping.
Seach for url-pattern then edit the services/service_name and
replace it with just a /service_name. It's very easy to screw this
sort of thing up and take hours to get back to where you were. If you
can live with the services/, I would leave it alone.
-jeff


  _  

From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL (remove /services
from the URL)



Hi,

 

I want to change my webservice URL from

 

http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName (Remove /services
from the URL)

 

I've changed the following 2 parameters in axis2.xml

 

parameter name=contextRoot/webservices/parameter

parameter name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using the URL
http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing (soap:address location in
the WSDL) to http://localhost/webservices/myServiceName/myServiceName
(Observe that myServiceName is repeated twice).

 

Now when I try to access the webservice from the client for End
Point http://localhost/webservice/myServiceName I'm getting an exception
saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 


  _  


From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot  servicePath in
axis2.xml.  After changing that, I'm able to see the WSDL correctly in
the browser (http://localhost/webservices/myService?wsdl ), but when I
try to access the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is showing
the address as http://localhost/webservices/myService/myService (service
name is repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters into
axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED]
wrote:

 Hi Deepal,

 

According to what you said I've changed the contextRoot


 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 parameter name=servicePathmyService/parameter

 

 And when I go to http://localhost/webservices/myService?wsdl
I'm able to

 see the WSDL.

 

 But in the WSDL the end point address is shown as

 

 soap:address


location=http://10.5.1.241:80/webservices/myService/myService; /

 

 Because of this when I'm trying to run the client and access
my

 webservice, I'm getting an exception

 

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

 http://localhost/webservices/myService

 

 

 Thanks

 Raghu

 -Original Message-

 From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]

 Sent: Monday, October 08, 2007 8:27 AM

 To: axis-user@ws.apache.org

 Subject: Re: [AXIS2] Simple (?) config question

 

 Lorenzo wrote:

  Hi all,

 

  i need to change axis2 services path from

 

  http://localhost:8080/axis2/services/myService

 

  to

 

  http://localhost:8080/axis2/myService

 

  (possibly without move .aar archives) but i didn't find
where to do

 it..

 

 You can do that by adding following two parameters into
axis2.xml

 

  parameter name=contextRoot/axis2/parameter

parameter name=servicePathmyService/parameter

 

 Thanks

 Deepal

 

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
Hi Jeff,

 

I did change my web.xml servlet mapping to look for URL
pattern /* instead of /services/*



But the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

 

Thanks

Raghu

 



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

Edit your web.xml file to change the servlet mapping.

Seach for url-pattern then edit the services/service_name and
replace it with just a /service_name. It's very easy to screw this
sort of thing up and take hours to get back to where you were. If you
can live with the services/, I would leave it alone.

-jeff

 





From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL (remove /services
from the URL)

Hi,

 

I want to change my webservice URL from

 

http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName (Remove /services
from the URL)

 

I've changed the following 2 parameters in axis2.xml

 

parameter name=contextRoot/webservices/parameter

parameter name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using the URL
http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing (soap:address location in
the WSDL) to http://localhost/webservices/myServiceName/myServiceName
(Observe that myServiceName is repeated twice).

 

Now when I try to access the webservice from the client for End
Point http://localhost/webservice/myServiceName I'm getting an exception
saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 





From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot  servicePath in
axis2.xml.  After changing that, I'm able to see the WSDL correctly in
the browser (http://localhost/webservices/myService?wsdl ), but when I
try to access the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is showing
the address as http://localhost/webservices/myService/myService (service
name is repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters into
axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED]
wrote:

 Hi Deepal,

 

According to what you said I've changed the contextRoot


 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 parameter name=servicePathmyService/parameter

 

 And when I go to http://localhost/webservices/myService?wsdl
I'm able to

 see the WSDL.

 

 But in the WSDL the end point address is shown as

 

 soap:address


location=http://10.5.1.241:80/webservices/myService/myService; /

 

 Because of this when I'm trying to run the client and access
my

 webservice, I'm getting an exception

 

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

 http://localhost/webservices/myService

 

 

 Thanks

 Raghu

 -Original Message-

 From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]

 Sent: Monday, October 08, 2007 8:27 AM

 To: axis-user@ws.apache.org

 Subject: Re: [AXIS2] Simple (?) config question

 

 Lorenzo wrote:

  Hi all,

 

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Walker, Jeff
What's in your wsdl?
ie. what is soap:address location=?/ equal to?
-jeff


  _  

From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)



Hi Jeff,

 

I did change my web.xml servlet mapping to look for
URL pattern /* instead of /services/*



But the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

 

Thanks

Raghu

 


  _  


From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)

 

Edit your web.xml file to change the servlet mapping.

Seach for url-pattern then edit the services/service_name
and replace it with just a /service_name. It's very easy to screw
this sort of thing up and take hours to get back to where you were. If
you can live with the services/, I would leave it alone.

-jeff

 


  _  


From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL (remove
/services from the URL)

Hi,

 

I want to change my webservice URL from

 

http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName (Remove
/services from the URL)

 

I've changed the following 2 parameters in axis2.xml

 

parameter name=contextRoot/webservices/parameter

parameter name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using the URL
http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing (soap:address
location in the WSDL) to
http://localhost/webservices/myServiceName/myServiceName (Observe that
myServiceName is repeated twice).

 

Now when I try to access the webservice from the client
for End Point http://localhost/webservice/myServiceName I'm getting an
exception saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 


  _  


From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot  servicePath
in axis2.xml.  After changing that, I'm able to see the WSDL correctly
in the browser (http://localhost/webservices/myService?wsdl ), but when
I try to access the service from the client it is not working.

  

  When I observed the SOAP Address in the WSDL it is
showing the address as http://localhost/webservices/myService/myService
(service name is repeated twice) because of which when I give the end
point as http://localhost/webservices/myService i'm getting a EPR not
found exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang zhang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:05 PM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Simple (?) config question

 

Maybe you can do that by adding following two parameters
into axis2.xml

 

 parameter name=contextRoot//parameter

 parameter name=servicePathaxis2/parameter

I did not try it myself,maybe you can have a try.

 

On 11/10/2007, Raghu Upadhyayula
[EMAIL PROTECTED] wrote:

 Hi Deepal,

 

According to what you said I've changed the
contextRoot 

 servicePath in axis2.xml.

 

I've changed it like this.

 

 parameter name=contextRoot/webservices/parameter

 

how to deploy customize wsdl

2007-10-17 Thread M K
Hello,

I get the following exception when I run the AddressBookService client example 
from axis2 1.3 deployed in JBOSS 4.0.5:
**
adb.client.run:
 [java] org.apache.axis2.AxisFault: 
org.apache.axis2.databinding.ADBException: Unexpected subelement city
 [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 [java] at 
sample.addressbook.stub.AddressBookServiceStub.fromOM(Unknown  Source)
 [java] at 
sample.addressbook.stub.AddressBookServiceStub.findEntry(Unknown Source)
 [java] at 
sample.addressbook.adbclient.AddressBookADBClient.main(Unknown Source)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:597)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)

 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
 [java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
 [java] at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:597)
 [java] at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
 [java] at org.apache.tools.ant.Task.perform(Task.java:348)
 [java] at org.apache.tools.ant.Target.execute(Target.java:357)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
 [java] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
 [java] at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
 [java] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
 [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
 [java] at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
 [java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:597)
 [java] at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
 [java] at org.apache.tools.ant.Task.perform(Task.java:348)
 [java] at org.apache.tools.ant.Target.execute(Target.java:357)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
 [java] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
 [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)

 [java] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
 [java] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:698)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:199)
 [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
 [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
 [java] Caused by: java.lang.Exception: 
org.apache.axis2.databinding.ADBException: Unexpected subelement city
 [java] at 
sample.addressbook.stub.AddressBookServiceStub$Entry$Factory.parse(Unknown 
Source)
 [java] at 
sample.addressbook.stub.AddressBookServiceStub$FindEntryResponse$Factory.parse(Unknown
 Source)
 [java] ... 42 more
 [java] Caused by: org.apache.axis2.databinding.ADBException: Unexpected 
subelement city
 [java] ... 44 more

BUILD SUCCESSFUL
Total time: 11 seconds
**

What I had done different is this:
1. First, I deploy the service as is
2. I would save a local copy of the wsdl file by going to my service - 
http://localhost:8080/axis2/services/AddressBookService?wsdl
3. I would include the wsdl file along with my services.xml file and redploy 
the same example.
When I execute the ant adb.client 
-Dwsdl=http://localhost:8080/axis2/services/AddressBookService?wsdl; as 
suggested by the README file in the, I 

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Walker, Jeff
Also,
what is the name of your service, and what is the name of your portType?
I suspect they are both the same name.
-jeff


  _  

From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove /services
from the URL)


What's in your wsdl?
ie. what is soap:address location=?/ equal to?
-jeff


  _  

From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove
/services from the URL)



Hi Jeff,

 

I did change my web.xml servlet mapping to
look for URL pattern /* instead of /services/*



But the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

 

Thanks

Raghu

 


  _  


From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove
/services from the URL)

 

Edit your web.xml file to change the servlet mapping.

Seach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

-jeff

 


  _  


From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL
(remove /services from the URL)

Hi,

 

I want to change my webservice URL from

 


http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName
(Remove /services from the URL)

 

I've changed the following 2 parameters in
axis2.xml

 

parameter
name=contextRoot/webservices/parameter

parameter
name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using
the URL http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing
(soap:address location in the WSDL) to
http://localhost/webservices/myServiceName/myServiceName (Observe that
myServiceName is repeated twice).

 

Now when I try to access the webservice from the
client for End Point http://localhost/webservice/myServiceName I'm
getting an exception saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 


  _  


From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot 
servicePath in axis2.xml.  After changing that, I'm able to see the WSDL
correctly in the browser (http://localhost/webservices/myService?wsdl ),
but when I try to access the service from the client it is not working.

  

  When I observed the SOAP Address in the
WSDL it is showing the address as
http://localhost/webservices/myService/myService (service name is
repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

 

Thanks

Raghu

 

-Original Message-
From: zhongliang 

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
portType name=ResponsysWS

service name=ResponsysWSService

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW
SService /

 

Thanks

Raghu



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

Also,

what is the name of your service, and what is the name of your portType?

I suspect they are both the same name.

-jeff

 





From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove /services
from the URL)

What's in your wsdl?
ie. what is soap:address location=?/ equal to?

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove
/services from the URL)

Hi Jeff,

 

I did change my web.xml servlet mapping to
look for URL pattern /* instead of /services/*



But the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

 

Thanks

Raghu

 





From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove
/services from the URL)

 

Edit your web.xml file to change the servlet mapping.

Seach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36 PM
To: axis-user@ws.apache.org
Subject: How to change the webservices URL
(remove /services from the URL)

Hi,

 

I want to change my webservice URL from

 


http://localhost/webservices/services/myServiceName 

 

To

 

http://localhost/webservices/myServiceName
(Remove /services from the URL)

 

I've changed the following 2 parameters in
axis2.xml

 

parameter
name=contextRoot/webservices/parameter

parameter
name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL using
the URL http://localhost/webservices/myServiceName?wsdl successfully.

 

But my End Point Reference is pointing
(soap:address location in the WSDL) to
http://localhost/webservices/myServiceName/myServiceName (Observe that
myServiceName is repeated twice).

 

Now when I try to access the webservice from the
client for End Point http://localhost/webservice/myServiceName I'm
getting an exception saying EPR (End Point Reference) not found).

 

Can anyone tell me if I'm missing anything?

 

Thanks in advance

Raghu

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 9:23 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Simple (?) config question

 

Hi Zhang,

 

  I've tried changing the contextRoot 
servicePath in axis2.xml.  After changing that, I'm able to see the WSDL
correctly in the browser (http://localhost/webservices/myService?wsdl ),
but when I try to access the service from the client it is not working.

 

[Axis2] WSDL2Java plugin for Maven2

2007-10-17 Thread Todd Allen

Is there a Maven2 plugin available to execute the Axis2 WSDL2Java command?
I found the plugin woth the artifact ID of wsdl2java-maven-plugin but 
it appears to be sandboxed.  See here:

http://mojo.codehaus.org/plugins.html

There is a plugin named axistools but it appears to be absed on Axis 1.4.

It seems like this would be a common request.  Any guidance is appreciated.

Thanks.


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



RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Walker, Jeff
I'm confused at to what is working now, and what you're looking for.
But try:
soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService /




  _  

From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 4:05 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)



portType name=ResponsysWS

service name=ResponsysWSService

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW
SService /

 

Thanks

Raghu


  _  


From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)

 

Also,

what is the name of your service, and what is the name of your
portType?

I suspect they are both the same name.

-jeff

 


  _  


From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove
/services from the URL)

What's in your wsdl?
ie. what is soap:address location=?/ equal to?

-jeff

 


  _  


From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL
(remove /services from the URL)

Hi Jeff,

 

I did change my web.xml servlet
mapping to look for URL pattern /* instead of /services/*



But the soap end point is pointing
to http://localhost/webservices/myServiceName/myServiceName
(myServiceName repeated twice).

 

Thanks

Raghu

 


  _  


From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL
(remove /services from the URL)

 

Edit your web.xml file to change the servlet
mapping.

Seach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

-jeff

 


  _  


From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36
PM
To: axis-user@ws.apache.org
Subject: How to change the webservices
URL (remove /services from the URL)

Hi,

 

I want to change my webservice URL from

 


http://localhost/webservices/services/myServiceName 

 

To

 


http://localhost/webservices/myServiceName (Remove /services from the
URL)

 

I've changed the following 2 parameters
in axis2.xml

 

parameter
name=contextRoot/webservices/parameter

parameter
name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL
using the URL http://localhost/webservices/myServiceName?wsdl
successfully.

 

But my End Point Reference is pointing
(soap:address location in the WSDL) to
http://localhost/webservices/myServiceName/myServiceName (Observe that
myServiceName is repeated twice).

 

Now when I try to access the webservice
from the client for End Point http://localhost/webservice/myServiceName
I'm getting an exception saying EPR (End Point Reference) not found).

 


RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread Raghu Upadhyayula
The soap:address I've shown you below is from the generated WSDL from
the ?wsdl.  I can't change that.

 

Thanks

Raghu

 



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 1:32 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

I'm confused at to what is working now, and what you're looking for.

But try:

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService /

 





From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 4:05 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)

portType name=ResponsysWS

service name=ResponsysWSService

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW
SService /

 

Thanks

Raghu





From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services
from the URL)

 

Also,

what is the name of your service, and what is the name of your
portType?

I suspect they are both the same name.

-jeff

 





From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove
/services from the URL)

What's in your wsdl?
ie. what is soap:address location=?/ equal to?

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 3:04 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL
(remove /services from the URL)

Hi Jeff,

 

I did change my web.xml servlet
mapping to look for URL pattern /* instead of /services/*



But the soap end point is pointing
to http://localhost/webservices/myServiceName/myServiceName
(myServiceName repeated twice).

 

Thanks

Raghu

 





From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL
(remove /services from the URL)

 

Edit your web.xml file to change the servlet
mapping.

Seach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

-jeff

 





From: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 2:36
PM
To: axis-user@ws.apache.org
Subject: How to change the webservices
URL (remove /services from the URL)

Hi,

 

I want to change my webservice URL from

 


http://localhost/webservices/services/myServiceName 

 

To

 


http://localhost/webservices/myServiceName (Remove /services from the
URL)

 

I've changed the following 2 parameters
in axis2.xml

 

parameter
name=contextRoot/webservices/parameter

parameter
name=servicePathmyServiceName/parameter

 

After changing this I can access my WSDL
using the URL http://localhost/webservices/myServiceName?wsdl
successfully.

 

But 

RE: How to change the webservices URL (remove /services from the URL)

2007-10-17 Thread rupadhyayula
portType name=ResponsysWS

service name=ResponsysWSService

soap:address
location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW
SService /

 

Thanks

Raghu



From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 17, 2007 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: How to change the webservices URL (remove /services from
the URL)

 

Also,

what is the name of your service, and what is the name of your portType?

I suspect they are both the same name.

-jeff

 





From: Walker, Jeff 
Sent: Wednesday, October 17, 2007 3:16 PM
To: 'axis-user@ws.apache.org'
Subject: RE: How to change the webservices URL (remove /services
from the URL)

What's in your wsdl?
ie. what is soap:address location=?/ equal to?

-jeff

àà 

àà



ààFrom: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
ààSent: Wednesday, October 17, 2007 3:04 PM
ààTo: axis-user@ws.apache.org
ààSubject: RE: How to change the webservices URL (remove
/services from the URL)

ààHi Jeff,

àà 

ààI did change my web.xml servlet mapping to
look for URL pattern /* instead of /services/*

àà

ààBut the soap end point is pointing to
http://localhost/webservices/myServiceName/myServiceName (myServiceName
repeated twice).

àà 

ààThanks

ààRaghu

àà 

àà



ààFrom: Walker, Jeff [mailto:[EMAIL PROTECTED] 
ààSent: Wednesday, October 17, 2007 11:50 AM
ààTo: axis-user@ws.apache.org
ààSubject: RE: How to change the webservices URL (remove
/services from the URL)

àà 

ààEdit your web.xml file to change the servlet mapping.

ààSeach for url-pattern then edit the
services/service_name and replace it with just a /service_name.
It's very easy to screw this sort of thing up and take hours to get back
to where you were. If you can live with the services/, I would leave it
alone.

àà-jeff

àà 

àà



ààFrom: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
ààSent: Wednesday, October 17, 2007 2:36 PM
ààTo: axis-user@ws.apache.org
ààSubject: How to change the webservices URL
(remove /services from the URL)

ààHi,

àà 

ààI want to change my webservice URL from

àà 


http://localhost/webservices/services/myServiceName 

àà 

ààTo

àà 

ààhttp://localhost/webservices/myServiceName
(Remove /services from the URL)

àà 

ààI've changed the following 2 parameters in
axis2.xml

àà 

ààparameter
name=contextRoot/webservices/parameter

ààparameter
name=servicePathmyServiceName/parameter

àà 

ààAfter changing this I can access my WSDL using
the URL http://localhost/webservices/myServiceName?wsdl successfully.

àà 

ààBut my End Point Reference is pointing
(soap:address location in the WSDL) to
http://localhost/webservices/myServiceName/myServiceName (Observe that
myServiceName is repeated twice).

àà 

ààNow when I try to access the webservice from the
client for End Point http://localhost/webservice/myServiceName I'm
getting an exception saying EPR (End Point Reference) not found).

àà 

ààCan anyone tell me if I'm missing anything?

àà 

ààThanks in advance

ààRaghu

àà 

àà



ààFrom: Raghu Upadhyayula
[mailto:[EMAIL PROTECTED] 
ààSent: Thursday, October 11, 2007 9:23 PM
ààTo: axis-user@ws.apache.org
ààSubject: RE: [AXIS2] Simple (?) config question

àà 

ààHi Zhang,

àà 

àà  I've tried changing the contextRoot 
servicePath in axis2.xml.  After changing that, I'm able to see the WSDL
correctly in the browser (http://localhost/webservices/myService?wsdl ),
but when I try to access the service from the client it is not working.

àà  

àà  When I observed the SOAP Address in the
WSDL it is showing the address as
http://localhost/webservices/myService/myService (service name is
repeated twice) because of which when I give the end point as
http://localhost/webservices/myService i'm getting a EPR not found
exception.

àà 

ààThanks

ààRaghu

àà 

àà-Original Message-
ààFrom: zhongliang zhang
[mailto:[EMAIL PROTECTED] 
ààSent: Thursday, October 11, 2007 9:05 PM
ààTo: axis-user@ws.apache.org
ààSubject: Re: [AXIS2] Simple (?) config question

àà 

ààMaybe you can do that by adding following two
parameters into axis2.xml

àà 

àà parameter name=contextRoot//parameter

àà parameter name=servicePathaxis2/parameter

ààI did not try it myself,maybe you can have a
try.

àà 

ààOn 11/10/2007, Raghu Upadhyayula
[EMAIL PROTECTED] wrote:

àà Hi Deepal,

àà 

ààAccording to what you said I've changed
the contextRoot 

àà servicePath in axis2.xml.

àà 

ààI've changed it like this.

àà 

àà parameter
name=contextRoot/webservices/parameter


Re: [Axis2] WSDL2Java plugin for Maven2

2007-10-17 Thread Ajith Ranabahu
http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-wsdl2code-plugin.html


On 10/17/07, Todd Allen [EMAIL PROTECTED] wrote:
 Is there a Maven2 plugin available to execute the Axis2 WSDL2Java command?
 I found the plugin woth the artifact ID of wsdl2java-maven-plugin but
 it appears to be sandboxed.  See here:
 http://mojo.codehaus.org/plugins.html

 There is a plugin named axistools but it appears to be absed on Axis 1.4.

 It seems like this would be a common request.  Any guidance is appreciated.

 Thanks.


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




-- 
Ajith Ranabahu

Reading, after a certain age, diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own brain
too little falls into lazy habits of thinking - Albert Einstein

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



Re: Web Service REST + JSON

2007-10-17 Thread Kimberly Nicholls
I gave up trying to figure out how to remove namespaces from the 
response, and decided to write my own MessageFormatter that ignores 
namespaces, since I don't care about them if I'm using the data in 
JavaScript.


Here's what I did:

- copied MappedNamespaceConvention to MyMappedNamespaceConvention and 
changed getJSONNamespace to always return ;  I had to make a copy 
because getJSONNamespace is private -- why?!


- copied MappedXMLStreamWriter to MyMappedXMLStreamWriter and changed to 
use a MyMappedNamespaceConvention object instead of a 
MappedNamespaceConvention object.  I had to make another copy, because 
MappedXMLStreamWriter defines a MappedNamespaceConvention instead of 
using the interface Convention that MappedNamespaceConvention 
implements.  Convention doesn't define isElement or createAttributeKey, 
not sure why.


- overrode JSONMessageFormatter.getJSONWriter to use 
MyMappedNamespaceConvention and MyMappedXMLStreamWriter


- in axis2.xml, set messageFormatter for application/json to use 
MyJSONMessageFormatter


This returns output like this: 
{getAllOnlineUsersResponse:{return:[admin,knadmin01]}}, which I 
can use in JavaScript like this:


try {
   // get data from services/content/serviceMethod?params via AJAX
   // checks to see if data is an array or not; single elements are not 
put into an array

   setData(data[serviceMethod+Response].return);
} catch(err) {
   document.getElementById(data).innerHTML = no data available;
}

Kimberly Nicholls


Kimberly Nicholls wrote:
Did you ever find an answer for this?  I would also like to use a 
mapped service with POJO services, but I've searched and searched and 
can't find any information on how to get it working.


I've tried adding schema schemaNamespace= 
elementFormDefaultQualified=false/ to my service (found on the How 
to remove namespaces from SOAP response in Axis2 thread), and 
targetNamespace= to my service tag. That gets me a response like this:


ns:getAllOnlineUsersResponse xmlns:ns=http://webservice.company.com; 
xmlns:ax21=http://webservice.company.com/xsd;

returnkntest01/return
returnkntest02/return
/ns:getAllOnlineUsersResponse

So there's return instead of ns:return, but there's still a 
namespace on the reponse, and I still get Mapped formatted JSON with 
namespaces are not supported in Axis2. Make sure that your request 
doesn't include namespaces or use the Badgerfish convention in my 
error log.


If I can't get this working, my next idea is to write some sort of 
handler that can parse the badgerfish output into something actually 
usable by a JavaScript developer, but it seems like I shouldn't have 
to do that...


Kimberly Nicholls


Karina Pereyra wrote:

I don't have errors using badgerfish but i want to parse it into
javascript and mapped is easier than badgerfish  to parse.

also i'm a neebie in java and axis2, could you suggest me some guides
to create services using axiom or how to specify namespaces to
default?

thanks a lot.




On 10/3/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:
  

AFAIK POJO support by defualt generates namespaces. But you can try
specifying nameapce to package mapping pointing to the defualt
namespace... Not sure whether it'll work..

If not you will have to either create your service using Axiom or
using a code generation...

These are the results of impedence mismatch's between JSON and XML..

Also wat's the error you are getting with badgerfish.

Thanks,
Thilina

On 10/3/07, Karina Pereyra [EMAIL PROTECTED] wrote:


i'd like to use mapped service not badgerfish but when i try to use
mapped i have this error
Mapped formatted JSON with namespaces are not supported in Axis2.
Make sure that your request doesn't include namespaces or use the
Badgerfish convention.

do you know how i can remove namespaces?



On 10/3/07, keith chapman [EMAIL PROTECTED] wrote:
  

Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at
http://wso2.org/library/768 ?

Thanks,
Keith.


On 10/3/07, Karina Pereyra [EMAIL PROTECTED] wrote:


I'm nearby of success.
I have now my pojo services with this method, but i have the last problem.
When i use Badgerfish response comes to client (response is difficult
to parse in javascript),
But when i use Mapped i have the next error:

Mapped formatted JSON with namespaces are not supported in Axis2.
Make sure that your request doesn't include namespaces or use the
Badgerfish convention.

How i could use mapped formatter in axis2 with pojo?

public User UserInfo(String username ) throws AxisFault{
MessageContext msgContext =

  

org.apache.axis2.context.MessageContext.getCurrentMessageContext().getCurrentMessageContext().getOperationContext().getMessageContext(
WSDLConstants.MESSAGE_LABEL_OUT_VALUE


);

  

msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE,application/json);


return (User)entries.get(username);
}


  


Re: [Axis2] WSDL2Java plugin for Maven2

2007-10-17 Thread Todd Allen
That is what I was using.  The trick is to add a dependency to the 
axis2-wsdl2code-maven-plugin artifact (not the project) for the 
wsdl4j artifact.



At 06:23 PM 10/17/2007, Ajith Ranabahu wrote:

http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-wsdl2code-plugin.html


On 10/17/07, Todd Allen [EMAIL PROTECTED] wrote:
 Is there a Maven2 plugin available to execute the Axis2 WSDL2Java command?
 I found the plugin woth the artifact ID of wsdl2java-maven-plugin but
 it appears to be sandboxed.  See here:
 http://mojo.codehaus.org/plugins.html

 There is a plugin named axistools but it appears to be absed on Axis 1.4.

 It seems like this would be a common request.  Any guidance is appreciated.

 Thanks.




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



Re: [Axis2]

2007-10-17 Thread Thilina Gunarathne
Please provide more details.. Are you using Axis2 in the server or
client side. Are you using MTOM or SwA? Do you use data binding?
etc..etc.. Do you have file caching enabled?

thanks,
Thilina

On 10/17/07, Kurt Bulbring [EMAIL PROTECTED] wrote:


 Hi there,

 I'm using
 fedora core 5
 tomcat5
 j2sdk1.5.0
 vb6 soap

 I'm busy downloading thousands of images.

   public byte[] getImage(String archId,String format,String user,String
 password){
  checkCredentials(user,password);
  String fileName = dB.getOneString(select concat(dirName,link)
 from archive where id =  + archId);
  if(format.equals(pdf)){

  }
  //String str = fileIO.getFileString(fileName);
  //return str.getBytes();
  FileIO fileIO = new FileIO();
  byte b[];
  b = fileIO.getByteArray(fileName);
  fileIO = null;
  return b;
   }

 If I use axis1 version: 1.4 the images download fine.
 If I use axis2 version: 1.3 the memory usage continues to grow until all the
 system memory is used up, then it seems the
 GarbageCollector starts working but it us very slow.

 Any ideas?

 Regards,
 Kurt





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

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



Re: Axis 1.4 - (405) Method Not Allowed

2007-10-17 Thread foo shyn
Hmm i'm afraid that might not be possible. Wonder why Axis keeps the GET 
method out anyway.. any particular reason?


Tried calling other method...same problem...

Thanx
FooShyn

Walker, Jeff wrote:

If they have turned off access to a certain method, then you simply
cannot call it and there is nothing you can do except ask them if it is
truly turned off and why. All soap web service calls happen using POST
not GET. (Except the famous http://web_service_name?wsdl url which is
a GET). I would suggest that you call any of the other methods found in
their wsdl, to make certain you are calling the service correctly.
I think the answer to your problem lies with them.
-jeff



-Original Message-
From: foo shyn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 16, 2007 9:16 PM

To: axis-user@ws.apache.org
Subject: Axis 1.4 - (405) Method Not Allowed

Hi guys,

I'm new to the list, so pardon me if my question sounds dumb.

I'm trying to connect to a third party web services (which is developed 
using microsoft tools) and i had used Axis 1.4 components to create my 
client. I got the stub generated and run it in my own servlet. However 
when i try to call the web services i got a (405)Method Not Allowed 
error from the web.


I'm thinking of the possibility of the method that i use is not allow. 
Since Axis is defaulted to process its request in Post method, i'm not 
sure whether i can alter that. Does anyone have any idea on how to do

this?

Here's a portion of my debug log from Axis:

16 Oct 2007 20:01:17,859 %- HTTP/1.1 405 Method not allowed
16 Oct 2007 20:01:17,859 %- Server Microsoft-IIS/5.0
16 Oct 2007 20:01:17,859 %- Date Tue, 16 Oct 2007 12:21:32 GMT
16 Oct 2007 20:01:17,875 %- Allow OPTIONS, TRACE, GET, HEAD
16 Oct 2007 20:01:17,875 %- Content-Length 3923
16 Oct 2007 20:01:17,875 %- Content-Type text/html
16 Oct 2007 20:01:17,890 %- 
org.apache.axis.i18n.resource::handleGetObject(return01)

16 Oct 2007 20:01:17,890 %- (405)Method not allowed
16 Oct 2007 20:01:17,906 %- Enter: SOAPPart ctor(FORM_FAULT)
16 Oct 2007 20:01:17,906 %- 
org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
16 Oct 2007 20:01:17,906 %- Setting current message form to: FORM_FAULT 
(currentMessage is now org.apache.axis.AxisFault)

16 Oct 2007 20:01:17,906 %- Exit: SOAPPart ctor()
16 Oct 2007 20:01:17,906 %- 
org.apache.axis.i18n.resource::handleGetObject(toAxisFault00)

16 Oct 2007 20:01:17,906 %- NSPush (32)
16 Oct 2007 20:01:17,921 %- 
org.apache.axis.i18n.resource::handleGetObject(empty00)

16 Oct 2007 20:01:17,921 %- NSPop (empty)
16 Oct 2007 20:01:17,921 %- NSPush (32)
16 Oct 2007 20:01:17,937 %- 
org.apache.axis.i18n.resource::handleGetObject(empty00)

16 Oct 2007 20:01:17,937 %- NSPop (empty)
16 Oct 2007 20:01:17,906 %- Mapping Exception to AxisFault

Any suggestion or idea are welcome.

Thanx
FooShyn


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



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




  




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



Re: Issue with exception handling for 'InOnly' methods

2007-10-17 Thread Deepal jayasinghe
Ashish Arya wrote:

 Hi All,

  

 I am using Axis2 1.3 and have issues with exception handling
 especially for ‘InOnly’ type of operations.

  

 I noticed that if we throw a runtime exception from skeleton incase of
 ‘InOut’ type of operations, the exception is properly wrapped in
 AxisFault and available at client side. But the same logic is not
 working with ‘InOnly’ type of operations. When monitored through
 TCPMON, I was expecting SOAP fault response, but there is no response
 incase of ‘InOnly’ type of operations and hence client don’t get any
 exception.

  

 I guess this is incorrect. ‘InOnly’ methods can also throw some
 exception and the same should be navigated back to client.

Nope , in the case of InOnly you do not get exception back , if you want
the exception you need to use robustInOnly

Thanks
Deepal

  



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



Re: [Axis2 1.2] Axis2 attachment interoperability???

2007-10-17 Thread Xinjun Chen
Hi Thilina,

What do you mean Axis2 preserve the order?

I tried the attachment test in Axis2 1.2. At that time, I can see that the
order of the attachment is not preserved, at least by default the order is
not preserve. I encountered scenarios that I even encountered scenarios that
I retrieved attachment parts before SOAP body when I iterated the
AttachmentMap.

The WS-I Attachment Profile 1.0 Final R2921 specifies that the order of mime
parts should not be inferred from the parts definition in WSDL. I.e., the
order of attachment parts should not be preserved.


Hi skudx,

Which order do you want to preserve? You want the attachment parts have the
same order as the definition in WSDL, or you want the attachment parts
received in the same order as they are sent?
As for the former order, it should not be preserved as specified by WS-I
Attachment Profile 1.0 Final R2921.
As for the latter order, the AttachmentMap is a map, I don't know how you
can preserve the order. Maybe some Axis2 developer can help you. But as a
walkaround, I would prefer to use the contentID or some element specified in
the WSDL Schema part to associate each attachment part with a name.



Regards,
Xinjun

On 10/17/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:

  But as for preserving the order of attachments, I don't think Axis2
  developers will consider this request.
 I think we do support that... Can you please double check and let us
 know whether it's broken.

 thanks,
 Thilina

 You should not rely on the order of
  the attachments. You should use something like contentID or name to
  associate an ID with certain attachment.
 
 
  Regards,
  Xinjun
 
 
 
  On 10/10/07, skudx [EMAIL PROTECTED] wrote:
  
  
   Hi Thilina/ Xinjun,
  
   Could you pl have a look at
  https://issues.apache.org/jira/browse/AXIS2-3245
give me some pointers to move ahead?
  
   My current requirements force me to use jax-ws-ri on the server-side 
  axis2
   on the client-side. The request/ response messages typically have more
  than
   one binary attachments and the order of attachments must be preserved.
  
   Thanks
   Regards
  
  
   --
   View this message in context:
 
 http://www.nabble.com/-Axis2-1.2--Axis2-attachment-interoperabilitytf3906797.html#a13125936
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 


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

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