How to remove the Message-ID Headder from a Mime Message generated from java mail

2005-02-19 Thread thilina Gunarathne
Hi all,
I'm working on a mtom+xop prototype for axis. I'm focusing on to the axis 2. 
I used the Java mail class to generate the Mime Messages for MTOM.
When a MIME message is created with Java Mail it includes a
message-id header to it. This header should be removed to for MTOM
to function correctly. This header cannot be removed using
removeHeader method in MimeMessage class. Pls share if anybody has an
idea about how to remove that header.

I've attched a part of the MimeMessage generated. I want to remove the
top most header.

Thanks in Advance..
rgds,

Thilina 
(Mora- Cse)


Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/Related; 
boundary==_Part_0_27978063.1108853023349

--=_Part_0_27978063.1108853023349
Content-Type: application/xop+xml
Content-Transfer-Encoding: 8bit
Content-ID: http://example.org/my.hsh


[axis2] How to remove the Message-ID Headder from a Mime Message generated from java mail

2005-02-19 Thread thilina Gunarathne
Hi all,
I'm working on a mtom+xop prototype for axis. I'm focusing on to the axis 2.
I used the Java mail class to generate the Mime Messages for MTOM.
When a MIME message is created with Java Mail it includes a
message-id header to it. This header should be removed to for MTOM
to function correctly. This header cannot be removed using
removeHeader method in MimeMessage class. Pls share if anybody has an
idea about how to remove that header.

I've attched a part of the MimeMessage generated. I want to remove the
top most header.

Thanks in Advance..
rgds,

Thilina
(Mora- Cse)

Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/Related;
   boundary==_Part_0_27978063.1108853023349

--=_Part_0_27978063.1108853023349
Content-Type: application/xop+xml
Content-Transfer-Encoding: 8bit
Content-ID: http://example.org/my.hsh


[jira] Created: (AXIS-1825) Use WSDL to validate incomming messages

2005-02-19 Thread Carsten Ziegeler (JIRA)
Use WSDL to validate incomming messages
---

 Key: AXIS-1825
 URL: http://issues.apache.org/jira/browse/AXIS-1825
 Project: Axis
Type: Improvement
Reporter: Carsten Ziegeler


Currently Axis doesn't use a WSDL file; even if you already have one you use 
wsdl2java and then deploy the result into Axis. During this deployment the wsdl 
file is not deployed as well.
The main problem with this is that some validation rules defined in the wsdl 
file are not checked by axis anymore, for example if you use patterns for 
strings etc.
So, it would be great if it would be possible to deploy a WSDL file as well and 
Axis would use that to validate incomming messages.

The validation can be done by using WSDL4J to read the WSDL file and then 
create an XML Schema out of the in memory representation you get from WSDL4J; 
just add a new schema element for each incomming message to the schema and then 
you can validate the incomming request using this schema.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



Re: [Axis2] typos / interop tests?

2005-02-19 Thread Srinath Perera
Hi Dims
Classes are renamed and commited ..:)

we do not have interop tests yet, should we add few for M1? (it is bit
tricky as we do not have encoding offically  we have some encoding
impl for perf test, but off the record :) )
Thanks
Srinath


On Fri, 18 Feb 2005 22:55:30 -0500, Davanum Srinivas [EMAIL PROTECTED] wrote:
 Srinath,
 
 Can you please rename:
 - HandlerMetaData.java to HandlerMetadata.java (lowercase 'd')
 - PhaseMetaData.java to PhaseMetadata.java (lowercase 'd')
 - OmStAXBuilderTest.java to OMStAXBuilderTest.java (uppercase 'M')
 
 Do we have any interop tests? (see http://www.whitemesa.net/)
 
 Thanks,
 dims
 
 --
 Davanum Srinivas - http://webservices.apache.org/~dims/



[jira] Created: (AXIS-1826) Sample project throws Exception on Tomcat 5.5.7

2005-02-19 Thread Amir Pashazadeh (JIRA)
Sample project throws Exception on Tomcat 5.5.7
---

 Key: AXIS-1826
 URL: http://issues.apache.org/jira/browse/AXIS-1826
 Project: Axis
Type: Bug
Versions: 1.1
 Environment: OS: Windows 2000 + Service Pack 4
JDK: Sun JDK 1.5.0_01 (for Windows)
Web Container: Tomcat 5.5.7  Tomcat 5.0.28
Reporter: Amir Pashazadeh


I'm new to Axis and web services, but have good experience in Java/J2EE web 
application development.

I installed to Tomcats on my computer (5.5.7 and 5.0.28), and both are 
configured to run with JDK 1.5.0._01.

Both web containers are in their default configurations.

I deployed Axis sample project on both,
when I click on Call a local endpoint 
(http://localhost:8080/axis/EchoHeaders.jws?method=list) the correct result 
page is shown on Tomcat 5.0.28, but an exception is thrown on Tomcat 5.5.7, the 
result on Tomcat 5.5.7 is:

?xml version=1.0 encoding=UTF-8 ? 
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Body
soapenv:Fault
  faultcodesoapenv:Server.userException/faultcode 
  faultstringjava.lang.NullPointerException/faultstring 
  detail
ns1:stackTrace xmlns:ns1=http://xml.apache.org/axis/;
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
at 
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:318)
at 
org.apache.axis.transport.http.AxisServlet.invokeEndpointFromGet(AxisServlet.java:544)
at 
org.apache.axis.transport.http.AxisServlet.processMethodRequest(AxisServlet.java:466)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:294)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
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.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
/ns1:stackTrace 
  /detail
/soapenv:Fault
  /soapenv:Body
/soapenv:Envelope


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



DO NOT REPLY [Bug 20718] - Sample project throws Exception on Tomcat 5.5.7

2005-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=20718.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=20718


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Serialization/Deserializatio|Samples
   |n   |
 OS/Version|All |Windows 2000
   Platform|Other   |PC
Summary|uninformative exceptions|Sample project throws
   ||Exception on Tomcat 5.5.7




--- Additional Comments From [EMAIL PROTECTED]  2005-02-19 21:22 ---
I'm new to Axis and web services, but have good experience in Java/J2EE web 
application development. 

I installed to Tomcats on my computer (5.5.7 and 5.0.28), and both are 
configured to run with JDK 1.5.0._01. 

Both web containers are in their default configurations. 

I deployed Axis sample project on both, 
when I click on Call a local endpoint 
(http://localhost:8080/axis/EchoHeaders.jws?method=list) the correct result 
page is shown on Tomcat 5.0.28, but an exception is thrown on Tomcat 5.5.7, the 
result on Tomcat 5.5.7 is: 

?xml version=1.0 encoding=UTF-8 ? 
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
  soapenv:Body 
soapenv:Fault 
  faultcodesoapenv:Server.userException/faultcode 
  faultstringjava.lang.NullPointerException/faultstring 
  detail 
ns1:stackTrace xmlns:ns1=http://xml.apache.org/axis/; 
java.lang.NullPointerException 
at java.util.Hashtable.put(Hashtable.java:396) 
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty
(SAXParserImpl.java:395) 
at org.apache.axis.encoding.DeserializationContextImpl.parse
(DeserializationContextImpl.java:246) 
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) 
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) 
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:318) 
at org.apache.axis.transport.http.AxisServlet.invokeEndpointFromGet
(AxisServlet.java:544) 
at org.apache.axis.transport.http.AxisServlet.processMethodRequest
(AxisServlet.java:466) 
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:294) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 
at org.apache.axis.transport.http.AxisServletBase.service
(AxisServletBase.java:339) 
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.StandardContextValve.invoke
(StandardContextValve.java:178) 
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126) 
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105) 
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:738) 
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:526) 
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80) 
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) 
at java.lang.Thread.run(Thread.java:595) 
/ns1:stackTrace 
  /detail 
/soapenv:Fault 
  /soapenv:Body 
/soapenv:Envelope 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.