Re: axis 1.4 performance tuning

2006-11-27 Thread xu cai

3 or 4 transaction/s

On 11/27/06, Clarence Dahlin <[EMAIL PROTECTED]> wrote:


Out of curiousity, how many transactions/second do you have right now?


On 11/27/06, xu cai <[EMAIL PROTECTED] > wrote:
>
> hi all,
>
> does anybody has idea on how to improve the # of transaction/second on
> axis 1.4 ?
>
> thanks
>
> xucai
>





--
- xucai


axis 1.4 performance tuning

2006-11-27 Thread xu cai

hi all,

does anybody has idea on how to improve the # of transaction/second on axis
1.4 ?

thanks

xucai


Re: Axis https/SSL Server Certificate Validation question

2006-11-22 Thread xu cai

Actually, you can use
System.setProperty("javax.net.ss.trustStore", "your key store file
location") .
it can set truststore file path.


On 11/23/06, Luis Rivera <[EMAIL PROTECTED]> wrote:




 Thanks a lot Vicio and Magnus,

I will try Vicio's suggestion first since I am using applets and writing
to
the client's hard disk might not be a viable option. However, I wonder if
including a keystore in the jar file will do the trick. I am not sure if a
keystore is also looked for in the classpath, but I guess I can try.

   Thanks again,
   --Luis R.

>From: <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: 
>Subject: RE: Axis https/SSL Server Certificate Validation question
>Date: Wed, 22 Nov 2006 12:53:12 +0100
>
>For avoiding certification validation, try to use the code:
>
>AxisProperties.setProperty("axis.socketSecureFactory","org.apache.axis.c
>omponents.net.SunFakeTrustSocketFactory");
>
>it should solve your problem.
>
>
>Regards,
>Vicio.
>
>
>-Original Message-
>From: Magnus Bergman [mailto:[EMAIL PROTECTED]
>Sent: 22 novembre 2006 12.21
>To: axis-user@ws.apache.org
>Subject: Re: Axis https/SSL Server Certificate Validation question
>
>This is no axis problem, but anyway,
>i don't know how to bypass the certification verification.
>But a solution to your problem is:
>
>add the self signed server cert into a truststore file that you put in
>your client-jar file and configure your client-app to use your shipped
>trustore file? Something like this URL url =
>this.getClass().getClassLoader().getResource("truststore_in_jar");
>JarURLConnection conn = (JarURLConnection) url.openConnection(); JarFile
>jar = conn.getJarFile(); JarEntry entry =
>jar.getJarEntry("truststore_in_jar");
>InputStream is = jar.getInputStream(entry); File tmp =
>File.createTempFile("certs", ".cer"); tmp.deleteOnExit();
>FileOutputStream fos = new FileOutputStream(tmp); byte[] buffer = new
>byte[1024]; int bytes; while( (bytes = is.read(buffer)) > 0 )
>fos.write(buffer, 0, bytes);
>fos.close();
>is.close();
>url = tmp.toURL();
>System.out.println("setting truststore to: " + url.getPath());
>System.setProperty("javax.net.ssl.trustStore",url.getPath());
>
>this will of course write a temporary truststore to your clients local
>hard disk, but it works...
>
>regards
>Magnus
>
>
>Luis Rivera wrote:
> >
> >   Dear axis users,
> >
> > I googled my way up to this point, but now I have to ask about this. I
>
> > am sure it is being asked, but have not being able to find a way to do
>
> > this, unless I am misunderstanding something.
> >
> > OK, I want to use https for encryption using only Server side
> > authentication. I managed to create a self signed certificate for
> > tomcat, installed in a keystore and set up the server.xml file with
> > the right info. This works great, now I can use https to browse the
> > tomcat pages, axis Validation and make sure that my own Services
> > (based on axis
> > 1.4) are deployed.
> >
> > My WSDL is rpc/literal. so I basically locate the Service using the
> > right URL (https://host:port/axis/services/MyService) and got a
> > SSLHandshakeException!!!
> >
> > So, I figured the problem might be that since the browser usually
> > prompts the user to confirm if the certificate should be trusted, now
> > my program was not able to trust the certificate. Therefore, I
> > basically added the certificate to the client jre cacerts file and
> > that solved the problem.
> >
> > HOWEVER, I don't want my client to modify a file in its local hard
> > disk if possible. I want it to just ignore the fact that the
> > Certificate is not in the keystore and go on, just like I always say
> > "yes" when the browser pop up the dialog, since I am only caring for
> > encryption at this point.
> >
> > So, the question is:
> >
> > HOW DO i MAKE THE CLIENT BYPASS THE CERTIFICATE VERIFICATION step in
> > my client?
> >
> > I believe I have to use a TrustManager and a SSL context, but I am not
>
> > sure how to connect it to the axis Engine running under my client,
> > which is the one opening the context that matters for this and
> > subsequent connections.
> >
> >   Thanks in advance, any tip will be appreciate,
> >   --Luis R.
> >
> > _
> > Talk now to your Hotmail contacts with Windows Live Messenger.
> > http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http
> > ://get.live.com/messenger/overview
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>--
>
>Magnus Bergman
>www.voiceprovider.se
>Mobile +46(0)733 63 42 08
>Office +46(0)8 525 080 08
>Fax +46(0)8 456 96 61
>Slottsbacken 6
>111 30 Stockholm
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECT

asking help to memory analysis

2006-11-21 Thread xu cai

Env: Axis1.4/Tomcat 5.0.30/Java 1.5.0_07/Solaris 10.

Description :
right after system(tomcat) is started, the "top" command show that tomcat
process will use 210M memory, the heap size (using Jprofiler) is
58m/20m(total/used). there is a 150M gap between total process memory
size and java heap size.

I run a client to invoke the web service in a loop, couple houres later,
tomcat process memory size can grow to 510M, the heap size of is 190m/20m
(total/used). so the gap between process memory size and java heap size
grows to 320M.  From gc log, I didn't any thing weired since the used heap
size can keep at 20m, no memory leak can be found at jprofiler.

So my questions are:
1,  what is the difference between java process memory size  and java heap
size ? why can it be 150M in right after tomcat is started ?
2,  why the gap between top can heap can grows from 150M to 320M, where does
170M more memory gone ?

does anybody have simliar experience using axis/tomcat ? I need help

thanks
xucai

Client side code example:
*// get a port from client stub . ignored. *
* while (true) {
try {
long start=System.currentTimeMillis();
for ( int i=0; i<1000; i++) {
 String reply=port.request(command);  // web
service call
 System.out.print(".");
 }
 long end=System.currentTimeMillis();
 long used= (end-start)/1000;
 System.out.println();
 System.out.println("Time used: "+used);
 } catch(Exception e) {
 e.printStackTrace();
 }
}*


Re: The WSDL generatd by Axis 1.4 violate WS-I Basic Profile 1.1 R2801

2006-11-06 Thread xu cai
So the problem is,
 
the wsdl file I wrote is 100% compliant with WS-I Basic profile 1.1, 
 
but the wsdl file auto-generated by Axis servlet does violate WS-I Basic Profile 1.1 R2801. 
 
It's a bug ?
 
On 11/7/06, xu cai <[EMAIL PROTECTED]> wrote:

hi all, 
For each services deployed in Axis 1.4, the wsdl file can be retrieved thur axis servlet. I validate the generated wsdl file according to WS-I Basic profile 1.1 and there is an failure item . 

 
R2801:  A DESCRIPTION MUST use XML schema 1.0 Recommendation as the basis of user defined datatypes and structures. 
 
in the generated wsdl, the element "error_string" should be xsd:string. but it's tns1:string, in which tns1 is defined as 
xmlns:tns1="http://schemas.xmlsoap.org/soap/encoding/ 
"
       
  tns1:string"/>    
 
I checked the original wsdl file I used to develop my service, and find all data types are defined using XML schema 1.0 Recommendations 

 
-- - xucai -- - xucai 


The WSDL generatd by Axis 1.4 violate WS-I Basic Profile 1.1 R2801

2006-11-06 Thread xu cai
hi all, 
For each services deployed in Axis 1.4, the wsdl file can be retrieved thur axis servlet. I validate the generated wsdl file according to WS-I Basic profile 1.1 and there is an failure item . 

 
R2801:  A DESCRIPTION MUST use XML schema 1.0 Recommendation as the basis of user defined datatypes and structures.

 
in the generated wsdl, the element "error_string" should be xsd:string. but it's tns1:string, in which tns1 is defined as 
xmlns:tns1="http://schemas.xmlsoap.org/soap/encoding/
"
      
  tns1:string"/>    
 
I checked the original wsdl file I used to develop my service, and find all data types are defined using 
XML schema 1.0 Recommendations 
 
-- - xucai 


need JMX support !

2006-10-30 Thread xu cai
hi all,
 
I wanna use JMX to manage the web services deployed in Axis, Could somebody help me with these questions ?
 
1) Does Axis support JMX ?
 
2) is there any good jmx web console for Tomcat ?
 
thanks
xucai


Re: Is there any way to configure http timeout in Axis server side.

2006-10-30 Thread xu cai
hi, thanks for ur reply.
 
I don't wanna to change code, is there a java property for this ?
 
thanks
xucai 
On 10/30/06, Srinivas Nannapaneni <[EMAIL PROTECTED]> wrote:



Hi,
Youc an try this out in MessageContext
 
MessageContext. 
setTimeout(1)
 
Thanks,
Srinivas N
 




From: xu cai [mailto:
[EMAIL PROTECTED]] Sent: Monday, October 30, 2006 12:44 PM
To: axis-user@ws.apache.org
Subject: Is there any way to configure http timeout in Axis server side.
 

hi all,

 

   To avoid long time duration web service, is there any way to configure a default timeout value in Axis Server side ? 

 

xu

 

 

 -- - xucai 


Is there any way to configure http timeout in Axis server side.

2006-10-29 Thread xu cai
hi all,
 
   To avoid long time duration web service, is there any way to configure a default timeout value in Axis Server side ? 
 
xu
 
 
 


Axis/Tomcat http timeout

2006-10-29 Thread xu cai
Is there any configuration on this ?
 
how to handle long-duration service in Axis ?
 
-thanks
xu


Re: memory leak in my web service

2006-10-24 Thread xu cai
I can paste client side code tomorrow, 
 
but client side is simple, just send the same request in a endless while loop. 
 
So each time, server should do the same job, but memory growp fast.
 
-jeffrey. 
On 10/24/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


hard to make an intelligent call without seeing your client codeMartin --
This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its conte

- Original Message - 
From: xu cai 
To: axis-user@ws.apache.org 

Sent: Tuesday, October 24, 2006 9:15 AM
Subject: memory leak in my web service
 

hi all, I got a memory leak issue. The web services is deployed over Axis1.4/Tomcat, the services is used to query database. 
 
If the client send request in a while loop, the server will run out of memory in 2 or 3 hours.
 
I use jprofiler to monitor the memory,and cant' find something wired. I even can't know which part of memory is growing so fast. 
 
can anybody give me a clue ?
-thanks
 
-jeff-- - xucai 


Re: memory leak in my web service

2006-10-24 Thread xu cai
thanks your reply, I can have a try, not it's not recommended in our product. :-)
 
-jeff 
On 10/24/06, Willem Liu <[EMAIL PROTECTED]> wrote:


Hi,
 
When programming in Java for Linux like environments I've came accros the same thing. The same program would run perfectly under Windows, but would give a memory problem under Linux. I've eventually solved this by calling the Garbage 
Collector manually and periodically. It seems that the JVM under Linux environments doesn't automatically do this well.
I don't know wether this will solve your problem as well, but I guess it's worth a try.
 
Regards,
 
Willem


From: xu cai [mailto:[EMAIL PROTECTED]] Sent: dinsdag 24 oktober 2006 15:15
To: axis-user@ws.apache.orgSubject: memory leak in my web service 



hi all, I got a memory leak issue. The web services is deployed over Axis1.4/Tomcat, the services is used to query database. 
 
If the client send request in a while loop, the server will run out of memory in 2 or 3 hours.
 
I use jprofiler to monitor the memory,and cant' find something wired. I even can't know which part of memory is growing so fast. 
 
can anybody give me a clue ?
-thanks
 
-jeff-- - xucai 


memory leak in my web service

2006-10-24 Thread xu cai
hi all, I got a memory leak issue. The web services is deployed over Axis1.4/Tomcat, the services is used to query database. 
 
If the client send request in a while loop, the server will run out of memory in 2 or 3 hours.
 
I use jprofiler to monitor the memory,and cant' find something wired. I even can't know which part of memory is growing so fast. 
 
can anybody give me a clue ?
-thanks
 
-jeff


what's the relationship between axis and JAX-WS

2006-09-24 Thread xu cai
a quick question about axis and JAX-WS,
 
does axis 1.4 or 2.0 implement JAX-WS spec ?
 
thanks
 
-jeff.


how to use apache https with Axis

2006-09-20 Thread xu cai
hi, 
   In my deployment,  tomcat is combined with Apache web server, and only https services is actived. 
So client need talk with Apache web server thru https protocal, then Apache direct the service request to Tomcat 8009 port, which is in plain text format. 
 
   My question is, how to config axis, how to access axis service thru java client.
 
I read many material about this. they are all about build keystore and truststore both in Tomcat side and java client side, but in this case, I need access Apache web server (not tomcat), Anybody can help ? thanks.

 
-xu.


Re: Remote Deployment

2006-09-07 Thread xu cai
enable remote admin in axis config file: server-config.wsdd  
On 8/30/06, Tommy Tran <[EMAIL PROTECTED]> wrote:
Hi,Is there a way to deploy my Webservice remotely? I have created mydeloyed.wsdd file and successfully deployed to my local Tomcat Server. I
tried running the same script but this time pointing to my developmentbox, but this is the error I got. Can someone tell me what the best wayto do this is?TIA,tC:\javaApp\HalESD>java -cp
c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery-0.2.jar;c:\axis\lib\commons-logging-1.0.4.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar;c:\axis\lib\wsdl4j-
1.5.1.jar org.apache.axis.client.AdminClient -lhttp://34.224.35.73/axis/services/AdminService deploy.wsddlog4j:WARN No appenders could be found for logger(org.apache.axis.i18n.ProjectResourceBundle).log4j:WARN Please initialize the log4j system properly.
Processing file deploy.wsddException: AxisFaultfaultCode: {http://xml.apache.org/axis/}HTTPfaultSubcode:faultString: (401)UnauthorizedfaultActor:faultNode:
faultDetail:   {}:return code:  401
  ns1:Server.Unauthorized  Remote administrator access is notallowed!
     {http://xml.apache.org/axis/}HttpErrorCode:401
--This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]-- - xucai 


Re: Is the a way to get WSDL from XSD

2006-09-07 Thread xu cai
this is what I do manually: 
 
1) write a java class to desc your web service interface. 
   simply use String as input and output parameter
 
2) build a wsdl file thru Axis java2wsdl
 
3) include your XSD to the wsdl file and modify "Message" section manually. 
 
 
On 9/7/06, Bharadwaj, Nandita (GE Healthcare) <[EMAIL PROTECTED]> wrote:



All, Anne,
I have an XSD for the message I should be sending through web service. I need to create web services through this. 
Is there way, I can convert/ derive WSDL from XSD?
 
Looking forward for some help regarding this. 
 
Thanks,
Nandita-- - xucai 


Parameter in soap request can't be recognized and sent to deployed web services in Axis 1.4

2006-09-06 Thread xu cai
Hi Anne and all,  
   I deployed a doc/literal web service using Axis 1.4. There are two parameters defined for the operation.  
The soap request look likes
 http://schemas.xmlsoa
p.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
">

   
    

 
  -2145701720


 
There are two parameter in the soap body : xmlString and key.  The "xmlString" parameter can be sent to the deployed service and the "key" parameter can't be sent to services.  So the service implementation class get a "null" key and throw an exception. 

 
Could anybody tell me what's wrong ?
-- - xucai 


Re: Response from Axis does not conform with the WSDL

2006-09-04 Thread xu cai
please postt the wsdl file 
On 8/21/06, Arati Rahalkar <[EMAIL PROTECTED]> wrote:
Hi AnneThanks for the response. I tried using Axis 1.4.I am facing the same problem however. I am just not understanding how Axis
can behave like this. I am sending the SOAP request and SOAP responsepackages I picked up by using SOAPMonitor:Request:http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">   http://helloworldsample">Arati
Response:
http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">   http://helloworldsample">Hello Arati
I see two problems here:1. In the request SOAP Body: there is no mention of the method name. Thereis a directly a "me" element, where as the name of the method i.e
.sayHelloToMe should be mentioned present above the me element2. The response contains a "meReturn" element where as according to the WSDLit should be containing sayHelloToMeReturn.Is there any mistake I am making somewhere or anything that I am missing?
Thanks in advance,Arati-Original Message-From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]Sent: Monday, August 21, 2006 6:20 PMTo: 
axis-user@ws.apache.orgSubject: Re: Response from Axis does not conform with the WSDLUse Axis 1.4.On 8/21/06, Arati Rahalkar <[EMAIL PROTECTED]
> wrote:> Hi I am having a very basic question about Axis. It really seems like a bugor> otherwise I am not missing something. I have a very simple web service
> deployed on Axis 1.2 with only one method: sayHelloToMe which takes in a> person's name as input and returns "Hello " string as a> response. Following is the snippet of the WSDL file (as generated by Axis
> when I access the wsdl using serviceName?wsdl) WSDL Types for request and response >>   > targetNamespace="http://localhost:8081/axis/services/HelloWorldService"> xmlns="
http://www.w3.org/2001/XMLSchema">>>>>   >>   > targetNamespace="http://helloworldsample"> xmlns="http://www.w3.org/2001/XMLSchema">>>
>>   >>   Input message>>>>   
>> Output message>>>>   > name="sayHelloToMeReturn"/>>>>> Operation>>   
>>  > name="sayHelloToMeRequest"/>>>  > name="sayHelloToMeResponse"/>>>   >> According to this WSDL, the response I get from the server to this web
> service call should be: Helloinput However, when I checked using the SOAP monitor - I get the response> Hello input. Note that, meReturn is no where
mentioned> in the WSDL document. The only logical explanation is that Axis isappending> a "Return" to the input parameter "me". The namespace of the response is> also the same as the request (where as in the WSDL the two namespaces are
> different). This seems like a major bug - or am I missing something? Is there a> workaround for this problem? Is this problem fixed in later versions of> Axis?>
>>> Thanks,>> Arati DISCLAIMER == This e-mail may contain privileged and> confidential information which is the property of Persistent Systems Pvt.> Ltd. It is intended only for the use of the individual or entity to which
it> is addressed. If you are not the intended recipient, you are notauthorized> to read, retain, copy, print, distribute or use this message. If you have> received this communication in error, please notify the sender and delete
> all copies of this message. Persistent Systems Pvt. Ltd. does not acceptany> liability for virus infected mails.-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]DISCLAIMER
==This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]-- - xucai 


Re: Attribute "id" was already specified for element "multiRef" Exception, how to custmoize soap response.

2006-08-23 Thread xu cai
Anne, thanks for your valuable reply, it helps and I learn much from it. 
 
On 8/23/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
To turn off multi-refs, add this parameter to the WSDD:
This is the Axis option you use to turn off multi-refs. The resultingmessage is SOAP compliant. (The SOAP spec doesn't require use ofmulti-refs, and it doesn't specify how to indicate whether to use them
or not.)Regarding SOAP encoding versus literal:SOAP encoding is an out-dated data model for mapping language objectsto XML. Literal maps the language object to a structure defined by XMLSchema. When SOAP was first published in 2000, the XML Schema
specification wasn't completed, so the SOAP authors defined their owndata model. But SOAP encoding was not completely specified, and itoften generates gnarly interoperability issues. The WS-I Basic Profile
outlaws use of SOAP encoding, and in SOAP 1.2, support for SOAPencoding is optional.Another pertinent fact: SOAP encoding is much slower than literal.You can indicate that you want to use literal in the WSDL, WSDD, or Java2WSDL.
In the WSDL binding, you specify: In WSDD, you specify:  style="wrapped" use="literal"In Java2WSDL, you specify:
   -y, --style WRAPPED      -u, --use LITERALAnneOn 8/22/06, xu cai <[EMAIL PROTECTED]> wrote:>> hi Anne,>Thanks for your valued reply.
>I appreciate it.>Could you answer me some questions  further ?> 1) For options 3, How to turn off multi-refs ?> Is the multi-ref option a part of soap spec, or just a part of Axis
> implementation ?>> 2) For option 4,  Use literal rather than SOAP encoding> what's the difference of literal and soap encoding ?> how to change encoding style ?> it's the axis implementation issue or spec issue ?
>>>> On 8/19/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:> >> Options:>> 1. Change the schema and specify that the "id" attribute must be
> namespace qualified,>e.g., > 2. Change the schema and specify a different name for the attribute> 3. Turn off multi-refs
> 4. Use literal rather than SOAP encoding>> Anne>> On 8/18/06, xu cai <[EMAIL PROTECTED]> wrote:> >> > I got a weird issue.
> > In my case, the soap response generated by axis engine is not a valid xml,> > because there are two "id" attribute in multiRef element.> >> > see  the snippet :> >
> >> > soapenv:encodingStyle=" http://schemas.xmlsoap.org/> > soap/encoding/" id="mgw_monitoring_enabled" xsi:type="ns4:ReplyColumn"
> > xmlns:ns4=" http://www.foo> > .com/" xmlns:soapenc="> > http://schemas.xmlsoap.org/soap/encoding/
">Y> >> > the first "id" attribute is the id of the element, it's referenced by> other> > element. as you know, the soap response generated by axis always looks so,
> > there are so many "mutiRef" element. ...> >> > the second "id" attribute is the caused by my wsdl file , it means the> "id"> > of this record, it's the content of the reply data.
> > WSDL interface is finalized, I also think the "id" attribute make sense> and> > should be changed.> >> > So my question is,  is there any way to fix this porblem. allow customer
> add> > a attribute "id" to their expected reply data ?> >> > Since "id" attribute is used by "multiRef", can we define "id" attribute> in
> > wsdl ?  > >>  > many thanks> >> >> >> > --> > - xucai>> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>> --> - xucai-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- - xucai 


Re: Attribute "id" was already specified for element "multiRef" Exception, how to custmoize soap response.

2006-08-22 Thread xu cai
hi Anne,
   Thanks for your valued reply. 
   I appreciate it. 
   Could you answer me some questions  further ?
1) For options 3, How to turn off multi-refs ?
Is the multi-ref option a part of soap spec, or just a part of Axis implementation ?
 
2) For option 4,  Use literal rather than SOAP encoding
what's the difference of literal and soap encoding ?  
how to change encoding style ?
it's the axis implementation issue or spec issue ?
 
On 8/19/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Options:1. Change the schema and specify that the "id" attribute must benamespace qualified,
   e.g., 2. Change the schema and specify a different name for the attribute3. Turn off multi-refs4. Use literal rather than SOAP encoding
AnneOn 8/18/06, xu cai <[EMAIL PROTECTED]> wrote:>> I got a weird issue.> In my case, the soap response generated by axis engine is not a valid xml,
> because there are two "id" attribute in multiRef element.>> see  the snippet :>>> soapenv:encodingStyle="
http://schemas.xmlsoap.org/> soap/encoding/" id="mgw_monitoring_enabled" xsi:type="ns4:ReplyColumn"> xmlns:ns4="
http://www.foo> .com/" xmlns:soapenc="> http://schemas.xmlsoap.org/soap/encoding/">Y>> the first "id" attribute is the id of the element, it's referenced by other
> element. as you know, the soap response generated by axis always looks so,> there are so many "mutiRef" element. ...>> the second "id" attribute is the caused by my wsdl file , it means the "id"
> of this record, it's the content of the reply data.> WSDL interface is finalized, I also think the "id" attribute make sense and> should be changed.>> So my question is,  is there any way to fix this porblem. allow customer add
> a attribute "id" to their expected reply data ?>> Since "id" attribute is used by "multiRef", can we define "id" attribute in> wsdl ?  >
> many thanks>>>> --> - xucai-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- - xucai 


Attribute "id" was already specified for element "multiRef" Exception, how to custmoize soap response.

2006-08-18 Thread xu cai
I got a weird issue.
In my case, the soap response generated by axis engine is not a valid xml, because there are two "id" attribute in multiRef element.  
 
see  the snippet : 
 
   id="id4" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
id="mgw_monitoring_enabled" xsi:type="ns4:ReplyColumn" xmlns:ns4="http://www.foo.com/" xmlns:soapenc="Y
http://schemas.xmlsoap.org/soap/encoding/">Y>   
the first "id" attribute is the id of the element, it's referenced by other element. as you know, the soap response generated by axis always looks so, there are so many "mutiRef" element. ...

 
the second "id" attribute is the caused by my wsdl file , it means the "id" of this record, it's the content of the reply data. 
WSDL interface is finalized, I also think the "id" attribute make sense and should be changed.
 
So my question is,  is there any way to fix this porblem. allow customer add a attribute "id" to their expected reply data ?
 
Since "id" attribute is used by "multiRef", can we define "id" attribute in wsdl ?  
 
many thanks
-- - xucai 


Re: Book for Axis

2006-08-02 Thread xu cai
thanks derek, I am also thinking about port a service from Axis 1.4 to 2.0, now I would rather wait for a while.   
On 8/3/06, Derek <[EMAIL PROTECTED]> wrote:




In my opinion, the 1.0 release was so unstable that it should have been termed a beta. Extremely commonly used features simply did not work, or did not work reliably, or had a design that was not yet stable enough to be worth writing code for. The current nightly builds are starting to become moderately stable. However, documentation (updated user guide, etc.) for the changes made in these builds has lagged the development effort for quite a bit, making it difficult to actually figure out how to use the new features.

 
I have been trying for weeks to port a web service that worked fine on Axis 1.4 to Axis 2. I have not yet succeeded. 
I have hit a lot of bugs, including quite a few I consider "serious" which made basic, commonly needed features unusable. Many have been fixed, but a number of crucial ones have not yet been fixed. (Yes, I have entered these in JIRA).

 


Documentation of how to use Axis2 is spotty, with many important areas entirely omitted from the user documentation. Some infrequently used areas are covered in great depth, but more commonly needed areas (Fault handling, HTTP chunking, 
accessing SOAP headers, invocation of WSDL2Java from ANT, etc.) are omitted entirely, and hence the mailing list tends to discuss these topics quite frequently. 
Also, some of the existing documentation is no longer entirely correct, due to design changes.
 Reading the mailing list, I am still seeing a lot of people complaining about NullPointerExceptions and similar other low-level exceptions (OMException, etc.) being thrown from various tools or from generated code. This just shouldn't happen on a regular basis. These sorts of problems should be exceedingly rare, but instead they seem to be quite common. They seem particularly common when feeding invalid or unsupported input to tools -- the tools fail to properly detect that the input is invalid, and simply crash instead of issuing a useful error message.

 
I would say that Axis2 is fairly immature at this point. It has a lot of nice features, and the code I wrote using it is FAR more elegant, smaller, and easier to understand than the corresponding code for Axis 
1.4. However, my experience has been that there are a lot of "rough edges" in Axis2, and a single one of those can stop you cold for a week or more while you try to figure out what is going on. At the moment, my project is entirely on hold waiting for some of the bugs I have filed to be fixed.

 
To their credit, the people on this mailing list have been quite helpful. Also, a number of the bugs that I filed were fixed within a week (or even a few days) of having been submitted. It is clear that Axis2 is improving rapidly.

 
Still, I would hesitate to base a major project on Axis2 at its current stage of code maturity unless you are prepared to devote significant time to identifying and fixing bugs in Axis2 itself.

 
Derek



-Original Message-From: sudip shrestha [mailto:[EMAIL PROTECTED]] 

Sent: Wednesday, August 02, 2006 12:52 PMTo: axis-user@ws.apache.org
Subject: Re: Book for Axis

Wondering if Axis 2 is production ready or if not when we should expect it to be production ready?
On 8/2/06, José Ferreiro < [EMAIL PROTECTED]
> wrote: 

hello Sudip,I am also new to web services and I bought this book: http://agileskills2.org/DWSAA/
I am interested in WSS4J security.As I am a beginner I don't know if this is a good book or not. I start it and it is not too bad.It explains Eclipse, Axis 1.3 and WSS4J! Hope this helps. I am starting soon also with a project about web services.
However I think I will use Axis 1.4 (obviously Axis 2 is another way). Some comments from someone between Axis 1.x and Axis2 will be appreciated.Thank you.José

On 8/2/06, sudip shrestha < [EMAIL PROTECTED]> wrote:
 

Hi,What is a good reference book for Apache Axis?  Need to start diggin into Web Services  I am new to web services, should I jump into Axis 2, (not studyin Axis 2)?  

-- José FerreiroEPFL Communication Systems engineering.sys.com.dipl.EPFLPhone: +41 (0)79 644 98 25 [+41 (0)76 526 55 55] 

-- - xucai 


Re: Can't remove service using undeploy

2006-08-02 Thread xu cai
you can edit the WEB-INF/server-config.wsdd file manually, just remove the service definition.
On 8/3/06, Christopher Jon Jursa <[EMAIL PROTECTED]> wrote:
Hello,Is there a way to flush all the services in Axis without the undeploy.wsddfile?I have a service installed that cannot be removed.  I wouldn't care but when
I go to list my services, I get error messages saying a class file for thedeleted service cannot be found.Thanks for reading and for any help in advance.Sincerely,Christopher Jon JursaGeoinformatics Laboratory
School of Information SciencesUniversity of Pittsburghweb: http://gis.sis.pitt.eduemail: [EMAIL PROTECTED]phone: 412-624-8858
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]-- - xucai 


Re: Question about handling custom exceptions in Axis 1.3

2006-08-02 Thread xu cai
AxisFault extends from RemoteException, I think you can simply cast RemoteException to your customized exception. hope it works. 
 
-jeff 
On 8/3/06, Eric Borisow <[EMAIL PROTECTED]> wrote:
Hi,I have been trying to piece together the best way togenerate and consume a custom exception with Axis
1_3.  I have created a test with an interface, aservice implementation of the interface and anException.When I generate the wsdl using java2wsdl, the wsdlcontains a reference to the TestException class as a
fault of the service.  When I call the service, itreturns an AxisFault containing information about thefault.  My question is... what can I do with thatRemoteException to get my exception out of it?  I have
seen some other articles where it seems you shouldjust be able to catch your custom exception but all Iever get is RemoteException which I then have toconvert to an AxisFault but I still don't get access
to my exception per se.  See below for my code.Thanks,EricInterface:public interface IServiceTest{   public void throwError() throws TestException;}Service implementation:
public class Service implements IServiceTest{   public void throwError() throws TestException   {   throw new TestException();   }}Exception:import java.io.Serializable
;public class TestException extends Exceptionimplements Serializable{   private String someError;   public TestException() {}   public TestException(String someError)   {   
this.someError = someError;   }   public String getSomeError()   {   return someError;   }   public void setSomeError(String someError)   {   this.someError = someError;
   }}wsdl:targetNamespace="http://services.spx.com"
xmlns:impl="http://services.spx.com"xmlns:intf="http://services.spx.com"xmlns:apachesoap="
http://xml.apache.org/xml-soap"xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/
">http://www.w3.org/2001/XMLSchema
"targetNamespace="http://services.spx.com">  namespace="http://schemas.xmlsoap.org/soap/encoding/
"/> type="xsd:string"/>   
 type="impl:TestException"/>  
  
 message="impl:throwErrorRequest"/>message="impl:throwErrorResponse"/>message="impl:TestException"/> type="impl:Service"> transport="http://schemas.xmlsoap.org/soap/http"/> 
   encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"namespace="http://services.spx.com"/>
   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"namespace="
http://services.spx.com"/>   use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"namespace="http://services.spx.com"/>
  binding="impl:axisexceptiontestSoapBinding">
location="http://localhost:7080/axisexceptiontest/services/axisexceptiontest"/> 
  And finally, the text client code:import java.io.StringWriter;import java.rmi.RemoteException;import javax.xml.namespace.QName;import 
javax.xml.rpc.soap.SOAPFaultException;import org.apache.axis.AxisFault;import org.apache.axis.client.Call;import org.apache.axis.client.Service;import org.apache.xml.serialize.OutputFormat;import org.apache.xml.serialize.XMLSerializer
;import org.w3c.dom.Document;import org.w3c.dom.Element;public class ManualServiceTest{   /*** @param args*/   public static void main(String[] args)   {   try
   {   Service  service = new Service();   Call call= (Call)service.createCall();   String endpointURL ="
http://localhost:81/axisexceptiontest/services/axisexceptiontest";   call.setTargetEndpointAddress( newjava.net.URL(endpointURL) );   call.setOperationName( newQName("urn:axisexceptiontest", "throwError") );
   // Integer response = (Integer)call.invoke( new Object[] { TestException,"ldapTestException" } );   call.invoke(new Object[] { });   }catch(SOAPFaultException fault){
   fault.printStackTrace();   System.out.println("Fault Detail : "+fault.getDetail());   System.out.println("Fault Actor : "+fault.getFaultActor());   
System.out.println("Fault String: "+fault.getFaultString());   } catch (RemoteException gbe) {   System.out.println(gbe.toString());   gbe.printStackTrace();   System.out.println
("Class of exception is:" + gbe.getClass().getName());   if (gbe instanceof AxisFault)   {   System.out.println("Exception is anAxis Fault");   AxisFault fault = (AxisFault) gbe;
   System.out.println("Fault reason is:");System.out.println(fault.getFaultReason());   System.out.println("Fault string is:");System.out.println
(fault.getFaultString());   System.out.println("Fault Actor : "+fault.getFaultActor());   System.out.println("Fault String: "+fau

Re: how to handle soap session in Axis 1.4

2006-08-02 Thread xu cai
just a follow up on my question.
 
By default, each client request will belong to a new session, right ?  
even the server side can handle session (session scope), it will create a new session for each new request. 
 
On 8/3/06, xu cai <[EMAIL PROTECTED]> wrote:


In Axis 1.4, if the service scope is configured as "Session", it means that one object will be created for a session.
Requests from clients may belong to one session or not.  So how could I know the request come from a same session ? Is there any Api in axis 1.4 to handle session ? Is the session the same one as HttpSession ?

 
Anybody can help ?
 
thanks

 
-Xu -- - xucai 


how to handle soap session in Axis 1.4

2006-08-02 Thread xu cai
In Axis 1.4, if the service scope is configured as "Session", it means that one object will be created for a session.
Requests from clients may belong to one session or not.  So how could I know the request come from a same session ? Is there any Api in axis 1.4 to handle session ? Is the session the same one as HttpSession ?

 
Anybody can help ?
 
thanks
 
-Xu 


how to manage http session in Axis ?

2006-07-27 Thread xu cai
Here is a newbie question. 
I just wanna to control the number of clients to access to my webservice.
Simply, I can allocate the "key" to client side, and each RPC call will take the "key" as a parameter. so I can manage the client/session.
But my question is how to manage the client/sessio using HttpSession in Axis ?
Anybody can give me a clue ?
 
thanks
 - xucai 


Re: axis background thread?

2006-07-27 Thread xu cai
conceptually, there are two type of service invocation: synchronized and asychronized. 
RPC is for synchronized, ang message is for the asychrozied.
I think you are talking about asychronized one. So you may can use "Document" style instead of "RPC" style.  
On 7/28/06, Guo, Jeffrey <[EMAIL PROTECTED]> wrote:
You could use MDB in a j2ee environment if you have a request/responseand the MDB should be running in the background and you could send the
response back to the client using ws-eventing.-Original Message-From: tom mccarthy [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 27, 2006 3:38 PMTo: 
axis-user@ws.apache.orgSubject: axis background thread?I am trying to implement a web service which does a large number ofthings. For instance, it can make on the order of 40,000 sql queriesdepending on what needs to be done. Because this takes such a long time
to do, and because the user is only needed to give the informationnecessary to start the thread, I'd prefer to just start a thread, send aresponse to the user that this thread has been initiated, and have this
thread run long after the user has gone on their merry way.I guess my question is, is it possible to implement a background processlike this where the process continues long after the response has been
sent back to the user, or can this only be implemented as a processwhich does not give a response back to the user?I've been looking for information on this, but really haven't foundmuch. Perhaps because I'm not using the right terminology. I'm quite new
to axis and web services.-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]
-- - xucai 


Re: how to do some init jobs in my web service ?

2006-07-26 Thread xu cai
oh, thanks
My service will be session scope.
but I only want the it will be initialized only one time.
So seems I need override the axis servlet class. 
 
-Jeffrey. 
On 7/26/06, D P <[EMAIL PROTECTED]> wrote:

You can initialize the Axis servlet itself by overriding the axis servlet class and implementing an init method. Alternatively, you can init a specific service by placing a public void init(ServiceContext serviceContext) method in your service skeleton class. You can control how often the service's init() method is called by declaring a scope for the service in your 
services.xml file. For example,declaring the scope=application will cause the init() method to be called once on startup, setting scope=session will call it once per client session. 

On 7/26/06, xu cai <
[EMAIL PROTECTED]> wrote: 


I need initilize something before my web service come to work,  such as startup some thread, create some db connections. 
How can I do that in Axis ? can I just deploy a servlet to axis ?  -- - xucai -- - xucai 


Re: log4j.properties

2006-07-26 Thread xu cai
on server side, put it to web-info/lib
on client side, put it to axis.jar 
On 7/26/06, Bharadwaj, Nandita (GE Healthcare) <[EMAIL PROTECTED]> wrote:



Where should the log4j.properties be deployed? 
 
Thanks,
Nandita-- - xucai 


how to do some init jobs in my web service ?

2006-07-25 Thread xu cai
I need initilize something before my web service come to work,  such as startup some thread, create some db connections. 
How can I do that in Axis ? can I just deploy a servlet to axis ?  -- - xucai 


Re: [AXIS2] userguide problem

2006-07-24 Thread xu cai
Hi Fabien, how do you generate your wsdl file ? manually write it ?
 
On 7/24/06, Fabien Couble <[EMAIL PROTECTED]> wrote:



Hi Anne,
Thx for your reply...
You can see enclosed my wsdl file
 
Thx very much for your review

 
Fabien


- Original Message - 
From: 
Anne Thomas Manes 
To: axis-user@ws.apache.org
 
Sent: Friday, July 21, 2006 5:00 PM
Subject: Re: [AXIS2] userguide problem
 You can't simply change the style from "rpc" to "document" and expect it to work. You also must remove the "namespace" attributes from the  definitions, and you need to change the message  definitions to reference elements rather than types, and thos elements must be defined/imported/included in the  section. 
If you post your WSDL, I'd be happy to review it for you.Anne
On 7/21/06, Fabien Couble <
 [EMAIL PROTECTED]> wrote: 



Hi all,
Still have a problem with the userguide. The client using the stub generated from a WSDL file doesn't work.
I have modified the WSDL file and I put "document" instead of "RPC" for the method. 
().There is the same problem.

 
Actually, the stub accepts only a parameter EchoIntParam whereas the code proposed in the userguide applys a EchoIntParamDocument parameter.
Moreover, when I put a EchoIntParam parameter, an exception is raised at the server side (skeleton) because it waits a EchoIntParamDocument parameter.
 
What should I do?
Please help me...
Fabien
 
 



This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. 






This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- - xucai 


Re: how to put the package?

2006-07-23 Thread xu cai
create a jar file including your package, and put it to /WEB-INFO/lib directory, and restart tomcat.
On 7/22/06, Saehoon Cheon <[EMAIL PROTECTED]> wrote:


The service I want to use has a package such as " package abc". The service have to use the all the class files of the package.
Where should I put the package and should I set the classpath ?  -- - xucai 


Re: Got well-formd soap response, but still with org.xml.sax.SAXParseException: Premature end of file

2006-07-23 Thread xu cai
Really weird, I change a little on org.apache.axis.encoding.DeserializationContext.java, 
write the Soap response to a txt file, and parse the the Soap response from the txt file.
and this time, the boring "org.xml.sax.SAXParseException: Premature end of file" disappeared. 
 
Following is snippet of org.apache.axis.encoding.DeserializationContext.java, I made change from line 237 to 239.
 
   231  public void parse() throws SAXException   232  {   233  if (inputSource != null) {   234  SAXParser parser = XMLUtils.getSAXParser();   235  try {   236  
parser.setProperty("http://xml.org/sax/properties/lexical-handler", this);   237  printIs(inputSource);  //write the soap response to /tmp/a.txt
   238  parser.parse(new FileInputStream("/tmp/a.txt"),this);  // parse the /tmp/a.txt   239  //parser.parse(inputSource, this);   240   241  try {
   242  // cleanup - so that the parser can be reused.   243  parser.setProperty("http://xml.org/sax/properties/lexical-handler
", nullLexicalHandler);   244  } catch (Exception e){   245  // Ignore.   246  }   247   248  // only release the parser for reuse if there wasn't an
   249  // error.  While parsers should be reusable, don't trust   250  // parsers that died to clean up appropriately.   251  XMLUtils.releaseSAXParser(parser);
   252  } catch (IOException e) {   253  throw new SAXException(e);   254  }   255  inputSource = null;   256  }   257  }   258
 
 
So seems that the reply soap message is well-formed, but may be less of one of control character ?   Could anybody give me a explain ? or it's a bug of Axis 1.4? 
 
 
 
 
 
On 7/23/06, xu cai <[EMAIL PROTECTED]> wrote:


hi, this time, I debug with tcpmon, and find that the soap response is well-formed. 
but I still get a "org.xml.sax.SAXParseException: Premature end of file".
I find that there is an namespace definition "xmlns:ns1=
http://www.test.com/test/i01 in soap response, and xml parser may not get schema of this namespace and finally report the error. 
 
So my question is how to associate my xsd file with the namespace in client side code ? so that the the following generated soap response can be parsed well ?
 
thanks
-Jeffrey
 
soap response:
 

http://schemas.xmlsoap.org/soap/envelope/
" xmlns:xsd="http://www.w3.org/2001/XMLSchema " xmlns:xsi="
"  href="http://www.w3.org/2001/XMLSchema-instance%22%3E" target="_blank">http://www.w3.org/2001/XMLSchema-instance">



http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1=""  href="http://www.test.com/test/i01%22%3E" target="_blank">
 http://www.test.com/test/i01">



http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Reply" xmlns:soapenc=" 
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2=""  href="http://www.test.com/test/i01%22%3E" target="_blank">
http://www.test.com/test/i01">
true
hello world
0
0
0



 
exception: 
AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException : Premature end of file. faultActor:  faultNode:  faultDetail:     {

http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException : Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError
(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
 (Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
 (Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
 (SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:235)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:697)    at org.apache.axis.Message.getSOAPEnvelope
 (Message.java:435)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.j

Re: [Axis 1.4] how to setup log4j.properties at Axis client side

2006-07-23 Thread xu cai
ok, thanks. 
I finally get what I need. 
Just put log4j.properties to axis.jar, and change the logging level to "DEBUG".
 
On 7/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:




In that situation use whatever logging mechanism you set up to capture stdout or stderr streamGL.
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 


- Original Message ----- 
From: 
xu cai 
To: axis-user@ws.apache.org
 

Sent: Friday, July 21, 2006 3:32 AM
Subject: Re: [Axis 1.4] how to setup log4j.properties at Axis client side
 
sorry, you may not understand me.
 
I want to see the client side log. 
 
currently the soap request can't be generated well, I need to know what happens on client side. 
On 7/21/06, 蘇 軼(CEC) <
[EMAIL PROTECTED]> wrote: 
hi xucai,try1. create log4j.properties:2. copy to webapps/$your-application/WEB_INF/classes 
3. restart Tomcatmaybe it works ...- sukie- Original Message -From: xu caiTo: 
axis-user@ws.apache.orgSent: Friday, July 21, 2006 3:23 PM Subject: [Axis 1.4] how to setup log4j.properties at Axis client sideHi All, I am testing my web-service using Axis, and how to setup log
enviroment at client side.where  should I put log4j.properties ? on classpath ? , but I still can'tsee any log information or log file generated.- xucai-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- - xucai 

-- - xucai 


Got well-formd soap response, but still with org.xml.sax.SAXParseException: Premature end of file

2006-07-22 Thread xu cai
hi, this time, I debug with tcpmon, and find that the soap response is well-formed. 
but I still get a "org.xml.sax.SAXParseException: Premature end of file".
I find that there is an namespace definition "xmlns:ns1=http://www.test.com/test/i01 in soap response, and xml parser may not get schema of this namespace and finally report the error.

 
So my question is how to associate my xsd file with the namespace in client side code ? so that the the following generated soap response can be parsed well ?
 
thanks
-Jeffrey
 
soap response:
 

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

http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="">
http://www.test.com/test/i01">


http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Reply" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="">http://www.test.com/test/i01">
true
hello world
0
0
0



 
exception: 
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException
: Premature end of file. faultActor:  faultNode:  faultDetail:     {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException
: Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)    at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
(SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:235)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:697)    at org.apache.axis.Message.getSOAPEnvelope
(Message.java:435)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
(Call.java:2784)    at org.apache.axis.client.Call.invoke(Call.java:2767)    at org.apache.axis.client.Call.invoke(Call.java:2443)    at org.apache.axis.client.Call.invoke(Call.java:2366)    at 
org.apache.axis.client.Call.invoke(Call.java:1812) 
 


Re: web services multithreading

2006-07-22 Thread xu cai
I am not sure about your question. but I think, there should be mutiple objects/threads serving mutiple clients. and client need to manage/handle the sequence of invocation.
 
On 7/23/06, Xinjun Chen <[EMAIL PROTECTED]> wrote:
I am wondering how web services are scalable.Let's assume there is one webservice ServiceA with an operation
OperationA deployed in Axis1.2.1.1. At the runtime, if there are multiple clients invoke the OperationAconcurrently, how it will be done internally?2. I think there will be only one instance of ServiceA, right?
3. Will there be one extra thread created when one invocation happens?4. If the same client invokes the OperationA in two consecutive call,it is ensured that the first call will always be served before the
second call?5. Is there any difference about this multiple invocations in Axis2?Regards,Xinjun-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- - xucai 


Re: [Axis 1.4] how to setup log4j.properties at Axis client side

2006-07-21 Thread xu cai
sorry, you may not understand me.
 
I want to see the client side log. 
 
currently the soap request can't be generated well, I need to know what happens on client side. 
On 7/21/06, 蘇 軼(CEC) <[EMAIL PROTECTED]> wrote:
hi xucai,try1. create log4j.properties:2. copy to webapps/$your-application/WEB_INF/classes
3. restart Tomcatmaybe it works ...- sukie- Original Message -From: xu caiTo: axis-user@ws.apache.orgSent: Friday, July 21, 2006 3:23 PM
Subject: [Axis 1.4] how to setup log4j.properties at Axis client sideHi All, I am testing my web-service using Axis, and how to setup logenviroment at client side.where  should I put log4j.properties
 ? on classpath ? , but I still can'tsee any log information or log file generated.- xucai-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- - xucai 


Re: please recommend a good wsdl validation tool

2006-07-21 Thread xu cai
thanks again for your reply.
 
anyway, these tools are all plugins to IDE,
 
I don't use IDE,  is there any other tools. not binded with Eclipse, JB. or other IDEs. 
On 7/21/06, 蘇 軼(CEC) <[EMAIL PROTECTED]> wrote:

 

hi xucai,
 

http://wiki.apache.org/ws/FrontPage/Axis/IDEIntegration
 
may be helpful.
 
BTW; i donot use it
 
- sukie

 

- Original Message ----- 
From: 
xu cai 
To: 
axis-user@ws.apache.org 
Sent: Friday, July 21, 2006 3:33 PM
Subject: please recommend a good wsdl validation tool
 
thanks in advance.
Could anybody recommend a good wsdl validation tool for me ?-- - xucai 
-- - xucai 


Re: [Axis 1.4] java.lang.reflect.InvocationTargetException

2006-07-21 Thread xu cai
yes, you are right. :-)
On 7/21/06, 蘇 軼(CEC) <[EMAIL PROTECTED]> wrote:
hi xucai,plz check the classpath, the error isCaused by: java.lang.NoClassDefFoundError   at
com.sswitch.oam.pcsp.impl.BTSPcspAdapter.get(BTSPcspAdapter.java:54)-sukie- Original Message -From: xu caiTo: axis-user@ws.apache.org ; 
axis-dev@ws.apache.orgSent: Friday, July 21, 2006 3:25 PMSubject: [Axis 1.4] java.lang.reflect.InvocationTargetExceptionhi all,I am testing my web-service using the stub classed generated by
wsdl2java. and get following exception.anybody know what happens ?faultDetail:{http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetEx
ception   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   atsun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java :25)   at java.lang.reflect.Method.invoke(Method.java:585)   atorg.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)   at org.apache.axis.providers.java.RPCProvider.processMessage
(RPCProvider.java:283)   atorg.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)   atorg.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)   at 
org.apache.axis.SimpleChain.doVisiting (SimpleChain.java:118)   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)   atorg.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
   at org.apache.axis.server.AxisServer.invoke (AxisServer.java:281)   atorg.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)   at javax.servlet.http.HttpServlet.service(HttpServlet.java
:709)   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)   atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)   atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)   atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)   at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java :198)   atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)   atorg.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)   atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)   atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)   atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)   atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)   atorg.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)   atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)   atorg.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:799)   atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java :705)   atorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)   atorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)   at java.lang.Thread.run (Thread.java:595)Caused by: java.lang.NoClassDefFoundError   at
com.sswitch.oam.pcsp.impl.BTSPcspAdapter.get(BTSPcspAdapter.java:54)   atcom.packetcable.www.pcsp.i01.PcspI01ServiceImpl.get(PcspI01ServiceImpl.java:27)   atcom.packetcable.www.pcsp.i01.PcspI01ServiceSkeleton.get
(PcspI01ServiceSkeleton.java:120)   ... 40 more   {http://xml.apache.org/axis/}hostname:priems-240--- xucai-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- - xucai 


please recommend a good wsdl validation tool

2006-07-20 Thread xu cai
thanks in advance.
Could anybody recommend a good wsdl validation tool for me ?-- - xucai 


Re: [Axis2]Why cannot hot delete services?

2006-07-20 Thread xu cai
I am not sure with axis2, 
but for axis 1.4, you can do that from 
http://yourhostname:port/axis/servlet/AdminServlet 
On 7/21/06, zhu jiang <[EMAIL PROTECTED]> wrote:


Hi All,
 
    How could I hot delete a service instead of rebooting the servlet container?
 
Thanks,

Jiang-- - xucai 


[Axis 1.4] java.lang.reflect.InvocationTargetException

2006-07-20 Thread xu cai
hi all, 
 I am testing my web-service using the stub classed generated by wsdl2java. and get following exception.
anybody know what happens ?
 
faultDetail:     {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException    at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)    at java.lang.reflect.Method.invoke(Method.java:585)    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)    at org.apache.axis.providers.java.RPCProvider.processMessage
(RPCProvider.java:283)    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)    at org.apache.axis.SimpleChain.doVisiting
(SimpleChain.java:118)    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)    at org.apache.axis.server.AxisServer.invoke
(AxisServer.java:281)    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)    at org.apache.axis.transport.http.AxisServletBase.service
(AxisServletBase.java:327)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)    at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java
:198)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)    at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)    at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)    at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java
:705)    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)    at java.lang.Thread.run
(Thread.java:595)Caused by: java.lang.NoClassDefFoundError    at com.sswitch.oam.pcsp.impl.BTSPcspAdapter.get(BTSPcspAdapter.java:54)    at com.packetcable.www.pcsp.i01.PcspI01ServiceImpl.get(PcspI01ServiceImpl.java
:27)    at com.packetcable.www.pcsp.i01.PcspI01ServiceSkeleton.get(PcspI01ServiceSkeleton.java:120)    ... 40 more
    {http://xml.apache.org/axis/}hostname:priems-240-- - xucai 


[Axis 1.4] how to setup log4j.properties at Axis client side

2006-07-20 Thread xu cai
Hi All,
  I am testing my web-service using Axis, and how to setup log enviroment at client side. 
where  should I put log4j.properties ? on classpath ? , but I still can't see any log information or log file generated.
 
- xucai 


Re: Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"

2006-07-20 Thread xu cai
Martin, 
 thanks for your reply. I appreciate it. 
I know that it's may because the input xml is not well-formed.
but, as you know, I am invoking an web-service through the generatd stub class by wsdl2java.  the soap request is also generated by Axis, so I even can't see the content of the generated soap request. 
 
can anybody tell me how can I have a look at the generated soap request ?
 
if the soap message is not well-formed, what's the possible root cause ?  what should I do ? should I report a bug to axis ? or it's caused by my own code or wsdl ?
 
thanks
-xucai.
 
 
On 7/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:



Xu-
Things to look for are is the input XML contain perhapsmissing End Tag (e.g.  without a )Sub elements content clipped or chopped off

...no end tag
or missing 
Use any XML Editor such as XMLSpy or even IE in a pinch and the XMLParser will tell you where the error/missing content occurs
Martin
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 


- Original Message - 
From: 
xu cai 
To: axis-user@ws.apache.org
 ; axis-dev@ws.apache.org 


Sent: Thursday, July 20, 2006 5:41 AM
Subject: Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"
 
Hi All , I run a simple test class to access my webservice deployed on axis 1.2.1 (Built on Jun 14, 2005 (09:15:57 EDT). and got an exception.
 The truth is soap msg can't be generated and an SAX xml exception is thrown. Could anyone tell me what happened ? and how to fix that ?
 
many thanks.
 
 
the src code SoapPart.java looks as:
    dser.getEnvelope().setOwnerDocument(this);    // This may throw a SAXException    try {    dser.parse();  // exception     } catch (SAXException e) {    Exception real = 
e.getException();    if (real == null)    real = e;    throw AxisFault.makeFault(real);    }
Exception msg: 

AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException : Premature end of file. faultActor:  faultNode:  faultDetail:     {

http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException : Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError
(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
 (Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
 (Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
 (SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)    at org.apache.axis.Message.getSOAPEnvelope
 (Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
 (Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apache.axis.client.Call.invoke(Call.java:2424)    at org.apache.axis.client.Call.invoke(Call.java:2347)    at 
org.apache.axis.client.Call.invoke(Call.java:1804)    at com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java
 :22)
    {http://xml.apache.org/axis/}hostname:sha-view1.cisco.com

org.xml.sax.SAXParseException: Premature end of file.    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)    at org.apache.axis.Message.getSOAPEnvelope
 (Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
 (Call.java:2765)    at org.apache.axi

Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"

2006-07-20 Thread xu cai
Hi All , I run a simple test class to access my webservice deployed on axis 1.2.1 (Built on Jun 14, 2005 (09:15:57 EDT). and got an exception.
The truth is soap msg can't be generated and an SAX xml exception is thrown. Could anyone tell me what happened ? and how to fix that ?
 
many thanks.
 
 
the src code SoapPart.java looks as:
    dser.getEnvelope().setOwnerDocument(this);    // This may throw a SAXException    try {    dser.parse();  // exception     } catch (SAXException e) {    Exception real = 
e.getException();    if (real == null)    real = e;    throw AxisFault.makeFault(real);    }
Exception msg: 

AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException
: Premature end of file. faultActor:  faultNode:  faultDetail:     {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException
: Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)    at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
(SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)    at org.apache.axis.Message.getSOAPEnvelope
(Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
(Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apache.axis.client.Call.invoke(Call.java:2424)    at org.apache.axis.client.Call.invoke(Call.java:2347)    at 
org.apache.axis.client.Call.invoke(Call.java:1804)    at com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java
:22)
    {http://xml.apache.org/axis/}hostname:sha-view1.cisco.com
org.xml.sax.SAXParseException: Premature end of file.    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)    at org.apache.axis.Message.getSOAPEnvelope
(Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
(Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apache.axis.client.Call.invoke(Call.java:2424)    at org.apache.axis.client.Call.invoke(Call.java:2347)    at 
org.apache.axis.client.Call.invoke(Call.java:1804)    at com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java
:22)Caused by: org.xml.sax.SAXParseException: Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError
(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
(SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)


how to deploy a wsdd to axis1.x remotely

2006-07-19 Thread xu cai
hi axis-users.
 
    Irun org.apache.axis.client.AdminClient to deploy a web service to axis1.x remotely. 
but get a 401 return code. 
 what's the default username/passwd should I use ?
 I tried tomcat user. but failed. -Jeff.


Can't generate java classes from this WSDL file.

2006-07-18 Thread xu cai
Hi Axis-users.
 
 I think a  Request.java class should be generated from following wsdl file. The Request.java should be one of the input parameter to the web service port.  but no Request.java is not generated. 
 
 I run the wsdl2java and the interface looks like: 
 
public com.jab.soap.intf.Reply request(com.jab.soap.intf.Req_Entry_Type[] in0, java.lang.String in1) throws java.rmi.RemoteException, com.jab.soap.intf.SoapException;
 
how to solve this problem ?
 
thanks
 
-Jeffrey