Re: [Axis2] suuport in RPC encoded

2006-09-26 Thread Anne Thomas Manes

Axis2 does not support SOAP Encoding.

Anne

On 9/26/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:





Hi,



Does Axis2 support RPC encoded web services? If it does, then does it
support reading an RPC encoded WSDL file which is located under the META-INF
directory?



Thanks,

Shahar Kedar


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



Re: Newbie here, need example of a "wrapped" style webservice

2006-09-26 Thread Anne Thomas Manes

Axis2 does not [yet] support the wrapped convention.

On 9/26/06, Crespillo, Matias <[EMAIL PROTECTED]> wrote:

Hello, I have been trying to get a webservice of the style wrapped to work
for a while now, I have been coming and gonig between 1.4 an 2 for axis and
decided to settle for 2, however I have been absolutely unsuccessful in
implementing a simple wrapped style webservice, does anyone by any chance
have a good tutorial on this type of server webservice development, or a
sample of the services.xml + a simple java file (i believe that is all i
need) for this?

Thanks a lot in advance, and I am sorry to ask for such thing but I have
been unsuccessful finding that particular example and I am (or at least
feeling) quite inpet as I am not able to get it to work.

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



[ANN] Stylus Studio 2007 XML Enterprise Suite Released: XML Pipeline, XML Publishing and Data Conversion API's

2006-09-26 Thread Stylus Studio

[Announce] Dear Axis Users -

Stylus Studio 2007 XML Enterprise Suite is now available for free
trial download, featuring all-new tools for XML Pipelining, XML
Publishing, powerful new Data Conversion APIs and so much more at new
reduced prices. Read on for more information, or download it now at:
http://www.stylusstudio.com/xml_download.html

The Stylus Studio XML Pipeline tool is the world's first true
integrated development environment for XML programming because it
provides a comprehensive way to model, edit, debug, and deploy the
entire application, rather than just the individual bits and pieces
that make it up. The following are some of the highlights of the new
Stylus Studio XML Pipeline tool -

* Visual editor: lets you specify and link together any number of XML
processing operations to be applied to your data
* Support for dozens of XML processing operations including
converting, transforming, validating, querying, and publishing your data
* Re-use XML Pipelines inside other XML Pipelines
* Complete XML Pipeline debugging support
* Cross-language debugging support -- step into XSLT or XQuery
* Define pipeline flow control based on different conditions, for
example, the outcome of an XML validation operation, or the result of
an XPath expression
* Generate Java code to deploy an entire XML application, not just one piece
* Extensible execution framework enables developers to choose
different processors for XML validation, XSLT, XSL:FO, and XQuery

XML Pipeline Video Demonstration:
http://www.stylusstudio.com/videos/pipeline2/pipeline2.html
For more information about XML Pipeline:
http://www.stylusstudio.com/xml/pipeline.html

The Stylus Studio XML Publisher product provides the easiest way to
create professional quality reports from your XML and relational data
without needing a degree in Computer Science. The following are just a
few of the highlights of Stylus Studio XML Publisher product:

* Visually design stylesheets and publish them to PDF, HTML,
PostScript and other document formats.
* Access numerous data sources including relational databases, XML,
Web services, EDI, X12, EDIFACT, IATA, CSV and thousands of other
legacy file formats.
* Generate XQuery or XSLT 1.0 / XSLT 2.0 to generate XSL:FO or HTML output.
* Integration with RenderX XEP and Apache FOP.
* Support for rich formatting including tables, lists, text blocks,
images, and more.
* Support for iteration, flow control, and conditions based on XPath.
* Integration with XML Pipeline enables XML publishing as part of a
larger XML workflow application.

XML Publisher Video Demonstration:
http://www.stylusstudio.com/videos/publisher1/publisher1.html
For more information about XML Publisher:
http://www.stylusstudio.com/xml/publishing.html

Data Conversion APIs are scalable XML adapters for reading and writing
different legacy file formats such as EDI (EDIFACT, X12, IATA, or
EANCOM), CSV, dBase, binary, or any other file format. If you're
dissatisfied using a desktop application to manually cut and paste
results every time you need to convert some data from one format or
another, or if you need to invoke data conversions programmatically,
inside your application code for use in a live application, then check
out Stylus Studio 2007 XML Deployment Adapters!

For more information about Data Conversion API's:
http://www.stylusstudio.com/data_conversion.html

Download a free trial today at: http://www.stylusstudio.com/xml_download.html
New Features: http://www.stylusstudio.com/xml_product_new_features.html
Purchase Stylus Studio: http://www.stylusstudio.com/buy/

Sincerely,
The Stylus Studio Team
http://www.stylusstudio.com

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



Log4J Screen Overflow

2006-09-26 Thread Zach Calvert

I'm pretty new to 
this and am sure there is something I am missing when configuring log4j.  I have 
looked through a lot of the archives and have not yet found the answer I need.  
I am using Tomcat 5.5.17 and have a startup servlet that I call 
PropertyConfigurator.configure to a property file that has 
 
log4j.rootLogger=DEBUG, 
ConsoleLogger
 
log4j.logger.org.apache.axis=NONE
 
log4j.appender.ConsoleLogger=org.apache.log4j.ConsoleAppenderlog4j.appender.ConsoleLogger.layout=org.apache.log4j.PatternLayoutlog4j.appender.ConsoleLogger.layout.ConversionPattern=
[%c{1}:%L]->%m%n
 
in it.  For some 
reason, debug and info lines keep coming from axis and they fill my screen 
overloading my java console.  This even happens if I put the rootLogger to 
NONE.  How do I configure log4j so that I do not get a console filled with 

 
[JspRuntimeContext:102]->Parent class loader is: 
WebappClassLoader  delegate: false  repositories:    
/WEB-INF/classes/--> Parent Classloader:[EMAIL PROTECTED]
 
[JspRuntimeContext:343]->Compilation classpath 
initialized: 
/U:/MISMOSOAP/app/webapps/axis/WEB-INF/classes/;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/axis-ant.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/axis.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/commons-discovery-0.2.jar
;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/commons-logging-1.0.4.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/jaxrpc.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/log4j-1.2.8.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/saaj.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/wsdl4j-
1.5.1.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/xerces.jar;U:\MISMOSOAP\app\work\Catalina\localhost\axis;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/classes/;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/axis-ant.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/axis.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/commons-
discovery-0.2.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/commons-logging-1.0.4.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/jaxrpc.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/log4j-1.2.8.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/saaj.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/wsdl4j-
1.5.1.jar;/U:/MISMOSOAP/app/webapps/axis/WEB-INF/lib/xerces.jar;/C:/Program 
Files/Apache Tomcat/apache-tomcat-5.5.17/common/classes/;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-en.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-es.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-fr.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-ja.jar;/C:/Program 
Files/Apache Tomcat/apache-tomcat-5.5.17/common/lib/commons-el.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/jasper-compiler-jdt.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/jasper-compiler.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/jasper-runtime.jar;/C:/Program 
Files/Apache Tomcat/apache-tomcat-5.5.17/common/lib/jsp-api.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/naming-factory-dbcp.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/naming-factory.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/naming-resources.jar;/C:/Program 
Files/Apache 
Tomcat/apache-tomcat-5.5.17/common/lib/servlet-api.jar;/U:/MISMOSOAP/;/C:/Program%20Files/Java/jdk1.5.0_08/jre/lib/ext/dnsns.jar;/C:/Program%20Files/Java/jdk1.5.0_08/jre/lib/ext/localedata.jar;/C:/Program%20Files/Java/jdk1.5.0_08/jre/lib/ext/sunjce_provider.jar;/C:/Program%20Files/Java/jdk1.5.0_08/jre/lib/ext/sunpkcs11.jar
[JspServlet:102]->Scratch 
dir for the JSP engine is: 
U:\MISMOSOAP\app\work\Catalina\localhost\axis[JspServlet:104]->IMPORTANT: 
Do not modify the generated servlets[AxisServlet:111]->In AxisServletBase 
init[AxisServlet:166]->Enter: 
getEngine()[ProjectResourceBundle:264]->getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)[ProjectResourceBundle:423]->loadBundle: 
Ignoring MissingResourceException: Can't find bundle for base name 
org.apache.axis.resource, locale 
en_US[ProjectResourceBundle:318]->Created org.apache.axis.i18n.resource, 
linked to parent 
null[ProjectResourceBundle:264]->getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)[ProjectResourceBundle:264]->getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)[ProjectResourceBundle:423]->loadBundle: 
Ignoring MissingResourceException: Can't find bundle for base name 
org.apache.axis.utils.resource, locale 
en_US[ProjectResourceBundle:423]->loadBundle: Ignoring 
MissingResourceException: Can't find bundle for base name 
org.apache.axis.resource, locale en_US[ProjectResourceBundle:328]->Root 
package not found, cross link to 
org.apache.axis.i18n.resource[ProjectResourceBundle:328]->Root package 
not found, cross link to 
org.apache.axis.i18n.resource[ProjectResource

Re: Axis2 and dotNet interoperateability

2006-09-26 Thread scott ken
David,I started the discussion using my yahoo email account. I suspect that Yahoo treats the Axis2 mailinglistas a spam. My second email to the mailinglist was bounced back. Now I'm using myGmail account to continue asking questions. Thanks!
I engaged the addressing module from axis2 admin webpage. But it seems not change the result. The request/reply soap messages are still the same. Do you know what else steps I need to performa to make addressing 
effect. And another question is, if I don't want to engage addressing dynamically from Axis2 admin servlet but want to do it in configuration files, is it possible?Thanks,vickDavid Illsley <
[EMAIL PROTECTED]> wrote: Looks to me like you need 
to engage the addressing module in the axis2server so that there are addressing headers in the response. See theAxis2 documentaton for how to do this.DavidOn 21/09/06, scott ken  wrote:> My C# client (.dotNet 
2.0 and WSE 3.0) generated the following SOAP> message.>>   >   >> xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing
">   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   xmlns:xsd="
http://www.w3.org/2001/XMLSchema">   xmlns:xop="http://www.w3.org/2004/08/xop/include">   xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
">>   >   >   >   urn:uuid:8a8309c1-a21d-48ff-aa52-2647bb377cfc>   >   >   >> 
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous>   >   >   >   http://localhost:8080/axis2/services/CMBWebService
>   >   >   >   wsu:Id="Timestamp-010f1103-934c-44fb-8778-1251c874e66e">>   2006-09-20T23:12:21Z>   2006-09-20T23:17:21Z>   >   >   >   
>  >  >  >   >   >>   The reply message from Axis2 server is>>   >   > xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">>   >   >  >  >  >   >   >>   The C# client encountered this exception>>   Unhandled Exception:
> Microsoft.Web.Services3.Addressing.AddressingFault: Message> Information Header Required ---> Micros> oft.Web.Services3.Addressing.AddressingFormatException:> WSE202: The> Action header is required when other address headers
>  are present.>--- End of inner exception stack trace --->at> Microsoft.Web.Services3.Addressing.AddressingHeaders.CheckValid()>at> Microsoft.Web.Services3.Addressing.AddressingHeaders.Load
(SoapEnvelope> envelope)>at Microsoft.Web.Services3.SoapEnvelope.PostLoad(Boolean> loadAddressing)>at Microsoft.Web.Services3.SoapEnvelope.PostLoad()>at Microsoft.Web.Services3.SoapEnvelope.Load
(XmlReader> reader)>at> Microsoft.Web.Services3.Mime.XopDocument.LoadStartPart(MimePart> startPart)>at> Microsoft.Web.Services3.Mime.XopDocument.LoadFromXopPackage(String
> contentType, Stream stream)>at> Microsoft.Web.Services3.Xml.SoapEnvelopeReaderWrapper..ctor(SoapClientMessage> message, String messageContentType)>at> Microsoft.Web.Services3.WebServicesClientProtocol.GetReaderForMessage
(SoapClientMessage> message, Int32 bufferSize)>  at> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage> message, WebResponse response,>  Stream responseStream, Boolean asyncCall)
>at> System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String> methodName, Object[] parameters)>>   I guess it's about some configuration on client side or server side.
> Can someone tell me what the fix is?>>   Thanks in advance,>>   vick>>>  > Stay in the know. Pulse on the new 
Yahoo.com. Check it out.>>-- David Illsley - IBM Web Services Development-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED] 		-Get your email and more, right on the  new Yahoo.com --0-1468242578-1159300441=:31885Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bitHi, David,I engaged the addressing module from axis2 admin webpage. But it seems not change the result. The request/reply soap messages are still the same. Do you know what else steps I need to performa to 
make addressing effect. And another question is, if I don't want to engage addressing dynamically from Axis2 admin servlet but want to do it in configuration files, is it possible?Thanks,vickDavid Illsley <
[EMAIL PROTECTED]> 
wrote: Looks to me like you need to engage the addressing module in the axis2server so that there are 
addressing headers in the response. See theAxis2 documentaton for how to do this.DavidOn 21/09/06, scott ken <
[EMAIL PROTECTED]> wrote:> My C# client (.dotNet 2.0 and WSE 3.0) generated the following SOAP> message.>>   >   >> 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">> 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing

Re: Web Services Testing

2006-09-26 Thread Davanum Srinivas

I have used JMeter, it has an option of specifying the whole soap
message via a editbox or a file.

-- dims

On 9/26/06, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:





Hi,



I am trying to test my Axis 2 web service. I have tried Mindreef and SoapUI,
but neither one has real WS-Addressing support and none really supports the
callback mechanism. Is there a tool out there that will do this?



Roshan Punnoose

Phone: 301-497-6039


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






--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: HTTP proxy and non proxy

2006-09-26 Thread Davanum Srinivas

Andres,

Could you please log "nonProxyHost" requirement as a JIRA issue?
(along with info in this email)

thanks,
dims

On 9/26/06, Andres Rodriguez <[EMAIL PROTECTED]> wrote:

Hi, I hope don´t bothering you and explain the problem clearly. In my
application I have several web service client in axis2 and I have a proxy.
Some web service clients have to interoperate with external web services
(through the proxy) and the others clients interacts with internal web
services (non proxy is needed). According to the axis2 documentation there
are two forms of performing this task:
http://ws.apache.org/axis2/1_0/http-transport.html
For me the best solution is to use the configuration file axis2.xml (for
using in all web service clients without the necessity of writing java code
in each client) but if I write the code inside the axis2.xml:

HTTP/1.0
anonymous:anonymous:anonymous

all the web service clients go out through the proxy and if I write the
code:

HTTP/1.0

all the web service clients doesn´t use the proxy.

In web service clients (prior to axis2) I can put the line in the java
virtual machine arguments:
-Dhttp.proxyHost="proxy" -Dhttp.proxyPort="8000" -Dhttp.nonProxyHosts="local
host"
and with this line I can use both web service clients (external and
internal).

And therefore I need a parameter like nonProxyHost or something similar for
interoperating with internal web services in the axis2.xml configuration
file.

Thanks in advance.


__

Andrés Rodríguez Arribas
GFI Informática España

Centro Empresarial Parque Norte
C/ Serrano Galvache nº 56
Edificio Encina, Planta 5
28033 Madrid

http://www.gfi-info.com
e-mail: [EMAIL PROTECTED]

Tel. +34 913 836 320 (centralita)
Tel. +34 913 836 322 (ext. 6439)
Fax. +34 913 832 865
__

Aviso legal:
Este mensaje incluyendo sus anexos pueden contener información confidencial,
en propiedad o legalmente protegida.
Si usted no es el destinatario, le rogamos lo comunique al remitente y
proceda a borrarlo,
sin reenviarlo ni conservarlo, ya que su uso no autorizado está prohibido
legalmente.

Disclaimer:
This message including any attachment may contain confidential, proprietary
or legally privileged information.
If you are not the intended recipient of this message, please notify it to
the sender
and delete without resending or backing it, as it is legally prohibited.
__


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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



RE: Axis PDF transmision

2006-09-26 Thread VF
Im using ADB and it is not the latest nightly build. It is normal release
1.0 from 04 - 05 - 2006. Should I try latest nightly build? Isnt there
problem, that I have in my wsdl element for that XML type xs:base64Binary ?

   Vlada

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 5:38 PM
To: axis-user@ws.apache.org
Subject: Re: Axis PDF transmision

Your PDF is transmited inline using Base64Encoding.. Anyway that too
needs to work correct.. Please log a Jira for that...

Are you using the latest nighlty builds... What is the data binding
mechanism you are using.. Xmlbeans or ADB..??.

Thilina

On 9/26/06, VF <[EMAIL PROTECTED]> wrote:
> Yes really, there is only one. I need to send always only one pdf file to
> client from server.
>
> This is client call:
>
> Headers:
>
> POST /axis2/services/binarytest HTTP/1.1
> User-Agent: Axis/2.0
> SOAPAction: urn:axws.binary/getFile
> Host: localhost:8080
> Transfer-Encoding: chunked
> Content-Type: multipart/related;
> boundary=MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941;
> type="application/xop+xml";
> start="<0.urn:uuid:[EMAIL PROTECTED]>";
> start-info="text/xml"; charset=UTF-8
>
>
> Content:
>
> --MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0.urn:uuid:[EMAIL PROTECTED]>
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> />
xmlns:ns1="urn:axtypes.binary">c:\a.pdf >
> --MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941--
>
>
> And this send SERVER:
>
>
> Headers:
>
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Set-Cookie: JSESSIONID=8800E37DAA6E194328D07284B49C2C1C; Path=/axis2
> Content-Type: multipart/related;
> boundary=MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345;
> type="application/xop+xml";
> start="<0.urn:uuid:[EMAIL PROTECTED]>";
> start-info="text/xml";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Tue, 26 Sep 2006 14:02:25 GMT
>
>
> Content:
>
> --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0.urn:uuid:[EMAIL PROTECTED]>
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> /> xmlns:ns1="urn:axtypes.binary">JVBERi0xLjQNJeLjz9
> encoding pdf file...
>
U+Pg0Kc3RhcnR4cmVmDQoxMTYNCiUlRU9GDQo= env:Body>
> --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345--
>
>
>
> Do You think please, that I do it wrong? Thanks a lot for helping.
>
> Vlada
>
>
>
>
>
>
>
>
>
> -Original Message-
> From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 3:42 PM
> To: axis-user@ws.apache.org
> Subject: Re: Axis PDF trnasmission
>
> Hi,
> Please let us know the number of MIME parts in your message..
> According to your mail I get a feeling that there is only one...
>
> Please post the full message snapshot...
>
> ~Thilina
>
> > --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843
> > content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> > content-transfer-encoding:binary
> > content-id:<0.urn:uuid:[EMAIL PROTECTED]>
> > 
> > --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843--
> >
> >
> > On client I have this part:
> >
> > *
> > public void testgetFile() throws java.lang.Exception {
> > binary.axws.BinarytestStub stub = new
> binary.axws.BinarytestStub();
> > //the default implementation should point to the right endpoint
> >
> >
> > Options options =stub._getServiceClient().getOptions();
> >
> > options.setProperty(Constants.Configuration.ENABLE_MTOM,
> > Constants.VALUE_TRUE);
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >
> > binary.axtypes.GetFileRequest param18 =
> > (binary.axtypes.GetFileRequest)
> > getTestObject(binary.axtypes.GetFileRequest.class);
> >
> > param18.setFilein("c:\\a.pdf");
> >
> > //BinarytestSkeleton bts = new BinarytestSkeleton();
> >
> > //assertNotNull(bts.getFile(param18));
> > binary.axtypes.GetFileResponse resp = stub.getFile(param18);
> > //assertNotNull(stub.getFile(param18));
> > FileOutputStream fos = new FileOutputStream("c:\\a22.pdf");
> > resp.getFileout().writeTo(fos);
> > }
> > *
> >
> > MTOM is enabled on server and also in client. Has anyone some idea?
Thank
> > you very much for all ideas.
> >
> >Vlada
> >
> >
> >
> >
> > -Original Message-
> > From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 20, 2006 3:29 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: Axis PDF trnasmission
> >
> > hmmm... FileDataSource should automatically pick up the MIME type...
> >
> > Please check whether the message gets delivered using MTOM (using a
> > MIME package) or with in line base64 string..

How can we generate wsdl without having messagecontext

2006-09-26 Thread Chippada, Venkata








Hi,

 

I have a need to get all the services deployed in axis and
wsdls of these services runtime without accessing the services where
messageContext not available. I could able to get the list of services deployed
as follows in a simple trial. Our services may not have wsdl files located in
the machine. So that it should generate the wsdl runtime. Can we generate the
wsdl without having messagecontext object just by having ServiceDesc object. I
really appreciate any help in this regards. Thank in advance.

 

ServletContext context =
this.getServletContext();

    Object contextObject =
context.getAttribute("AxisEngine");

    if(contextObject
instanceof AxisServer) {

   
   
out.println("got AxisServer");

   
EngineConfiguration conf = ((AxisEngine)contextObject).getConfig();

   
Iterator it = conf.getDeployedServices();


   
ServiceDesc desc = null;

   
//MessageContext msgContext = new MessageContext((AxisEngine)contextObject); 


   
while(it.hasNext()) {

   
desc = (ServiceDesc)
it.next();  

   
out.println(desc.getName() + "");

   
SOAPService service = conf.getService(new QName(desc.getName()));

   


   
//service.generateWSDL(msgContext); Here I am missing proper messageContext
object

   
}

}

 

Thanks & Regards,

Naresh








RE: Axis PDF transmision

2006-09-26 Thread VF
Yes really, there is only one. I need to send always only one pdf file to
client from server.

This is client call:

Headers:

POST /axis2/services/binarytest HTTP/1.1
User-Agent: Axis/2.0
SOAPAction: urn:axws.binary/getFile
Host: localhost:8080
Transfer-Encoding: chunked
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml"; charset=UTF-8


Content:

--MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>c:\a.pdf
--MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941--


And this send SERVER:


Headers:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=8800E37DAA6E194328D07284B49C2C1C; Path=/axis2
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 26 Sep 2006 14:02:25 GMT


Content:

--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>JVBERi0xLjQNJeLjz9
encoding pdf file...
U+Pg0Kc3RhcnR4cmVmDQoxMTYNCiUlRU9GDQo=
--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345--



Do You think please, that I do it wrong? Thanks a lot for helping.

Vlada









-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 3:42 PM
To: axis-user@ws.apache.org
Subject: Re: Axis PDF trnasmission

Hi,
Please let us know the number of MIME parts in your message..
According to your mail I get a feeling that there is only one...

Please post the full message snapshot...

~Thilina

> --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0.urn:uuid:[EMAIL PROTECTED]>
> 
> --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843--
>
>
> On client I have this part:
>
> *
> public void testgetFile() throws java.lang.Exception {
> binary.axws.BinarytestStub stub = new
binary.axws.BinarytestStub();
> //the default implementation should point to the right endpoint
>
>
> Options options =stub._getServiceClient().getOptions();
>
> options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
> binary.axtypes.GetFileRequest param18 =
> (binary.axtypes.GetFileRequest)
> getTestObject(binary.axtypes.GetFileRequest.class);
>
> param18.setFilein("c:\\a.pdf");
>
> //BinarytestSkeleton bts = new BinarytestSkeleton();
>
> //assertNotNull(bts.getFile(param18));
> binary.axtypes.GetFileResponse resp = stub.getFile(param18);
> //assertNotNull(stub.getFile(param18));
> FileOutputStream fos = new FileOutputStream("c:\\a22.pdf");
> resp.getFileout().writeTo(fos);
> }
> *
>
> MTOM is enabled on server and also in client. Has anyone some idea? Thank
> you very much for all ideas.
>
>Vlada
>
>
>
>
> -Original Message-
> From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 20, 2006 3:29 PM
> To: axis-user@ws.apache.org
> Subject: Re: Axis PDF trnasmission
>
> hmmm... FileDataSource should automatically pick up the MIME type...
>
> Please check whether the message gets delivered using MTOM (using a
> MIME package) or with in line base64 string...
>
> Check by enabling MTOM as follows, If MTOM is not enabled.
>
>  Options options =stub._getServiceClient().getOptions();
>  options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM,
>Boolean.TRUE);
>
> HTH,
>
> ~Thilina
>
> On 9/20/06, VF <[EMAIL PROTECTED]> wrote:
> > Hi,please I have this question. Is ti possible to transfer PDF file with
> > SOAP,MTOM and ADB?
> >
> > I have this fragment in WSDL:
> >
> > 
> > 
> > 
> >  >
> > type="xs:base64Binary" />
> > 
> > 
> > 
> >
> >
> > Axis generated this ADB binding:
> >
> > -
> >
> > /** field for Filein */
> > protected javax.activation.DataHandler localFilein;
> >
> > /**
> >  * Auto generated getter method
> >  *
> >  * @return javax.activation.DataHandler
> >  */
> > publi

HTTP proxy and non proxy

2006-09-26 Thread Andres Rodriguez
Hi, I hope don´t bothering you and explain the problem clearly. In my
application I have several web service client in axis2 and I have a proxy.
Some web service clients have to interoperate with external web services
(through the proxy) and the others clients interacts with internal web
services (non proxy is needed). According to the axis2 documentation there
are two forms of performing this task:
http://ws.apache.org/axis2/1_0/http-transport.html
For me the best solution is to use the configuration file axis2.xml (for
using in all web service clients without the necessity of writing java code
in each client) but if I write the code inside the axis2.xml:

HTTP/1.0
anonymous:anonymous:anonymous

all the web service clients go out through the proxy and if I write the
code:

HTTP/1.0

all the web service clients doesn´t use the proxy.

In web service clients (prior to axis2) I can put the line in the java
virtual machine arguments:
-Dhttp.proxyHost="proxy" -Dhttp.proxyPort="8000" -Dhttp.nonProxyHosts="local
host"
and with this line I can use both web service clients (external and
internal).

And therefore I need a parameter like nonProxyHost or something similar for
interoperating with internal web services in the axis2.xml configuration
file.

Thanks in advance.


__

Andrés Rodríguez Arribas
GFI Informática España

Centro Empresarial Parque Norte
C/ Serrano Galvache nº 56
Edificio Encina, Planta 5
28033 Madrid

http://www.gfi-info.com
e-mail: [EMAIL PROTECTED]

Tel. +34 913 836 320 (centralita)
Tel. +34 913 836 322 (ext. 6439)
Fax. +34 913 832 865
__

Aviso legal:
Este mensaje incluyendo sus anexos pueden contener información confidencial,
en propiedad o legalmente protegida.
Si usted no es el destinatario, le rogamos lo comunique al remitente y
proceda a borrarlo,
sin reenviarlo ni conservarlo, ya que su uso no autorizado está prohibido
legalmente.

Disclaimer:
This message including any attachment may contain confidential, proprietary
or legally privileged information.
If you are not the intended recipient of this message, please notify it to
the sender
and delete without resending or backing it, as it is legally prohibited.
__


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



Re: wsdl2java ant task and http basic Authentication

2006-09-26 Thread Olivier Mocquais RD-BIZZ
yes, I can do that, but I want to automate this action with an ant task 
(wsdl2java)


VF wrote:

Hi Olivier,

Isnt it possible to download this wsdl file on local disc and then generate
stubs etc from local file?

-Original Message-
From: Olivier Mocquais RD-BIZZ [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 2:11 PM

To: axis-user@ws.apache.org
Subject: wsdl2java ant task and http basic Authentication

Hello,

I want to use the wsdl2java ant task to generate stubs and beans in 
order to write a client to a web service.
But the wsdl is protected by the http basic Authentication mecanism.(I 
know the username and password) and I can't access to the wsdl file with 
the wsdljava ant task.


url="${wsdl.url}">




How can I specifiy the username and password in the ant task ?

Thanks.

Olivier

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



Web Services Testing

2006-09-26 Thread Punnoose, Roshan








Hi,

 

I am trying to test my Axis 2 web service. I have tried
Mindreef and SoapUI, but neither one has real WS-Addressing support and none
really supports the callback mechanism. Is there a tool out there that will do
this?

 

Roshan Punnoose

Phone: 301-497-6039

 






BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Newbie here, need example of a "wrapped" style webservice

2006-09-26 Thread Crespillo, Matias
Hello, I have been trying to get a webservice of the style wrapped to work
for a while now, I have been coming and gonig between 1.4 an 2 for axis and
decided to settle for 2, however I have been absolutely unsuccessful in
implementing a simple wrapped style webservice, does anyone by any chance
have a good tutorial on this type of server webservice development, or a
sample of the services.xml + a simple java file (i believe that is all i
need) for this? 

Thanks a lot in advance, and I am sorry to ask for such thing but I have
been unsuccessful finding that particular example and I am (or at least
feeling) quite inpet as I am not able to get it to work.

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



RE: wsdl2java ant task and http basic Authentication

2006-09-26 Thread VF
Hi Olivier,

Isnt it possible to download this wsdl file on local disc and then generate
stubs etc from local file?

-Original Message-
From: Olivier Mocquais RD-BIZZ [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 2:11 PM
To: axis-user@ws.apache.org
Subject: wsdl2java ant task and http basic Authentication

Hello,

I want to use the wsdl2java ant task to generate stubs and beans in 
order to write a client to a web service.
But the wsdl is protected by the http basic Authentication mecanism.(I 
know the username and password) and I can't access to the wsdl file with 
the wsdljava ant task.





How can I specifiy the username and password in the ant task ?

Thanks.

Olivier

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



[Ax1s2] Are there any classes in Axis can be used as same as Axis RPCElement, RPCParam ?

2006-09-26 Thread Liping Guo








Hi,

 

I am trying to convert our web service application from axis
to axis2. I have a handler to do the authorization based on the object passed
in.

 

Previously when using Axis, I retrieved ‘RPCElement’
and ‘RPCParam’ objects from OMElement and do the following:

 



import org.apache.axis.AxisFault;

import org.apache.axis.MessageContext;

import org.apache.axis.handlers.BasicHandler;

import org.apache.axis.message.RPCElement;

import org.apache.axis.message.RPCParam;

import org.apache.axis.message.SOAPEnvelope;

import org.apache.axis.transport.http.HTTPConstants;

import org.xml.sax.SAXException; 

 

void doAuthorization(SOAPEnvlope envlope){

 

  
// retrieve the soap envelope

    Vector bodyElements = null;

    Enumeration e0 = null;


     

    bodyElements = envlope.getBodyElements(); 

    while (e0.hasMoreElements())
{

   
// recurse through the soap body and retrieve the

   
// rpc elements, the rpc elements contain the

   
// embeded objects which were returned from the service

   
RPCElement rpcElement = (RPCElement)
e0.nextElement();

   
Vector params = rpcElement.getParams();

   
Enumeration e1 = params.elements();

 

   
while (e1.hasMoreElements()) {

   
RPCParam rpcParam = (RPCParam) e1.nextElement();


   Object param
= null;

   
param = rpcParam.getObjectValue();

   
if(param instanceof SOME_SERVICE_OBJ) {

 

   
// perform some service authorization

   
// ...

 

  
}

  
else {

 

  
// do nothing


  }


}

   }

}

---

Now in Axis2, I cannot find any similar RPC classes which are as convenient
as “RPCElement” and “RPCParam” in axis. With help of such
classes, we can easily retrive RPCParam’s object value (might be a very complex
structure) from SOAP message and do some sort of authorization based on its
object value’s runtime class (seeing the red highlighted part of the
code.)

 

 

Any idea? Any help is highly appreciated.

 

Liping

 










The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.



RE: Axis PDF trnasmission

2006-09-26 Thread VF
Once more time with end:)

Please, can someone help me with this problem yet?:) Actually my problem is,
that in our application we need to send our clients scanned file that is pdf
type. 

Here is server code:

**

public binary.axtypes.GetFileResponse getFile(
binary.axtypes.GetFileRequest param2) {

binary.axtypes.GetFileResponse resp = new
binary.axtypes.GetFileResponse();

String strFile = "c:\\a.pdf";

if(!param2.getFilein().equals(""))
{
strFile = param2.getFilein();
}
javax.activation.FileDataSource  fds;

fds = new javax.activation.FileDataSource(strFile);
System.out.println(fds.getContentType());
DataHandler dh = new DataHandler(fds);

resp.setFileout(dh);

return resp;
//Todo fill this with the necessary business logic
//throw new java.lang.UnsupportedOperationException();
}

**

I dont know if already there is any problem because whe i try call
fds.getcontenttype() it returns application/octet-stream and not
application/pdf. Original pdf file on server has 1 015 808 bytes and saved
file on client has 1 356 264 bytes. When I look at what is sending from
server  theres in tcp monitor this text:

--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843--


On client I have this part:

*
public void testgetFile() throws java.lang.Exception {
binary.axws.BinarytestStub stub = new binary.axws.BinarytestStub();
//the default implementation should point to the right endpoint


Options options =stub._getServiceClient().getOptions();

options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

binary.axtypes.GetFileRequest param18 =
(binary.axtypes.GetFileRequest)
getTestObject(binary.axtypes.GetFileRequest.class);

param18.setFilein("c:\\a.pdf");
   
//BinarytestSkeleton bts = new BinarytestSkeleton();

//assertNotNull(bts.getFile(param18));
binary.axtypes.GetFileResponse resp = stub.getFile(param18);
//assertNotNull(stub.getFile(param18));
FileOutputStream fos = new FileOutputStream("c:\\a22.pdf");
resp.getFileout().writeTo(fos);
}
*

MTOM is enabled on server and also in client. Has anyone some idea? Thank
you very much for all ideas.

   Vlada




-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 20, 2006 3:29 PM
To: axis-user@ws.apache.org
Subject: Re: Axis PDF trnasmission

hmmm... FileDataSource should automatically pick up the MIME type...

Please check whether the message gets delivered using MTOM (using a
MIME package) or with in line base64 string...

Check by enabling MTOM as follows, If MTOM is not enabled.

 Options options =stub._getServiceClient().getOptions();
 options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM,
   Boolean.TRUE);

HTH,

~Thilina

On 9/20/06, VF <[EMAIL PROTECTED]> wrote:
> Hi,please I have this question. Is ti possible to transfer PDF file with
> SOAP,MTOM and ADB?
>
> I have this fragment in WSDL:
>
> 
> 
> 
> 
> type="xs:base64Binary" />
> 
> 
> 
>
>
> Axis generated this ADB binding:
>
> -
>
> /** field for Filein */
> protected javax.activation.DataHandler localFilein;
>
> /**
>  * Auto generated getter method
>  *
>  * @return javax.activation.DataHandler
>  */
> public javax.activation.DataHandler getFilein() {
> return localFilein;
> }
>
> /**
>  * Auto generated setter method
>  *
>  * @param param Filein
>  */
> public void setFilein(javax.activation.DataHandler param) {
> this.localFilein = param;
> }
>
> 
>
>
>
> I call it in client:
>
> * Auto generated test method
>  */
> public void testgetFile() throws java.lang.Exception {
> binary.axws.BinarytestStub stub = new
binary.axws.BinarytestStub();
> //the default implementation should point to the right endpoint
>
> binary.axtypes.GetFileRequest param18 =
> (binary.axtypes.GetFileRequest)
> getTestObject(binary.axtypes.GetFileRequest.class);
>
> // todo Fill in the param18 here
> DataHandler dh

[Axis2] suuport in RPC encoded

2006-09-26 Thread Kedar, Shahar








Hi,

 

Does
Axis2 support RPC encoded web services? If it does, then does it support
reading an RPC encoded WSDL file which is located under the META-INF directory?

 

Thanks,

Shahar
Kedar








wsdl2java ant task and http basic Authentication

2006-09-26 Thread Olivier Mocquais RD-BIZZ

Hello,

I want to use the wsdl2java ant task to generate stubs and beans in 
order to write a client to a web service.
But the wsdl is protected by the http basic Authentication mecanism.(I 
know the username and password) and I can't access to the wsdl file with 
the wsdljava ant task.


   url="${wsdl.url}">

   
   

How can I specifiy the username and password in the ant task ?

Thanks.

Olivier

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



Re: what can do the job of the uddi server?

2006-09-26 Thread Anne Thomas Manes

See http://ws.apache.org/juddi/.


On 9/25/06, wupeng <[EMAIL PROTECTED]> wrote:

who can give me a suggestion?

-
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 PDF trnasmission

2006-09-26 Thread Thilina Gunarathne

Hi,
Please let us know the number of MIME parts in your message..
According to your mail I get a feeling that there is only one...

Please post the full message snapshot...

~Thilina


--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843--


On client I have this part:

*
public void testgetFile() throws java.lang.Exception {
binary.axws.BinarytestStub stub = new binary.axws.BinarytestStub();
//the default implementation should point to the right endpoint


Options options =stub._getServiceClient().getOptions();

options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

binary.axtypes.GetFileRequest param18 =
(binary.axtypes.GetFileRequest)
getTestObject(binary.axtypes.GetFileRequest.class);

param18.setFilein("c:\\a.pdf");

//BinarytestSkeleton bts = new BinarytestSkeleton();

//assertNotNull(bts.getFile(param18));
binary.axtypes.GetFileResponse resp = stub.getFile(param18);
//assertNotNull(stub.getFile(param18));
FileOutputStream fos = new FileOutputStream("c:\\a22.pdf");
resp.getFileout().writeTo(fos);
}
*

MTOM is enabled on server and also in client. Has anyone some idea? Thank
you very much for all ideas.

   Vlada




-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 3:29 PM
To: axis-user@ws.apache.org
Subject: Re: Axis PDF trnasmission

hmmm... FileDataSource should automatically pick up the MIME type...

Please check whether the message gets delivered using MTOM (using a
MIME package) or with in line base64 string...

Check by enabling MTOM as follows, If MTOM is not enabled.

 Options options =stub._getServiceClient().getOptions();
 options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM,
   Boolean.TRUE);

HTH,

~Thilina

On 9/20/06, VF <[EMAIL PROTECTED]> wrote:
> Hi,please I have this question. Is ti possible to transfer PDF file with
> SOAP,MTOM and ADB?
>
> I have this fragment in WSDL:
>
> 
> 
> 
> 
> type="xs:base64Binary" />
> 
> 
> 
>
>
> Axis generated this ADB binding:
>
> -
>
> /** field for Filein */
> protected javax.activation.DataHandler localFilein;
>
> /**
>  * Auto generated getter method
>  *
>  * @return javax.activation.DataHandler
>  */
> public javax.activation.DataHandler getFilein() {
> return localFilein;
> }
>
> /**
>  * Auto generated setter method
>  *
>  * @param param Filein
>  */
> public void setFilein(javax.activation.DataHandler param) {
> this.localFilein = param;
> }
>
> 
>
>
>
> I call it in client:
>
> * Auto generated test method
>  */
> public void testgetFile() throws java.lang.Exception {
> binary.axws.BinarytestStub stub = new
binary.axws.BinarytestStub();
> //the default implementation should point to the right endpoint
>
> binary.axtypes.GetFileRequest param18 =
> (binary.axtypes.GetFileRequest)
> getTestObject(binary.axtypes.GetFileRequest.class);
>
> // todo Fill in the param18 here
> DataHandler dh = new DataHandler(new FileDataSource("c:\\a.pdf"));
>
> param18.setFilein(dh);
> BinarytestSkeleton bts = new BinarytestSkeleton();
>
> assertNotNull(bts.getFile(param18));
> //assertNotNull(stub.getFile(param18));
> param18.setFilein(dh);
> }
>
>
> ---
>
> on server is this code:
>
>  public binary.axtypes.GetFileResponse getFile(
> binary.axtypes.GetFileRequest param2) {
> DataHandler dh = param2.getFilein();
> binary.axtypes.GetFileResponse resp = new
> binary.axtypes.GetFileResponse();
>
> try {
> dh.writeTo(new FileOutputStream("c:\\a2.pdf"));
> resp.setFileout(dh);
> return resp;
> } catch (FileNotFoundException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> return resp;
> //Todo fill this with the necessary business logic

RE: Axis PDF trnasmission

2006-09-26 Thread VF
Please, can someone help me with this problem yet?:)  
Actually my problem is, that in our application we need to send our clients
scanned file that is pdf type. 

Here is server code:

**

public binary.axtypes.GetFileResponse getFile(
binary.axtypes.GetFileRequest param2) {

binary.axtypes.GetFileResponse resp = new
binary.axtypes.GetFileResponse();

String strFile = "c:\\a.pdf";

if(!param2.getFilein().equals(""))
{
strFile = param2.getFilein();
}
javax.activation.FileDataSource  fds;

fds = new javax.activation.FileDataSource(strFile);
System.out.println(fds.getContentType());
DataHandler dh = new DataHandler(fds);

resp.setFileout(dh);

return resp;
//Todo fill this with the necessary business logic
//throw new java.lang.UnsupportedOperationException();
}

**

I dont know if already there is any problem because whe i try call
fds.getcontenttype() it returns application/octet-stream and not
application/pdf. Original pdf file on server has 1 015 808 bytes and saved
file on client has 1 356 264 bytes. When I look at what is sending from
server  theres in tcp monitor this text:

--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>





-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 20, 2006 3:29 PM
To: axis-user@ws.apache.org
Subject: Re: Axis PDF trnasmission

hmmm... FileDataSource should automatically pick up the MIME type...

Please check whether the message gets delivered using MTOM (using a
MIME package) or with in line base64 string...

Check by enabling MTOM as follows, If MTOM is not enabled.

 Options options =stub._getServiceClient().getOptions();
 options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM,
   Boolean.TRUE);

HTH,

~Thilina

On 9/20/06, VF <[EMAIL PROTECTED]> wrote:
> Hi,please I have this question. Is ti possible to transfer PDF file with
> SOAP,MTOM and ADB?
>
> I have this fragment in WSDL:
>
> 
> 
> 
> 
> type="xs:base64Binary" />
> 
> 
> 
>
>
> Axis generated this ADB binding:
>
> -
>
> /** field for Filein */
> protected javax.activation.DataHandler localFilein;
>
> /**
>  * Auto generated getter method
>  *
>  * @return javax.activation.DataHandler
>  */
> public javax.activation.DataHandler getFilein() {
> return localFilein;
> }
>
> /**
>  * Auto generated setter method
>  *
>  * @param param Filein
>  */
> public void setFilein(javax.activation.DataHandler param) {
> this.localFilein = param;
> }
>
> 
>
>
>
> I call it in client:
>
> * Auto generated test method
>  */
> public void testgetFile() throws java.lang.Exception {
> binary.axws.BinarytestStub stub = new
binary.axws.BinarytestStub();
> //the default implementation should point to the right endpoint
>
> binary.axtypes.GetFileRequest param18 =
> (binary.axtypes.GetFileRequest)
> getTestObject(binary.axtypes.GetFileRequest.class);
>
> // todo Fill in the param18 here
> DataHandler dh = new DataHandler(new FileDataSource("c:\\a.pdf"));
>
> param18.setFilein(dh);
> BinarytestSkeleton bts = new BinarytestSkeleton();
>
> assertNotNull(bts.getFile(param18));
> //assertNotNull(stub.getFile(param18));
> param18.setFilein(dh);
> }
>
>
> ---
>
> on server is this code:
>
>  public binary.axtypes.GetFileResponse getFile(
> binary.axtypes.GetFileRequest param2) {
> DataHandler dh = param2.getFilein();
> binary.axtypes.GetFileResponse resp = new
> binary.axtypes.GetFileResponse();
>
> try {
> dh.writeTo(new FileOutputStream("c:\\a2.pdf"));
> resp.setFileout(dh);
> return resp;
> } catch (FileNotFoundException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> return resp;
> //Todo fill this with the necessary business logic
> //throw new java.lang.Unsupporte

always do http compression without watch min size

2006-09-26 Thread HHDirecto . Net

Hi, I have an apache tomcat 5.5.17. In my server.xml file I have put   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"   enableLookups="false" redirectPort="8443" acceptCount="100"   connectionTimeout="2" disableUploadTimeout="true" 
  compression="on" 			   compressionMinSize="2048000" 			   noCompressionUserAgents="gozilla, traviata" 			   compressableMimeType="text/html,text/xml,text/plain,application/dime"
			   />It run sucessfull with normal html tomcat pages. But when I ask to axis webservices it always compress the response althought it be less than 1kb. Why axis don't respect compressionMinSize parameter?
Thanks 


Re: Serving rpc/encoded and doc/literal

2006-09-26 Thread Anne Thomas Manes

Support for SOAP encoding requires a significant development effort
and IMO is not a high priority. (There are lots of much more critical
features that definitely have a higher priority, in any case.) SOAP
encoding is not permitted by WS-I, and it is an optional feature in
SOAP 1.2. Given than Axis2 is a third generation service engine, aimed
at addressing the future requirements of web services, SOAP encoding
just doesn't fit. People that need to support SOAP encoding should use
Axis rather than Axis2.

Note that Sun's JAX-WS RI doesn't support SOAP encoding, and they have
no plans to add support for it either. You must use the JAX-RPC RI
instead.

But -- if you feel this is a higher priority than I do, please recruit
a team to develop the code.

Anne

On 9/26/06, Al Baker <[EMAIL PROTECTED]> wrote:

Hi,

I was wondering if there is a way to have a single web app serve out
both an rpc/encoded service and a doc/literal service?  The use case I'm
looking at is to support backwards compatibility and not force a huge
upgrade for all clients.

On a related note, when will Axis2 support rpc/encoded?

Thanks,
Al



-
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] different servlet mapping for axis2

2006-09-26 Thread Kedar, Shahar








Hi,

 

I'm
using both Axis1 and Axis2 servlets under the sane Tomcat 5.5 server. I specified
in the web.xml file of my web application the following servlet mappings:

 



   
Axis2Servlet

   
Apache-Axis Servlet

   


   
org.apache.axis2.transport.http.AxisServlet

   
1

   


    

    

   
Axis2AdminServlet

   
Apache-Axis AxisAdmin Servlet (REST)

   


   
org.apache.axis2.transport.http.AxisAdminServlet

   


 

    

        AxisServlet

        org.apache.axis.transport.http.AxisServlet

    

 

     

   
AxisServlet

   
/services/*

   


 

     

   
Axis2Servlet

   
/axis2-services/*

   


 

   


   
Axis2AdminServlet

   
/axis2-admin/*

   


 

This
works great when I specify a specific service url in the browser as follows:

For
Axis1: http:services/?wsdl

For
Axis2: http:axis2-services/?wsdl

 

However,
when I start list my services through the Axis2 admin application (http:///>///axis2-admin/listService) I get the service URL for
Axis1 and not Axis2. It is as if the axis2 admin does not consult the servlet
mappings and simply assumes that the Axis2 servlet will be mapped to the
default /services/* mapping.

 

Is
this a bug? Do I need to configure anything in addition to the servlet
mappings?

 

Thanks,

Shahar
Kedar

 








Re: Axis PDF transmision

2006-09-26 Thread Thilina Gunarathne

Your PDF is transmited inline using Base64Encoding.. Anyway that too
needs to work correct.. Please log a Jira for that...

Are you using the latest nighlty builds... What is the data binding
mechanism you are using.. Xmlbeans or ADB..??.

Thilina

On 9/26/06, VF <[EMAIL PROTECTED]> wrote:

Yes really, there is only one. I need to send always only one pdf file to
client from server.

This is client call:

Headers:

POST /axis2/services/binarytest HTTP/1.1
User-Agent: Axis/2.0
SOAPAction: urn:axws.binary/getFile
Host: localhost:8080
Transfer-Encoding: chunked
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml"; charset=UTF-8


Content:

--MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>c:\a.pdf
--MIMEBoundaryurn_uuid_AAF46B4D7E69C02A7311592793440941--


And this send SERVER:


Headers:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=8800E37DAA6E194328D07284B49C2C1C; Path=/axis2
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 26 Sep 2006 14:02:25 GMT


Content:

--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

http://schemas.xmlsoap.org/soap/envelope/";>JVBERi0xLjQNJeLjz9
encoding pdf file...
U+Pg0Kc3RhcnR4cmVmDQoxMTYNCiUlRU9GDQo=
--MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592793444345--



Do You think please, that I do it wrong? Thanks a lot for helping.

Vlada









-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 3:42 PM
To: axis-user@ws.apache.org
Subject: Re: Axis PDF trnasmission

Hi,
Please let us know the number of MIME parts in your message..
According to your mail I get a feeling that there is only one...

Please post the full message snapshot...

~Thilina

> --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0.urn:uuid:[EMAIL PROTECTED]>
> 
> --MIMEBoundaryurn_uuid_E3B926AB88EB5FDF6F11592687872843--
>
>
> On client I have this part:
>
> *
> public void testgetFile() throws java.lang.Exception {
> binary.axws.BinarytestStub stub = new
binary.axws.BinarytestStub();
> //the default implementation should point to the right endpoint
>
>
> Options options =stub._getServiceClient().getOptions();
>
> options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
> binary.axtypes.GetFileRequest param18 =
> (binary.axtypes.GetFileRequest)
> getTestObject(binary.axtypes.GetFileRequest.class);
>
> param18.setFilein("c:\\a.pdf");
>
> //BinarytestSkeleton bts = new BinarytestSkeleton();
>
> //assertNotNull(bts.getFile(param18));
> binary.axtypes.GetFileResponse resp = stub.getFile(param18);
> //assertNotNull(stub.getFile(param18));
> FileOutputStream fos = new FileOutputStream("c:\\a22.pdf");
> resp.getFileout().writeTo(fos);
> }
> *
>
> MTOM is enabled on server and also in client. Has anyone some idea? Thank
> you very much for all ideas.
>
>Vlada
>
>
>
>
> -Original Message-
> From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 20, 2006 3:29 PM
> To: axis-user@ws.apache.org
> Subject: Re: Axis PDF trnasmission
>
> hmmm... FileDataSource should automatically pick up the MIME type...
>
> Please check whether the message gets delivered using MTOM (using a
> MIME package) or with in line base64 string...
>
> Check by enabling MTOM as follows, If MTOM is not enabled.
>
>  Options options =stub._getServiceClient().getOptions();
>  options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM,
>Boolean.TRUE);
>
> HTH,
>
> ~Thilina
>
> On 9/20/06, VF <[EMAIL PROTECTED]> wrote:
> > Hi,please I have this question. Is ti possible to transfer PDF file with
> > SOAP,MTOM and ADB?
> >
> > I have this fragment in WSDL:
> >
> > 
> > 
> > 
> >  >
> > type="xs:base64Binary" />
> > 
> > 
> > 
> >
> >
> > Axis generated this ADB binding:
>