Categories

Main
Database
Java
Microsoft.NET
Adabas
DB2
Informix
Microsoft SQL Server
MySQL
Oracle
Pervasive.SQL
PostgreSQL
Sybase
Other
ASP
ColdFusion
Crystal Reports
Delphi, C etc
JAVA
Microsoft.NET
Perl and the DBI
PHP
ANSI SQL
Unix Shell Scripts
Visual Basic
XML & XSLT
Corel Paradox
FileMaker
Microsoft Access
Microsoft Excel
Other PC Databases
Applications & Tools
Database Concepts & Design
EJB programming & troubleshooting
EJB design
General J2EE
XML & Web services
Web tier: servlets, JSP, Web frameworks
Performance and scalability
Industry news
TSS feedback
Mobicents Contributors
Mobicents Users
JSLEE Resource Adaptor Types
Planning JavaOne 2008
Sun Tech Days
Other Java conferences
Binary Web Services and XML
Metro and JAXB
GlassFish
GlassFish Plugins
Project jMaki
GlassFish WebTier
Mural
Java Development Tools
Java WS & XML Community News
JAXP
Java SE
6uN Early Access
Java Quick Starter
Java SE Snapshots: Project Feedback
JCK Forum
Feedback and Suggestions
JDK Distros
JDK Open Source
General JSR Discussion
JCP 2.6
JXTA Community Forum
ME Interest
ME Cool Apps
ME General Help
ME Feedback & Suggestions
ME Application Developer Interest
Blu-ray Disc Java
ME Developer Days
Squawk
Mobile Developer Alliance
OpenCable
LWUIT
JavaFX Script Language Discussion
OpenJFX General Discussion
Scene Graph
General Performance Discussion
Your Java Career
NetBeans 6.0
Servlets
JSP
JSF
Portals and Portlets
EJB and Other Java EE Technologies
Distributed Java
Object Relational Mapping
JDBC
Web Services
Swing / AWT / SWT / JFace
JNLP and Web Start
Java Micro Edition
Sockets and Internet Protocols
Threads and Synchronization
Performance
Applets
I/O and Streams
Other Java APIs
Game Development
Java in General (beginner)
Java in General (intermediate)
Java in General (advanced)
Programmer Certification (SCJP)
Developer Certification (SCJD)
Associate Certification (SCJA)
Web Component Certification (SCWCD)
EJB Certification (SCBCD)
Mobile Application Certification (SCMAD)
Architect Certification (SCEA)
Web Services Certification (SCDJWS)
XML Certification
Product and Other Certifications
Mock Exam Errata
Sun Certification Results
Authors' Corral
Book Reviews
Events
Bunkhouse Porch
Teachers' Lounge
Testing
OO, Patterns, UML and Refactoring
IDEs, Version Control and other tools
Ant, Maven and Other Build Tools
Linux / UNIX
Mac OS
HTML and JavaScript
XML and Related Technologies
Agile and Other Processes
General Computing
Security
Groovy
Scala
Other Languages
Struts
Application Frameworks
Other Open Source Projects
BEA/Weblogic
IBM/Websphere
Oracle/OAS
Apache/Tomcat
JBoss
Other Java Products and Servers
JavaRanch
Cattle Drive (java college)
Moderators Only
Trash Can
Jobs Offered
Jobs Wanted
Jobs Discussion
Meaningless Drivel
Programming Diversions
Blatant Advertising
Java Announcements
New To Java
Advanced Java
Java Applets
Networking
Threads and Synchronization
Java 2D
AWT / Swing
SWT / JFace
CLDC and MIDP
CDC and Personal Profile
Sun Java Wireless Toolkit
Enterprise JavaBeans
JavaServer Pages (JSP) and JSTL
Java Servlet
JavaServer Faces
Web Frameworks
Database
XML
Lucene
NetBeans
Eclipse
IntelliJ IDEA
JCreator
Other IDEs
Java Tutorials
Java Tips
Jobs Discussion
Jobs Offered
Jobs Wanted
Professional Certification
Forum Lobby
Java Blogs
Introductions
Reviews / Advertising
Suggestions & Feedback

Resources

Java Database
Linux
Coding
Mobile
Hardware
Software Development
Software Development
iOS,OS X
iOS,OS X
ORACLE
IBM DEVELOPER
IBM DEVELOPER
MSDN
MSDN


Tags

Metro and JAXB


jax-ws webservice with multiple ports


Hello there,How to deploy after wsimport a multiple ports jax-ws webservice on Glassfish like in the following WSDL snippet? It tried to use Netbeans' s New Webservice from WSDL, but the multiple ports configuration is not handled correctly by the wizard. Any idea as how to fix this problem? I am very much in need of a solution. Help appreciated! <service name="Service-v1">        <port name="FooPort" binding="foo:FooPortBinding-v1_0">            <soap:address location="http://localhost:8080/services/Service-v1" />        </port>               <port name="BarPort" binding="bar:BarPortBinding-v1_0">            <soap:address location="http://localhost:8080/services/Service-v1" />        </port>    </service>Thanks

Can you check the dual-binding sample in jaxws 2.1.4 bundle and see if that helpsThat has something like this in sun-jaxws.xml<endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'>    <endpoint        name='soap'        implementation='dual_binding.server.AddNumbersImpl'        port='{http://server.dual_binding/}soap'        url-pattern='/soap'/>    <endpoint        name='rest'        implementation='dual_binding.server.AddNumbersImpl'        port='{http://server.dual_binding/}rest'        binding="http://jax-ws.dev.java.net/rest"        url-pattern='/rest'/></endpoints>We are aware of problems with dual binding in jsr 109 so hopefully the jaxws style of deployment as mentioned above could help you for nowRegards,Bhakti

I guess the problem is the endpoint location, that force you to definedifferent URLs for your endpoints...location="http://localhost:8080/services/Service-v1" <------- this valueOn Wed, Apr 30, 2008 at 12:57 AM,  <metro@javadesktop.org> wrote:> Can you check the dual-binding sample in jaxws 2.1.4 bundle and see if that helps>  That has something like this in sun-jaxws.xml>  <endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'>>     <endpoint>         name='soap'>         implementation='dual_binding.server.AddNumbersImpl'>         port='{http://server.dual_binding/}soap'>         url-pattern='/soap'/>>     <endpoint>         name='rest'>         implementation='dual_binding.server.AddNumbersImpl'>         port='{http://server.dual_binding/}rest'>         binding="http://jax-ws.dev.java.net/rest">         url-pattern='/rest'/>>  </endpoints>>  We are aware of problems with dual binding in jsr 109 so hopefully the jaxws style of deployment as mentioned above could help you for now>  Regards,>  Bhakti>  [Message sent by forum member 'bhaktimehta' (bhaktimehta)]>>  http://forums.java.net/jive/thread.jspa?messageID=272134>>>>  --------------------------------------------------------------------->  To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net>  For additional commands, e-mail: users-help@metro.dev.java.net>>---------------------------------------------------------------------To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.netFor additional commands, e-mail: users-help@metro.dev.java.net

Thanks Bhakti,Were exactly can I get jax-ws 2.1.4? The latest version i see inhttps://jax-ws.dev.java.net/ri-download.html is 2.1.3 ?Also were is the file sun-jaxws.xml supposed to be? I don't see it nowherein the workspace. Under nbproject, I have jax-ws.xml which i put below werewe clearly see that only one port 'SMSPort' is created instead of two.<?xml version="1.0" encoding="UTF-8"?><jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1">  <services>    <service name="SDPServiceImpl"><implementation-class>com.sfr.sdp.core.services.SDPServiceImpl</implementation-class><wsdl-url>file:/home/ppetit/workspace/sfrsdp/V1/SDP_CORE/src/wsdl/SDPService-v1.wsdl</wsdl-url>      <local-wsdl-file>SDPService-v1.wsdl</local-wsdl-file>      <service-name>SDPService-v1</service-name>      <port-name>SMSPort</port-name>      <package-name>com.sfr.sdp.v1</package-name>      <catalog-file>catalog.xml</catalog-file>      <use-provider>false</use-provider>    </service>  </services>  <clients>  </clients></jax-ws>2008/4/30 <metro@javadesktop.org>:> Can you check the dual-binding sample in jaxws 2.1.4 bundle and see if that> helps> That has something like this in sun-jaxws.xml> <endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime'> version='2.0'>>    <endpoint>        name='soap'>        implementation='dual_binding.server.AddNumbersImpl'>        port='{http://server.dual_binding/}soap<http://> '>        url-pattern='/soap'/>>    <endpoint>        name='rest'>        implementation='dual_binding.server.AddNumbersImpl'>        port='{http://server.dual_binding/}rest<http://> '>        binding="http://jax-ws.dev.java.net/rest">        url-pattern='/rest'/>> </endpoints>> We are aware of problems with dual binding in jsr 109 so hopefully the> jaxws style of deployment as mentioned above could help you for now> Regards,> Bhakti> [Message sent by forum member 'bhaktimehta' (bhaktimehta)]>> http://forums.java.net/jive/thread.jspa?messageID=272134>> ---------------------------------------------------------------------> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net> For additional commands, e-mail: users-help@metro.dev.java.net>>-- Patrick Petit Consulting3040 route de ChamrousseSaint Martin d'Uriage 38410 - FRTel. +33 (0)6 29 33 75 85Email: ppetit@PatrickPetit.COM[att1.html]


Related Links

[wsimport] Consider using <depends>/<produces> so that wsimport won't do u
xjc binding: superclass for common tags
Wanna know how to configure jaxws on jboss
SSL for Web Service implemented as EJB
AXIS webservice to return multiple values
WS-Addressing error in Client when addressing enabled and required
Hosting web pages on Java 6's lightweight http server
Java-JAXWS
multiple wsdl files
Regarding support (commercial)
Tomcat 5.5 deployment problem with WSIT Milestone Release 3
JAXB 2.1.2: xjc:simple ignored in global bindings
how to implement SOAP in jaxws 2.1
{Beginner Help} How can I call my web service without using annotations.
WSIT prerequisites?
can't download jax-ws 2.1