Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » mime:multipartRelated not properly serialized?
mime:multipartRelated not properly serialized? [message #195119] Thu, 28 June 2007 00:09 Go to next message
Johann is currently offline JohannFriend
Messages: 8
Registered: July 2009
Junior Member
I'm programmatically generating a WSDL document using the
org.eclipse.wst.wsdl libraries. It's mostly working, except I'm having
trouble writing a mime:multipartRelated element. I set up my
mime:multipartRelated object and fill it with mime:parts containing
mime:contents. But when I serialize the WSDL document to a file, all I get
is an empty mime:multipartRelated element. I've tried to test using the code
in org.eclipse.wst.wsdl.tests.extensions.MIMEExtensionsTest, but that gives
me the same result. Here's the test code that I'm using (pretty much the
same as in MIMEExtensionsTest.java):

MIMEMultipartRelated multipart = MIME_FACTORY.createMIMEMultipartRelated();
bindingOutput.addExtensibilityElement(multipart);
MIMEPart mimePart = MIME_FACTORY.createMIMEPart();
multipart.addMIMEPart(mimePart);

SOAPBody soapBody = SOAP_FACTORY.createSOAPBody();
soapBody.setUse("literal");
mimePart.addExtensibilityElement(soapBody);
mimePart = MIME_FACTORY.createMIMEPart();
multipart.addMIMEPart(mimePart);

MIMEContent mimeContent = MIME_FACTORY.createMIMEContent();
mimeContent.setPart("Temperature");
mimeContent.setType("text/binary");
mimePart.addExtensibilityElement(mimeContent);


Here's the result that I get from the above code.

<wsdl:output>
<mime:multipartRelated/>
</wsdl:output>

My org.eclipse.wst.wsdl plugin is v1.0.102.

Can any one give some insight into this?

Thanks.

Johann
Re: mime:multipartRelated not properly serialized? [message #195138 is a reply to message #195119] Thu, 28 June 2007 01:05 Go to previous message
Eclipse UserFriend
Originally posted by: valentinbaciu.hotmail.com

This looks like a serialization problem. Please open a bug here
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols and pick the
wst.wsdl component.

"Johann" <td_jbrun@yahoo.com> wrote in message
news:f5uu9j$4rl$2@build.eclipse.org...
> I'm programmatically generating a WSDL document using the
> org.eclipse.wst.wsdl libraries. It's mostly working, except I'm having
> trouble writing a mime:multipartRelated element. I set up my
> mime:multipartRelated object and fill it with mime:parts containing
> mime:contents. But when I serialize the WSDL document to a file, all I get
> is an empty mime:multipartRelated element. I've tried to test using the
> code
> in org.eclipse.wst.wsdl.tests.extensions.MIMEExtensionsTest, but that
> gives
> me the same result. Here's the test code that I'm using (pretty much the
> same as in MIMEExtensionsTest.java):
>
> MIMEMultipartRelated multipart =
> MIME_FACTORY.createMIMEMultipartRelated();
> bindingOutput.addExtensibilityElement(multipart);
> MIMEPart mimePart = MIME_FACTORY.createMIMEPart();
> multipart.addMIMEPart(mimePart);
>
> SOAPBody soapBody = SOAP_FACTORY.createSOAPBody();
> soapBody.setUse("literal");
> mimePart.addExtensibilityElement(soapBody);
> mimePart = MIME_FACTORY.createMIMEPart();
> multipart.addMIMEPart(mimePart);
>
> MIMEContent mimeContent = MIME_FACTORY.createMIMEContent();
> mimeContent.setPart("Temperature");
> mimeContent.setType("text/binary");
> mimePart.addExtensibilityElement(mimeContent);
>
>
> Here's the result that I get from the above code.
>
> <wsdl:output>
> <mime:multipartRelated/>
> </wsdl:output>
>
> My org.eclipse.wst.wsdl plugin is v1.0.102.
>
> Can any one give some insight into this?
>
> Thanks.
>
> Johann
>
>
>
>
>
>
Previous Topic:mime:multipartRelated not properly serialized?
Next Topic:Using exported jars from j2ee module dependency
Goto Forum:
  


Current Time: Thu Dec 18 23:49:18 GMT 2014

Powered by FUDForum. Page generated in 0.01648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software