You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by dishmily <en...@hotmail.com> on 2008/06/11 18:41:31 UTC

Apache Muse + OSGI + Web Service

i am trying to develop a web service in osgi container(like Apache Felix,
Equinox,Knopflerfish). the problem i met is:

 it seems that in such osgi container, web service can only be devolop by
using code-first design(java2wsdl). the wsdl will automatic generated.as the
web service i am just designing is something to do with "Soap with
Attachment", so i would like to use Contract-first design(wsdl2java). i have
make it work by using eclipse+wtp+tomcat+axis,but not for osgi
container+jetty+axis.

 thanks Apache Muse we can use " wsdl2java -osgi -wsdl pathToWSDLFile" to
build a bundle from  wsdl file.does it mean, if the wsdl is correct, no
matter what data type i use,like MIME, Array or Arraylist, the bundle(Web
Service Provider,Web Service Receiver) will work smoothly? as i used
code-first design to develop web service in osgi container, "serialize
problem" often happened. if i use contract-first desgin, i do not need to
pay attention to TypeMapping by programming, just need to desgin the wsdl as
well.

so, if datatype in WSDL are MIME, Array or ArrayList , does  " wsdl2java
-osgi -wsdl pathToWSDLFile"  also support it? 

any example or tips for Apache Muse+Web Service in OSGI are always welcome.

thanks!

-- 
View this message in context: http://www.nabble.com/Apache-Muse-%2B-OSGI-%2B-Web-Service-tp17782175p17782175.html
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


RE: Apache Muse + OSGI + Web Service

Posted by Ch...@swisscom.com.
excellent news.

For the SwA, using the java mail api is a simple way to deal with the
mime multipart.  As you are using Axis there is probably some axis
specific way to get the attachments from the request context.

cheers,
Chris

-----Original Message-----
From: dishmily [mailto:enjoynet2002@hotmail.com] 
Sent: Tuesday, June 17, 2008 12:30 AM
To: muse-user@ws.apache.org
Subject: RE: Apache Muse + OSGI + Web Service


hi,

  thanks.
  I would find another way to do SwA. 
  btw, after i made some change in Type Mapping (in .wsdd), the other
problems are resolved.


Chris.Twiner wrote:
> 
> Hi,
> 
> I'm not exactly sure what your problem is, but I assume that SwA is a 
> large problem.  Muse doesn't support this directly (although I may 
> submit a patch for it).
> 
> Regarding the rest of the issues if you could send them in seperate 
> mails with a detailed explanation of what exactly the problem is we 
> can try and help some more.
> 
> cheers,
> Chris
> 
> -----Original Message-----
> From: dishmily [mailto:enjoynet2002@hotmail.com]
> Sent: Wednesday, June 11, 2008 6:42 PM
> To: muse-user@ws.apache.org
> Subject: Apache Muse + OSGI + Web Service
> 
> 
> i am trying to develop a web service in osgi container(like Apache 
> Felix, Equinox,Knopflerfish). the problem i met is:
> 
>  it seems that in such osgi container, web service can only be devolop

> by using code-first design(java2wsdl). the wsdl will automatic 
> generated.as the web service i am just designing is something to do 
> with "Soap with Attachment", so i would like to use Contract-first 
> design(wsdl2java). i have make it work by using
> eclipse+wtp+tomcat+axis,but not for osgi
> container+jetty+axis.
> 
>  thanks Apache Muse we can use " wsdl2java -osgi -wsdl pathToWSDLFile"
> to build a bundle from  wsdl file.does it mean, if the wsdl is 
> correct, no matter what data type i use,like MIME, Array or Arraylist,

> the bundle(Web Service Provider,Web Service Receiver) will work 
> smoothly? as i used code-first design to develop web service in osgi 
> container, "serialize problem" often happened. if i use contract-first

> desgin, i do not need to pay attention to TypeMapping by programming, 
> just need to desgin the wsdl as well.
> 
> so, if datatype in WSDL are MIME, Array or ArrayList , does  " 
> wsdl2java -osgi -wsdl pathToWSDLFile"  also support it?
> 
> any example or tips for Apache Muse+Web Service in OSGI are always 
> welcome.
> 
> thanks!
> 
> --
> View this message in context:
> http://www.nabble.com/Apache-Muse-%2B-OSGI-%2B-Web-Service-tp17782175p
> 17
> 782175.html
> Sent from the Muse User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

--
View this message in context:
http://www.nabble.com/Apache-Muse-%2B-OSGI-%2B-Web-Service-tp17782175p17
874537.html
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


RE: Apache Muse + OSGI + Web Service

Posted by dishmily <en...@hotmail.com>.
hi,

  thanks.
  I would find another way to do SwA. 
  btw, after i made some change in Type Mapping (in .wsdd), the other
problems are resolved.


Chris.Twiner wrote:
> 
> Hi,
> 
> I'm not exactly sure what your problem is, but I assume that SwA is a
> large problem.  Muse doesn't support this directly (although I may
> submit a patch for it).
> 
> Regarding the rest of the issues if you could send them in seperate
> mails with a detailed explanation of what exactly the problem is we can
> try and help some more.
> 
> cheers,
> Chris 
> 
> -----Original Message-----
> From: dishmily [mailto:enjoynet2002@hotmail.com] 
> Sent: Wednesday, June 11, 2008 6:42 PM
> To: muse-user@ws.apache.org
> Subject: Apache Muse + OSGI + Web Service
> 
> 
> i am trying to develop a web service in osgi container(like Apache
> Felix, Equinox,Knopflerfish). the problem i met is:
> 
>  it seems that in such osgi container, web service can only be devolop
> by using code-first design(java2wsdl). the wsdl will automatic
> generated.as the web service i am just designing is something to do with
> "Soap with Attachment", so i would like to use Contract-first
> design(wsdl2java). i have make it work by using
> eclipse+wtp+tomcat+axis,but not for osgi
> container+jetty+axis.
> 
>  thanks Apache Muse we can use " wsdl2java -osgi -wsdl pathToWSDLFile"
> to build a bundle from  wsdl file.does it mean, if the wsdl is correct,
> no matter what data type i use,like MIME, Array or Arraylist, the
> bundle(Web Service Provider,Web Service Receiver) will work smoothly? as
> i used code-first design to develop web service in osgi container,
> "serialize problem" often happened. if i use contract-first desgin, i do
> not need to pay attention to TypeMapping by programming, just need to
> desgin the wsdl as well.
> 
> so, if datatype in WSDL are MIME, Array or ArrayList , does  " wsdl2java
> -osgi -wsdl pathToWSDLFile"  also support it? 
> 
> any example or tips for Apache Muse+Web Service in OSGI are always
> welcome.
> 
> thanks!
> 
> --
> View this message in context:
> http://www.nabble.com/Apache-Muse-%2B-OSGI-%2B-Web-Service-tp17782175p17
> 782175.html
> Sent from the Muse User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Apache-Muse-%2B-OSGI-%2B-Web-Service-tp17782175p17874537.html
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


RE: Apache Muse + OSGI + Web Service

Posted by Ch...@swisscom.com.
Hi,

I'm not exactly sure what your problem is, but I assume that SwA is a
large problem.  Muse doesn't support this directly (although I may
submit a patch for it).

Regarding the rest of the issues if you could send them in seperate
mails with a detailed explanation of what exactly the problem is we can
try and help some more.

cheers,
Chris 

-----Original Message-----
From: dishmily [mailto:enjoynet2002@hotmail.com] 
Sent: Wednesday, June 11, 2008 6:42 PM
To: muse-user@ws.apache.org
Subject: Apache Muse + OSGI + Web Service


i am trying to develop a web service in osgi container(like Apache
Felix, Equinox,Knopflerfish). the problem i met is:

 it seems that in such osgi container, web service can only be devolop
by using code-first design(java2wsdl). the wsdl will automatic
generated.as the web service i am just designing is something to do with
"Soap with Attachment", so i would like to use Contract-first
design(wsdl2java). i have make it work by using
eclipse+wtp+tomcat+axis,but not for osgi
container+jetty+axis.

 thanks Apache Muse we can use " wsdl2java -osgi -wsdl pathToWSDLFile"
to build a bundle from  wsdl file.does it mean, if the wsdl is correct,
no matter what data type i use,like MIME, Array or Arraylist, the
bundle(Web Service Provider,Web Service Receiver) will work smoothly? as
i used code-first design to develop web service in osgi container,
"serialize problem" often happened. if i use contract-first desgin, i do
not need to pay attention to TypeMapping by programming, just need to
desgin the wsdl as well.

so, if datatype in WSDL are MIME, Array or ArrayList , does  " wsdl2java
-osgi -wsdl pathToWSDLFile"  also support it? 

any example or tips for Apache Muse+Web Service in OSGI are always
welcome.

thanks!

--
View this message in context:
http://www.nabble.com/Apache-Muse-%2B-OSGI-%2B-Web-Service-tp17782175p17
782175.html
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org