You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2008/12/16 09:40:48 UTC
svn commit: r726987 - in
/servicemix/smx4/features/trunk/cxf/cxf-transport-nmr: ./
src/main/build-resources/
src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/
src/main/resources/schemas/ src/main/resources/schemas/wsdl/
Author: ffang
Date: Tue Dec 16 00:40:48 2008
New Revision: 726987
URL: http://svn.apache.org/viewvc?rev=726987&view=rev
Log:
[SMX4-178]add nmr:address ExtensibilityElement for wsdl port
Added:
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/build-resources/
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/build-resources/catalog.cat
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java (with props)
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xjb
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd (with props)
Modified:
servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/pom.xml
Modified: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/pom.xml?rev=726987&r1=726986&r2=726987&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/pom.xml (original)
+++ servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/pom.xml Tue Dec 16 00:40:48 2008
@@ -89,6 +89,7 @@
<DynamicImport-Package>*</DynamicImport-Package>
<Export-Package>
${pom.artifactId}*,
+ org.apache.cxf.transports.nmr,
'=META-INF.cxf.transport.nmr'
</Export-Package>
<Private-Package />
@@ -132,6 +133,34 @@
</systemProperties>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-common-xsd</artifactId>
+ <version>${cxf.version}</version>
+ <executions>
+ <execution>
+ <id>generate-sources</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
+ <xsdOptions>
+ <xsdOption>
+ <xsd>${basedir}/src/main/resources/schemas/wsdl/nmr.xsd</xsd>
+ <bindingFile>${basedir}/src/main/resources/schemas/wsdl/nmr.xjb</bindingFile>
+ <catalog>${basedir}/src/main/build-resources/catalog.cat</catalog>
+ <deleteDirs>
+ <deleteDir>${basedir}/target/generated/src/main/java/org/apache/cxf/wsdl</deleteDir>
+ </deleteDirs>
+ </xsdOption>
+
+ </xsdOptions>
+ </configuration>
+ <goals>
+ <goal>xsdtojava</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
Added: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/build-resources/catalog.cat
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/build-resources/catalog.cat?rev=726987&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/build-resources/catalog.cat (added)
+++ servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/build-resources/catalog.cat Tue Dec 16 00:40:48 2008
@@ -0,0 +1,21 @@
+--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--
+
+SYSTEM "http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd" "../../../../../../common/schemas/src/main/resources/schemas/wsdl/wsdl.xsd"
+SYSTEM "http://schemas.xmlsoap.org/wsdl/" "../../../../../../common/schemas/src/main/resources/schemas/wsdl/wsdl.xsd"
Added: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java?rev=726987&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java (added)
+++ servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java Tue Dec 16 00:40:48 2008
@@ -0,0 +1,45 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.servicemix.cxf.transport.nmr.wsdl11;
+
+import java.util.Map;
+
+import javax.wsdl.Port;
+import javax.wsdl.WSDLException;
+import javax.wsdl.extensions.ExtensibilityElement;
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.transports.nmr.AddressType;
+import org.apache.cxf.wsdl.AbstractWSDLPlugin;
+import org.apache.servicemix.cxf.transport.nmr.NMRTransportFactory;
+
+public class NMRTransportPlugin extends AbstractWSDLPlugin {
+
+
+
+ public ExtensibilityElement createExtension(Map<String, Object> args) throws WSDLException {
+ AddressType jbiAddress = null;
+ jbiAddress = (AddressType)registry.createExtension(Port.class,
+ new QName(NMRTransportFactory.TRANSPORT_ID, "address"));
+ return jbiAddress;
+ }
+
+}
+
Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/wsdl11/NMRTransportPlugin.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xjb
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xjb?rev=726987&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xjb (added)
+++ servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xjb Tue Dec 16 00:40:48 2008
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<jaxb:bindings version="1.0"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
+ jaxb:extensionBindingPrefixes="xjc">
+ <jaxb:bindings schemaLocation="http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd" node="/xs:schema">
+ <jaxb:schemaBindings>
+ <jaxb:package name="org.apache.cxf.wsdl"/>
+ </jaxb:schemaBindings>
+ <jaxb:globalBindings generateIsSetMethod="true"/>
+ </jaxb:bindings>
+ <jaxb:bindings schemaLocation="http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd" node="/xs:schema/xs:complexType[@name='tExtensibilityElement']">
+ <jaxb:class implClass="org.apache.cxf.wsdl.TExtensibilityElementImpl"/>
+ </jaxb:bindings>
+</jaxb:bindings>
Added: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd?rev=726987&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd (added)
+++ servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd Tue Dec 16 00:40:48 2008
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:nmr="http://cxf.apache.org/transports/nmr"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://cxf.apache.org/transports/nmr"
+ elementFormDefault="qualified"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0">
+
+ <xs:import namespace="http://schemas.xmlsoap.org/wsdl/"
+ schemaLocation="http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd" />
+
+
+ <xs:element name="address" type="nmr:AddressType"/>
+ <xs:complexType name="AddressType">
+ <xs:complexContent>
+ <xs:extension base="wsdl:tExtensibilityElement">
+ <xs:attribute name="location" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>
+ nmr dummy location
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/src/main/resources/schemas/wsdl/nmr.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml