You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/05/14 01:30:37 UTC
svn commit: r170107 [9/10] - in /incubator/beehive/trunk/samples:
controls-blank/src/pkg/ controls-db/src/dbControl/
controls-db/src/dbControl/util/ controls-spring/web/
controls-spring/web/WEB-INF/ controls-spring/web/WEB-INF/src/
controls-webservices-blank/ controls-webservices-blank/junit/
controls-webservices-blank/junit/test/ controls-webservices-blank/schemas/
netui-samples/ netui-samples/WEB-INF/src/
netui-samples/WEB-INF/src/org/apache/beehive/samples/controls/pets/
netui-samples/WEB-INF/src/org/apache/beehive/samples/netui/beans/
netui-samples/WEB-INF/src/shared/ netui-samples/resources/template/
netui-samples/ui/datagrid/ netui-samples/ui/popup/
netui-samples/ui/popup/getColorPopup/ netui-samples/ui/tree/
netui-samples/ui/tree/content/ netui-samples/validation/
petstoreWeb/src/org/apache/beehive/samples/petstore/controller/
petstoreWeb/src/org/apache/beehive/samples/petstore/controls/
petstoreWeb/src/org/apache/beehive/samples/petstore/controls/data/
petstoreWeb/src/org/apache/beehive/samples/petstore/controls/exceptions/
petstoreWeb/src/org/apache/beehive/samples/petstore/forms/
petstoreWeb/src/org/apache/beehive/samples/petstore/model/
petstoreWeb/test-src/org/apache/beehive/samples/petstore/test/
petstoreWeb/web/ petstoreWeb/web/WEB-INF/
petstoreWeb/web/WEB-INF/tags/beehive/petstore/
petstoreWeb/web/account/addresses/ petstoreWeb/web/account/create/
petstoreWeb/web/account/edit/ petstoreWeb/web/auth/
petstoreWeb/web/checkout/ petstoreWeb/web/search/ petstoreWeb/web/shop/
petstoreWeb/web/site/ petstoreWeb/web/webappRoot/ wsm-addressbook-enhanced/
wsm-addressbook-enhanced/WEB-INF/
wsm-addressbook-enhanced/WEB-INF/src-ws/web/
wsm-addressbook-enhanced/WEB-INF/src/
wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/
wsm-addressbook-fromWSDL/ wsm-addressbook-fromWSDL/WEB-INF/
wsm-addressbook-fromWSDL/WEB-INF/src/
wsm-addressbook-fromWSDL/WEB-INF/wsdl/ wsm-addressbook/
wsm-addressbook/WEB-INF/ wsm-addressbook/WEB-INF/src-ws/web/
wsm-addressbook/WEB-INF/src/
wsm-addressbook/WEB-INF/src/org/apache/beehive/sample/ wsm-blank/
wsm-blank/WEB-INF/ wsm-blank/WEB-INF/src-ws/web/ wsm-blank/WEB-INF/src/
wsm-employee/ wsm-employee/WEB-INF/
wsm-employee/WEB-INF/client-tests/org/apache/beehive/EmployeeDB/
wsm-employee/WEB-INF/src-ws/web/ wsm-employee/WEB-INF/src/
wsm-employee/WEB-INF/src/org/apache/beehive/sample/
wsm-petstore-dashboard/lib/ wsm-petstore-dashboard/src/
wsm-petstore-dashboard/src/ui/ wsm-samples/ wsm-samples/WEB-INF/
wsm-samples/WEB-INF/src-ws/web/complex/
wsm-samples/WEB-INF/src-ws/web/handlerchain/
wsm-samples/WEB-INF/src-ws/web/header/ wsm-samples/WEB-INF/src-ws/web/oneway/
wsm-samples/WEB-INF/src-ws/web/soapmessagehandlers/
wsm-samples/WEB-INF/src-ws/web/webmethod/
wsm-samples/WEB-INF/src-ws/web/webparam/
wsm-samples/WEB-INF/src-ws/web/webresult/
wsm-samples/WEB-INF/src-ws/web/webservice/
wsm-samples/WEB-INF/src-ws/web/xsdtypes/ wsm-samples/WEB-INF/src/
wsm-samples/WEB-INF/src/org/apache/beehive/sample/
wsm-samples/WEB-INF/src/web/header/
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithAnnotationSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithAnnotationSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithAnnotationSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithAnnotationSample.java Fri May 13 16:30:30 2005
@@ -1,45 +1,45 @@
-package web.webmethod;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service does contain @WebMethod annotations; thus only methods that
- * are annotated with @WebMethod are considered web methods.
- */
-@WebService
-public class WebMethodWithAnnotationSample {
-
- @WebMethod
- public String sayHello1(String name) {
- return "Hello, " + name + "!";
- }
-
- @WebMethod(action="urn:sayHelloAction", operationName="sayHelloOperation")
- public String sayHello2(String name) {
- return "Hello, " + name + "!";
- }
-
- // not a web method
- public String sayHello3(String name) {
- return "Hello, " + name + "!";
- }
+package web.webmethod;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service does contain @WebMethod annotations; thus only methods that
+ * are annotated with @WebMethod are considered web methods.
+ */
+@WebService
+public class WebMethodWithAnnotationSample {
+
+ @WebMethod
+ public String sayHello1(String name) {
+ return "Hello, " + name + "!";
+ }
+
+ @WebMethod(action="urn:sayHelloAction", operationName="sayHelloOperation")
+ public String sayHello2(String name) {
+ return "Hello, " + name + "!";
+ }
+
+ // not a web method
+ public String sayHello3(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithoutAnnotationSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithoutAnnotationSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithoutAnnotationSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webmethod/WebMethodWithoutAnnotationSample.java Fri May 13 16:30:30 2005
@@ -1,38 +1,38 @@
-package web.webmethod;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service does not contain any @WebMethod annotations; thus all
- * methods are automatically considered web methods.
- */
-@WebService
-public class WebMethodWithoutAnnotationSample {
-
- public String sayHello1(String name) {
- return "Hello " + name + "!";
- }
-
- public String sayHello2(String name) {
- return "Hello " + name + "!";
- }
+package web.webmethod;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service does not contain any @WebMethod annotations; thus all
+ * methods are automatically considered web methods.
+ */
+@WebService
+public class WebMethodWithoutAnnotationSample {
+
+ public String sayHello1(String name) {
+ return "Hello " + name + "!";
+ }
+
+ public String sayHello2(String name) {
+ return "Hello " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamDocumentLiteralSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamDocumentLiteralSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamDocumentLiteralSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamDocumentLiteralSample.java Fri May 13 16:30:30 2005
@@ -1,115 +1,115 @@
-package web.webparam;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.apache.beehive.sample.Address;
-import org.apache.beehive.sample.AddressHolder;
-import org.apache.beehive.sample.Phone;
-import org.apache.beehive.sample.StateType;
-
-@WebService
-public class WebParamDocumentLiteralSample {
-
- /**
- * This method shows the encoding of a parameter of simple type in the message body.
- */
- @WebMethod
- public String sayHelloInBody(@WebParam(name="name_in") String name) {
- return "Hello, " + name + "!";
- }
-
- /**
- * This method shows the encoding of a parameter of simple type in the message header.
- */
- @WebMethod
- public String sayHelloInHeader(@WebParam(name="name_in", header=true) String name) {
- return "Hello, " + name + "!";
- }
-
- /**
- * This method shows the encoding of a parameter of complex type in the message body.
- */
- @WebMethod
- public Phone getPhoneNumberInBody(@WebParam(mode=WebParam.Mode.IN) Address address) {
- return address.getPhoneNumber();
- }
-
- /**
- * This method shows the encoding of a parameter of complex type in the message header.
- */
- @WebMethod
- public Phone getPhoneNumberInHeader(@WebParam(mode=WebParam.Mode.IN, header=true) Address address) {
- return address.getPhoneNumber();
- }
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in the message header.
- */
- @WebMethod
- public Phone createPhoneNumberInHeader(
- @WebParam(name="area_code", header=true) int areaCode,
- @WebParam(name="phone_in", header=true) Phone phone
- ) {
- System.out.println("Creating phone number with arguments in the header");
- return new Phone(areaCode, phone.getExchange(), phone.getNumber());
- }
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in both message body and header.
- */
- @WebMethod
- public Phone createPhoneNumberInBodyHeader(
- int areaCode,
- @WebParam(name="phone_in", header=true) Phone phone
- ) {
- return new Phone(areaCode, phone.getExchange(), phone.getNumber());
- }
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in both message body and header.
- */
- @WebMethod
- public Phone createPhoneNumberInBody(
- int areaCode
- ) {
- return new Phone(areaCode, "", "");
- }
-
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in both message body and header.
- */
- @WebMethod
- public int updatePhoneNumbers(
- Phone phone,
- @WebParam(name="address1", header=true, mode=WebParam.Mode.INOUT) AddressHolder addressHolder1,
- @WebParam(name="address2", header=true, mode=WebParam.Mode.OUT) AddressHolder addressHolder2
- ) {
- Phone oldPhone = addressHolder1.value.getPhoneNumber();
- addressHolder1.value.setPhoneNumber(phone);
- addressHolder2.value = new Address(5960, "West Las Positas Blvd", "Pleasanton", new StateType("CA"), 94588, oldPhone);
-
- return 0;
- }
+package web.webparam;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.apache.beehive.sample.Address;
+import org.apache.beehive.sample.AddressHolder;
+import org.apache.beehive.sample.Phone;
+import org.apache.beehive.sample.StateType;
+
+@WebService
+public class WebParamDocumentLiteralSample {
+
+ /**
+ * This method shows the encoding of a parameter of simple type in the message body.
+ */
+ @WebMethod
+ public String sayHelloInBody(@WebParam(name="name_in") String name) {
+ return "Hello, " + name + "!";
+ }
+
+ /**
+ * This method shows the encoding of a parameter of simple type in the message header.
+ */
+ @WebMethod
+ public String sayHelloInHeader(@WebParam(name="name_in", header=true) String name) {
+ return "Hello, " + name + "!";
+ }
+
+ /**
+ * This method shows the encoding of a parameter of complex type in the message body.
+ */
+ @WebMethod
+ public Phone getPhoneNumberInBody(@WebParam(mode=WebParam.Mode.IN) Address address) {
+ return address.getPhoneNumber();
+ }
+
+ /**
+ * This method shows the encoding of a parameter of complex type in the message header.
+ */
+ @WebMethod
+ public Phone getPhoneNumberInHeader(@WebParam(mode=WebParam.Mode.IN, header=true) Address address) {
+ return address.getPhoneNumber();
+ }
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in the message header.
+ */
+ @WebMethod
+ public Phone createPhoneNumberInHeader(
+ @WebParam(name="area_code", header=true) int areaCode,
+ @WebParam(name="phone_in", header=true) Phone phone
+ ) {
+ System.out.println("Creating phone number with arguments in the header");
+ return new Phone(areaCode, phone.getExchange(), phone.getNumber());
+ }
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in both message body and header.
+ */
+ @WebMethod
+ public Phone createPhoneNumberInBodyHeader(
+ int areaCode,
+ @WebParam(name="phone_in", header=true) Phone phone
+ ) {
+ return new Phone(areaCode, phone.getExchange(), phone.getNumber());
+ }
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in both message body and header.
+ */
+ @WebMethod
+ public Phone createPhoneNumberInBody(
+ int areaCode
+ ) {
+ return new Phone(areaCode, "", "");
+ }
+
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in both message body and header.
+ */
+ @WebMethod
+ public int updatePhoneNumbers(
+ Phone phone,
+ @WebParam(name="address1", header=true, mode=WebParam.Mode.INOUT) AddressHolder addressHolder1,
+ @WebParam(name="address2", header=true, mode=WebParam.Mode.OUT) AddressHolder addressHolder2
+ ) {
+ Phone oldPhone = addressHolder1.value.getPhoneNumber();
+ addressHolder1.value.setPhoneNumber(phone);
+ addressHolder2.value = new Address(5960, "West Las Positas Blvd", "Pleasanton", new StateType("CA"), 94588, oldPhone);
+
+ return 0;
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamRpcLiteralSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamRpcLiteralSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamRpcLiteralSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webparam/WebParamRpcLiteralSample.java Fri May 13 16:30:30 2005
@@ -1,104 +1,104 @@
-package web.webparam;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.apache.beehive.sample.Address;
-import org.apache.beehive.sample.AddressHolder;
-import org.apache.beehive.sample.Phone;
-import org.apache.beehive.sample.StateType;
-
-@WebService
-@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
-public class WebParamRpcLiteralSample {
-
- /**
- * This method shows the encoding of a parameter of simple type in the message body.
- */
- @WebMethod
- public String sayHelloInBody(@WebParam(name="namein") String name) {
- return "Hello, " + name + "!";
- }
-
- /**
- * This method shows the encoding of a parameter of simple type in the message header.
- */
- @WebMethod
- public String sayHelloInHeader(@WebParam(name="namein", header=true) String name) {
- return "Hello, " + name + "!";
- }
-
- /**
- * This method shows the encoding of a parameter of complex type in the message body.
- */
- @WebMethod
- public Phone getPhoneNumberInBody(@WebParam(mode=WebParam.Mode.IN) Address address) {
- return address.getPhoneNumber();
- }
-
- /**
- * This method shows the encoding of a parameter of complex type in the message header.
- */
- @WebMethod
- public Phone getPhoneNumberInHeader(@WebParam(mode=WebParam.Mode.IN, header=true) Address address) {
- return address.getPhoneNumber();
- }
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in the message header.
- */
- @WebMethod
- public Phone createPhoneNumberInHeader(
- @WebParam(name="areacode", header=true) int areaCode,
- @WebParam(name="phonein", header=true) Phone phone
- ) {
- return new Phone(areaCode, phone.getExchange(), phone.getNumber());
- }
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in both message body and header.
- */
- @WebMethod
- public Phone createPhoneNumberInBodyHeader(
- int areaCode,
- @WebParam(name="phonein", header=true) Phone phone
- ) {
- return new Phone(areaCode, phone.getExchange(), phone.getNumber());
- }
-
- /**
- * This method shows the encoding of multiple simple and complex parameters in both message body and header.
- */
- @WebMethod
- public int updatePhoneNumbers(
- Phone phone,
- @WebParam(name="address1", header=true, mode=WebParam.Mode.INOUT) AddressHolder addressHolder1,
- @WebParam(name="address2", header=true, mode=WebParam.Mode.OUT) AddressHolder addressHolder2
- ) {
- Phone oldPhone = addressHolder1.value.getPhoneNumber();
- addressHolder1.value.setPhoneNumber(phone);
- addressHolder2.value = new Address(5960, "West Las Positas Blvd", "Pleasanton", new StateType("CA"), 94588, oldPhone);
-
- return 0;
- }
+package web.webparam;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.apache.beehive.sample.Address;
+import org.apache.beehive.sample.AddressHolder;
+import org.apache.beehive.sample.Phone;
+import org.apache.beehive.sample.StateType;
+
+@WebService
+@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
+public class WebParamRpcLiteralSample {
+
+ /**
+ * This method shows the encoding of a parameter of simple type in the message body.
+ */
+ @WebMethod
+ public String sayHelloInBody(@WebParam(name="namein") String name) {
+ return "Hello, " + name + "!";
+ }
+
+ /**
+ * This method shows the encoding of a parameter of simple type in the message header.
+ */
+ @WebMethod
+ public String sayHelloInHeader(@WebParam(name="namein", header=true) String name) {
+ return "Hello, " + name + "!";
+ }
+
+ /**
+ * This method shows the encoding of a parameter of complex type in the message body.
+ */
+ @WebMethod
+ public Phone getPhoneNumberInBody(@WebParam(mode=WebParam.Mode.IN) Address address) {
+ return address.getPhoneNumber();
+ }
+
+ /**
+ * This method shows the encoding of a parameter of complex type in the message header.
+ */
+ @WebMethod
+ public Phone getPhoneNumberInHeader(@WebParam(mode=WebParam.Mode.IN, header=true) Address address) {
+ return address.getPhoneNumber();
+ }
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in the message header.
+ */
+ @WebMethod
+ public Phone createPhoneNumberInHeader(
+ @WebParam(name="areacode", header=true) int areaCode,
+ @WebParam(name="phonein", header=true) Phone phone
+ ) {
+ return new Phone(areaCode, phone.getExchange(), phone.getNumber());
+ }
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in both message body and header.
+ */
+ @WebMethod
+ public Phone createPhoneNumberInBodyHeader(
+ int areaCode,
+ @WebParam(name="phonein", header=true) Phone phone
+ ) {
+ return new Phone(areaCode, phone.getExchange(), phone.getNumber());
+ }
+
+ /**
+ * This method shows the encoding of multiple simple and complex parameters in both message body and header.
+ */
+ @WebMethod
+ public int updatePhoneNumbers(
+ Phone phone,
+ @WebParam(name="address1", header=true, mode=WebParam.Mode.INOUT) AddressHolder addressHolder1,
+ @WebParam(name="address2", header=true, mode=WebParam.Mode.OUT) AddressHolder addressHolder2
+ ) {
+ Phone oldPhone = addressHolder1.value.getPhoneNumber();
+ addressHolder1.value.setPhoneNumber(phone);
+ addressHolder2.value = new Address(5960, "West Las Positas Blvd", "Pleasanton", new StateType("CA"), 94588, oldPhone);
+
+ return 0;
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultDocumentLiteralSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultDocumentLiteralSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultDocumentLiteralSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultDocumentLiteralSample.java Fri May 13 16:30:30 2005
@@ -1,44 +1,44 @@
-package web.webresult;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * This web service shows the use of @WebResult (with style/use DOCUMENT/LITERAL).
- */
-@WebService
-@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
-public class WebResultDocumentLiteralSample {
-
- @WebMethod
- @WebResult
- public String sayHello1(String name) {
- return "Hello, " + name + "!";
- }
-
- @WebMethod
- @WebResult(name="SayHelloResult")
- public String sayHello2(String name) {
- return "Hello, " + name + "!";
- }
+package web.webresult;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This web service shows the use of @WebResult (with style/use DOCUMENT/LITERAL).
+ */
+@WebService
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
+public class WebResultDocumentLiteralSample {
+
+ @WebMethod
+ @WebResult
+ public String sayHello1(String name) {
+ return "Hello, " + name + "!";
+ }
+
+ @WebMethod
+ @WebResult(name="SayHelloResult")
+ public String sayHello2(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultRpcLiteralSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultRpcLiteralSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultRpcLiteralSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webresult/WebResultRpcLiteralSample.java Fri May 13 16:30:30 2005
@@ -1,44 +1,44 @@
-package web.webresult;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * This web service shows the use of @WebResult (with style/use RPC/LITERAL).
- */
-@WebService
-@SOAPBinding(style = SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
-public class WebResultRpcLiteralSample {
-
- @WebMethod
- @WebResult
- public String sayHello1(String name) {
- return "Hello, " + name + "!";
- }
-
- @WebMethod
- @WebResult(name="SayHelloResult")
- public String sayHello2(String name) {
- return "Hello, " + name + "!";
- }
+package web.webresult;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This web service shows the use of @WebResult (with style/use RPC/LITERAL).
+ */
+@WebService
+@SOAPBinding(style = SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
+public class WebResultRpcLiteralSample {
+
+ @WebMethod
+ @WebResult
+ public String sayHello1(String name) {
+ return "Hello, " + name + "!";
+ }
+
+ @WebMethod
+ @WebResult(name="SayHelloResult")
+ public String sayHello2(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceCustomSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceCustomSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceCustomSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceCustomSample.java Fri May 13 16:30:30 2005
@@ -1,35 +1,35 @@
-package web.webservice;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service customizes the service's configuration by using
- * @WebService.name, @WebService.serviceName and @WebService.targetNamespace.
- */
-@WebService(name="WebServiceCustomSampleName", serviceName="WebServiceCustomSampleServiceName", targetNamespace="http://beehive.apache.org/web/webservice/custom")
-public class WebServiceCustomSample {
-
- @WebMethod
- public String sayHello(String name) {
- return "Hello, " + name + "!";
- }
+package web.webservice;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service customizes the service's configuration by using
+ * @WebService.name, @WebService.serviceName and @WebService.targetNamespace.
+ */
+@WebService(name="WebServiceCustomSampleName", serviceName="WebServiceCustomSampleServiceName", targetNamespace="http://beehive.apache.org/web/webservice/custom")
+public class WebServiceCustomSample {
+
+ @WebMethod
+ public String sayHello(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceEndpointInterfaceSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceEndpointInterfaceSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceEndpointInterfaceSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceEndpointInterfaceSample.java Fri May 13 16:30:30 2005
@@ -1,34 +1,34 @@
-package web.webservice;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service is a sample for an endpoint interface definition, which
- * can be referred to by implementation beans as a contract.
- * @see web.webservice.WebServiceEndpointInterfaceSample
- */
-@WebService
-public interface WebServiceEndpointInterfaceSample {
-
- @WebMethod
- public String sayHello(String name);
-}
+package web.webservice;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service is a sample for an endpoint interface definition, which
+ * can be referred to by implementation beans as a contract.
+ * @see web.webservice.WebServiceEndpointInterfaceSample
+ */
+@WebService
+public interface WebServiceEndpointInterfaceSample {
+
+ @WebMethod
+ public String sayHello(String name);
+}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceImplementationBeanSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceImplementationBeanSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceImplementationBeanSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceImplementationBeanSample.java Fri May 13 16:30:30 2005
@@ -1,35 +1,35 @@
-package web.webservice;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service shows how to refer to a contract in form of an endpoint
- * interface.
- * @see web.webservice.WebServiceEndpointInterfaceSample
- */
-@WebService(endpointInterface="web.webservice.WebServiceEndpointInterfaceSample")
-public class WebServiceImplementationBeanSample {
-
- public String sayHello(String name) {
- return "Hello, " + name + "!";
- }
+package web.webservice;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service shows how to refer to a contract in form of an endpoint
+ * interface.
+ * @see web.webservice.WebServiceEndpointInterfaceSample
+ */
+@WebService(endpointInterface="web.webservice.WebServiceEndpointInterfaceSample")
+public class WebServiceImplementationBeanSample {
+
+ public String sayHello(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceSample.java Fri May 13 16:30:30 2005
@@ -1,35 +1,35 @@
-package web.webservice;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service is a sample for a minimalistic web service definition with
- * default values used for all settings.
- */
-@WebService
-public class WebServiceSample {
-
- @WebMethod
- public String sayHello(String name) {
- return "Hello, " + name + "!";
- }
+package web.webservice;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service is a sample for a minimalistic web service definition with
+ * default values used for all settings.
+ */
+@WebService
+public class WebServiceSample {
+
+ @WebMethod
+ public String sayHello(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocation.wsdl
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocation.wsdl?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocation.wsdl (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocation.wsdl Fri May 13 16:30:30 2005
@@ -1,82 +1,82 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<wsdl:definitions targetNamespace="http://webservice.web" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webservice.web" xmlns:intf="http://webservice.web" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://webservice.web" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webservice.web" xmlns:intf="http://webservice.web" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2RC2
-Built on Nov 16, 2004 (12:19:44 EST)-->
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://webservice.web" xmlns="http://www.w3.org/2001/XMLSchema">
- <element name="sayHello">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- <element name="sayHelloResponse">
- <complexType>
- <sequence>
- <element name="result" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
+Built on Nov 16, 2004-2005 (12:19:44 EST)-->
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://webservice.web" xmlns="http://www.w3.org/2001/XMLSchema">
+ <element name="sayHello">
+ <complexType>
+ <sequence>
+ <element name="name" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="sayHelloResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
- <wsdl:message name="sayHelloRequest">
+ <wsdl:message name="sayHelloRequest">
- <wsdl:part element="impl:sayHello" name="parameters"/>
+ <wsdl:part element="impl:sayHello" name="parameters"/>
- </wsdl:message>
+ </wsdl:message>
- <wsdl:message name="sayHelloResponse">
+ <wsdl:message name="sayHelloResponse">
- <wsdl:part element="impl:sayHelloResponse" name="parameters"/>
+ <wsdl:part element="impl:sayHelloResponse" name="parameters"/>
- </wsdl:message>
+ </wsdl:message>
- <wsdl:portType name="WebServiceWsdlLocationSample">
+ <wsdl:portType name="WebServiceWsdlLocationSample">
- <wsdl:operation name="sayHello">
+ <wsdl:operation name="sayHello">
- <wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest"/>
+ <wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest"/>
- <wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse"/>
+ <wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse"/>
- </wsdl:operation>
+ </wsdl:operation>
- </wsdl:portType>
+ </wsdl:portType>
- <wsdl:binding name="WebServiceWsdlLocationSampleSoapBinding" type="impl:WebServiceWsdlLocationSample">
+ <wsdl:binding name="WebServiceWsdlLocationSampleSoapBinding" type="impl:WebServiceWsdlLocationSample">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="sayHello">
+ <wsdl:operation name="sayHello">
- <wsdlsoap:operation soapAction=""/>
+ <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="sayHelloRequest">
+ <wsdl:input name="sayHelloRequest">
- <wsdlsoap:body use="literal"/>
+ <wsdlsoap:body use="literal"/>
- </wsdl:input>
+ </wsdl:input>
- <wsdl:output name="sayHelloResponse">
+ <wsdl:output name="sayHelloResponse">
- <wsdlsoap:body use="literal"/>
+ <wsdlsoap:body use="literal"/>
- </wsdl:output>
+ </wsdl:output>
- </wsdl:operation>
+ </wsdl:operation>
- </wsdl:binding>
+ </wsdl:binding>
- <wsdl:service name="WebServiceWsdlLocationSampleService">
+ <wsdl:service name="WebServiceWsdlLocationSampleService">
- <wsdl:port binding="impl:WebServiceWsdlLocationSampleSoapBinding" name="WebServiceWsdlLocationSample">
+ <wsdl:port binding="impl:WebServiceWsdlLocationSampleSoapBinding" name="WebServiceWsdlLocationSample">
- <wsdlsoap:address location="http://localhost:7070/wsm-samplesWS/WebServiceWsdlLocationSample.jws"/>
+ <wsdlsoap:address location="http://localhost:7070/wsm-samplesWS/WebServiceWsdlLocationSample.jws"/>
- </wsdl:port>
+ </wsdl:port>
- </wsdl:service>
+ </wsdl:service>
-</wsdl:definitions>
+</wsdl:definitions>
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocationSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocationSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocationSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/webservice/WebServiceWsdlLocationSample.java Fri May 13 16:30:30 2005
@@ -1,34 +1,34 @@
-package web.webservice;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * This web service shows the use of @WebService.wsdlLocation.
- */
-@WebService(wsdlLocation="WebServiceWsdlLocation.wsdl")
-public class WebServiceWsdlLocationSample {
-
- @WebMethod
- public String sayHello(String name) {
- return "Hello, " + name + "!";
- }
+package web.webservice;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * This web service shows the use of @WebService.wsdlLocation.
+ */
+@WebService(wsdlLocation="WebServiceWsdlLocation.wsdl")
+public class WebServiceWsdlLocationSample {
+
+ @WebMethod
+ public String sayHello(String name) {
+ return "Hello, " + name + "!";
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/xsdtypes/XsdTypesSample.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/xsdtypes/XsdTypesSample.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/xsdtypes/XsdTypesSample.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src-ws/web/xsdtypes/XsdTypesSample.java Fri May 13 16:30:30 2005
@@ -1,159 +1,159 @@
-package web.xsdtypes;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.xml.namespace.QName;
-
-import javax.jws.WebService;
-
-/**
- * This web service defines several web methods with various types for formal
- * and return parameters.
- */
-@WebService
-public class XsdTypesSample {
-
- /**
- * This method tests "char".
- * NOTE: A built-in mapping for the primitive type "char" is *not*
- * available; "char" doesn't have a representation in XML Schema).
- * A custom type mapping is required to use this type.
- */
-/*
- public char testChar(char c) {
- // todo: count up one...
- // todo: print it...
- return c;
- }
- */
-
- /**
- * This method tests "java.math.BigDecimal".
- */
- public java.math.BigDecimal testXsdDecimal(java.math.BigDecimal b) {
- // todo: count up one...
- // todo: print it...
- return b;
- }
-
- /**
- * This method tests "java.math.BigInteger".
- */
- public java.math.BigInteger testXsdInteger(java.math.BigInteger b) {
- // todo: count up one...
- // todo: print it...
- return b;
- }
-
- /**
- * This method tests "boolean".
- */
- public boolean testXsdBoolean(boolean b) {
- final boolean _b = !b;
- System.out.println("Got: " + b + ", returning: " + _b);
- return _b;
- }
-
- /**
- * This method tests "byte".
- */
- public byte testXsdByte(byte b) {
- // can't print this
- return b;
- }
-
- /**
- * This method tests "byte[]".
- */
- public byte[] testXsdBase64Binary(byte[] b) {
- // can't print this
- return b;
- }
-
- /**
- * This method tests "java.util.Calendar".
- */
- public java.util.Calendar testXsdDateTime(java.util.Calendar c) {
- // todo: print it...
- // todo: count up one...
- return c;
- }
-
- /**
- * This method tests "double".
- */
- public double testXsdDouble(double d) {
- final double _d = 1.1 * d;
- System.out.println("Got: " + d + ", returning: " + _d);
- return _d;
- }
-
- /**
- * This method tests "float".
- */
- public float testXsdFloat(float f) {
- final float _f = 1.1f * f;
- System.out.println("Got: " + f + ", returning: " + _f);
- return _f;
- }
-
- /**
- * This method tests "int".
- */
- public int testXsdInt(int i) {
- final int _i = 2 * i;
- System.out.println("Got: " + i + ", returning: " + _i);
- return _i;
- }
-
- /**
- * This method tests "long".
- */
- public long testXsdLong(long l) {
- final long _l = 2 * l;
- System.out.println("Got: " + l + ", returning: " + _l);
- return _l;
- }
-
- /**
- * This method tests "javax.xml.namespace.QName".
- */
- public QName testXsdQName(QName q) {
- System.out.println("Got: " + q);
- return q;
- }
-
- /**
- * This method tests "short".
- */
- public short testXsdShort(short s) {
- final short _s = (short) (2 * s);
- System.out.println("Got: " + s + ", returning: " + _s);
- return _s;
- }
-
- /**
- * This method tests "java.lang.String".
- */
- public String testXsdString(String s) {
- final String _s = "test::" + s;
- System.out.println("Got: " + s + ", returning: " + _s);
- return _s;
- }
+package web.xsdtypes;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.xml.namespace.QName;
+
+import javax.jws.WebService;
+
+/**
+ * This web service defines several web methods with various types for formal
+ * and return parameters.
+ */
+@WebService
+public class XsdTypesSample {
+
+ /**
+ * This method tests "char".
+ * NOTE: A built-in mapping for the primitive type "char" is *not*
+ * available; "char" doesn't have a representation in XML Schema).
+ * A custom type mapping is required to use this type.
+ */
+/*
+ public char testChar(char c) {
+ // todo: count up one...
+ // todo: print it...
+ return c;
+ }
+ */
+
+ /**
+ * This method tests "java.math.BigDecimal".
+ */
+ public java.math.BigDecimal testXsdDecimal(java.math.BigDecimal b) {
+ // todo: count up one...
+ // todo: print it...
+ return b;
+ }
+
+ /**
+ * This method tests "java.math.BigInteger".
+ */
+ public java.math.BigInteger testXsdInteger(java.math.BigInteger b) {
+ // todo: count up one...
+ // todo: print it...
+ return b;
+ }
+
+ /**
+ * This method tests "boolean".
+ */
+ public boolean testXsdBoolean(boolean b) {
+ final boolean _b = !b;
+ System.out.println("Got: " + b + ", returning: " + _b);
+ return _b;
+ }
+
+ /**
+ * This method tests "byte".
+ */
+ public byte testXsdByte(byte b) {
+ // can't print this
+ return b;
+ }
+
+ /**
+ * This method tests "byte[]".
+ */
+ public byte[] testXsdBase64Binary(byte[] b) {
+ // can't print this
+ return b;
+ }
+
+ /**
+ * This method tests "java.util.Calendar".
+ */
+ public java.util.Calendar testXsdDateTime(java.util.Calendar c) {
+ // todo: print it...
+ // todo: count up one...
+ return c;
+ }
+
+ /**
+ * This method tests "double".
+ */
+ public double testXsdDouble(double d) {
+ final double _d = 1.1 * d;
+ System.out.println("Got: " + d + ", returning: " + _d);
+ return _d;
+ }
+
+ /**
+ * This method tests "float".
+ */
+ public float testXsdFloat(float f) {
+ final float _f = 1.1f * f;
+ System.out.println("Got: " + f + ", returning: " + _f);
+ return _f;
+ }
+
+ /**
+ * This method tests "int".
+ */
+ public int testXsdInt(int i) {
+ final int _i = 2 * i;
+ System.out.println("Got: " + i + ", returning: " + _i);
+ return _i;
+ }
+
+ /**
+ * This method tests "long".
+ */
+ public long testXsdLong(long l) {
+ final long _l = 2 * l;
+ System.out.println("Got: " + l + ", returning: " + _l);
+ return _l;
+ }
+
+ /**
+ * This method tests "javax.xml.namespace.QName".
+ */
+ public QName testXsdQName(QName q) {
+ System.out.println("Got: " + q);
+ return q;
+ }
+
+ /**
+ * This method tests "short".
+ */
+ public short testXsdShort(short s) {
+ final short _s = (short) (2 * s);
+ System.out.println("Got: " + s + ", returning: " + _s);
+ return _s;
+ }
+
+ /**
+ * This method tests "java.lang.String".
+ */
+ public String testXsdString(String s) {
+ final String _s = "test::" + s;
+ System.out.println("Got: " + s + ", returning: " + _s);
+ return _s;
+ }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml Fri May 13 16:30:30 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<!--
- Copyright 2004 The Apache Software Foundation
+ Copyright 2004-2005 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties Fri May 13 16:30:30 2005
@@ -1,20 +1,20 @@
-# Set root category priority to INFO and its only appender to CONSOLE.
-log4j.rootCategory=DEBUG, CONSOLE
-#log4j.rootCategory=INFO, CONSOLE, LOGFILE
-
-# Set the enterprise logger category to FATAL and its only appender to CONSOLE.
-log4j.logger.org.apache.axis.enterprise=DEBUG, CONSOLE
-
-# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
-log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
-log4j.appender.CONSOLE.Threshold=DEBUG
-log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
-log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
-
-# LOGFILE is set to be a File appender using a PatternLayout.
-log4j.appender.LOGFILE=org.apache.log4j.FileAppender
-log4j.appender.LOGFILE.File=axis.log
-log4j.appender.LOGFILE.Append=true
-log4j.appender.LOGFILE.Threshold=DEBUG
-log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
-log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+# Set root category priority to INFO and its only appender to CONSOLE.
+log4j.rootCategory=DEBUG, CONSOLE
+#log4j.rootCategory=INFO, CONSOLE, LOGFILE
+
+# Set the enterprise logger category to FATAL and its only appender to CONSOLE.
+log4j.logger.org.apache.axis.enterprise=DEBUG, CONSOLE
+
+# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.Threshold=DEBUG
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
+
+# LOGFILE is set to be a File appender using a PatternLayout.
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=axis.log
+log4j.appender.LOGFILE.Append=true
+log4j.appender.LOGFILE.Threshold=DEBUG
+log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Address.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Address.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Address.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Address.java Fri May 13 16:30:30 2005
@@ -1,61 +1,61 @@
-package org.apache.beehive.sample;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-public class Address implements java.io.Serializable {
-
- private static final long serialVersionUID = 1L;
-
- private int streetNum;
- private String streetName;
- private String city;
- private StateType state;
- private int zip;
- private Phone phoneNumber;
-
- public Address() { }
-
- public Address(int streetNum, String streetName, String city, StateType state, int zip, Phone phoneNumber) {
-
- this.streetNum = streetNum;
- this.streetName = streetName;
- this.city = city;
- this.state = state;
- this.zip = zip;
- this.phoneNumber = phoneNumber;
- }
-
- public String getCity() { return city; }
- public void setCity(String city) { this.city = city; }
-
- public Phone getPhoneNumber() { return phoneNumber; }
- public void setPhoneNumber(Phone phoneNumber) { this.phoneNumber = phoneNumber; }
-
- public StateType getState() { return state; }
- public void setState(StateType state) { this.state = state; }
-
- public String getStreetName() { return streetName; }
- public void setStreetName(String streetName) { this.streetName = streetName; }
-
- public int getStreetNum() { return streetNum; }
- public void setStreetNum(int streetNum) { this.streetNum = streetNum; }
-
- public int getZip() { return zip; }
- public void setZip(int zip) { this.zip = zip; }
-}
+package org.apache.beehive.sample;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class Address implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private int streetNum;
+ private String streetName;
+ private String city;
+ private StateType state;
+ private int zip;
+ private Phone phoneNumber;
+
+ public Address() { }
+
+ public Address(int streetNum, String streetName, String city, StateType state, int zip, Phone phoneNumber) {
+
+ this.streetNum = streetNum;
+ this.streetName = streetName;
+ this.city = city;
+ this.state = state;
+ this.zip = zip;
+ this.phoneNumber = phoneNumber;
+ }
+
+ public String getCity() { return city; }
+ public void setCity(String city) { this.city = city; }
+
+ public Phone getPhoneNumber() { return phoneNumber; }
+ public void setPhoneNumber(Phone phoneNumber) { this.phoneNumber = phoneNumber; }
+
+ public StateType getState() { return state; }
+ public void setState(StateType state) { this.state = state; }
+
+ public String getStreetName() { return streetName; }
+ public void setStreetName(String streetName) { this.streetName = streetName; }
+
+ public int getStreetNum() { return streetNum; }
+ public void setStreetNum(int streetNum) { this.streetNum = streetNum; }
+
+ public int getZip() { return zip; }
+ public void setZip(int zip) { this.zip = zip; }
+}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressException.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressException.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressException.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressException.java Fri May 13 16:30:30 2005
@@ -1,27 +1,27 @@
-package org.apache.beehive.sample;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-public class AddressException extends Exception implements java.io.Serializable {
-
- private static final long serialVersionUID = 1L;
-
- public AddressException() { }
- public AddressException(String msg) { super(msg); }
+package org.apache.beehive.sample;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class AddressException extends Exception implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ public AddressException() { }
+ public AddressException(String msg) { super(msg); }
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressHolder.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressHolder.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressHolder.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/AddressHolder.java Fri May 13 16:30:30 2005
@@ -1,26 +1,26 @@
-package org.apache.beehive.sample;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-public class AddressHolder implements javax.xml.rpc.holders.Holder, java.io.Serializable {
-
- private static final long serialVersionUID = 1L;
-
- public Address value;
+package org.apache.beehive.sample;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class AddressHolder implements javax.xml.rpc.holders.Holder, java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ public Address value;
}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/MessageHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/MessageHandler.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/MessageHandler.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/MessageHandler.java Fri May 13 16:30:30 2005
@@ -1,90 +1,90 @@
-package org.apache.beehive.sample;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-import javax.xml.namespace.QName;
-
-import javax.xml.rpc.handler.Handler;
-import javax.xml.rpc.handler.HandlerInfo;
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.handler.soap.SOAPMessageContext;
-
-import javax.xml.soap.SOAPMessage;
-
-public class MessageHandler implements Handler {
-
- private static final String ORIGINAL = "original";
- private static final String MODIFIED = "ORIGINAL";
-
- private HandlerInfo info;
- private String modified;
- private String original;
-
- public void init(HandlerInfo handlerInfo) {
-
- info = handlerInfo;
-
- original = (String) info.getHandlerConfig().get("original");
- if (null == original || 0 == original.length()) {
- original = ORIGINAL;
- }
-
- modified = (String) info.getHandlerConfig().get("modified");
- if (null == modified || 0 == modified.length()) {
- modified = MODIFIED;
- }
- }
-
- public void destroy() {
- // empty
- }
-
- public QName[] getHeaders() {
- return info.getHeaders();
- }
-
- public boolean handleRequest(MessageContext mc) {
- boolean result = false;
- try {
- System.out.println("*** MessageHandler: handling message; initialized with <original>=" + original + ", <modified>=" + modified);
- SOAPMessage message = ((SOAPMessageContext) mc).getMessage();
- String value = message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().getNodeValue();
- if ((null != value) && value.equals(original)) {
- message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().setNodeValue(modified);
- System.out.println("*** Replacing: " + original + " with: " + modified);
- }
- else {
- System.out.println("*** Not replacing: " + original);
- }
- result = true;
- }
- catch (Throwable t) {
- t.printStackTrace();
- }
- return result;
- }
-
- public boolean handleResponse(MessageContext mc) {
- return true;
- }
-
- public boolean handleFault(MessageContext mc) {
- return true;
- }
-}
+package org.apache.beehive.sample;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.xml.namespace.QName;
+
+import javax.xml.rpc.handler.Handler;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+
+import javax.xml.soap.SOAPMessage;
+
+public class MessageHandler implements Handler {
+
+ private static final String ORIGINAL = "original";
+ private static final String MODIFIED = "ORIGINAL";
+
+ private HandlerInfo info;
+ private String modified;
+ private String original;
+
+ public void init(HandlerInfo handlerInfo) {
+
+ info = handlerInfo;
+
+ original = (String) info.getHandlerConfig().get("original");
+ if (null == original || 0 == original.length()) {
+ original = ORIGINAL;
+ }
+
+ modified = (String) info.getHandlerConfig().get("modified");
+ if (null == modified || 0 == modified.length()) {
+ modified = MODIFIED;
+ }
+ }
+
+ public void destroy() {
+ // empty
+ }
+
+ public QName[] getHeaders() {
+ return info.getHeaders();
+ }
+
+ public boolean handleRequest(MessageContext mc) {
+ boolean result = false;
+ try {
+ System.out.println("*** MessageHandler: handling message; initialized with <original>=" + original + ", <modified>=" + modified);
+ SOAPMessage message = ((SOAPMessageContext) mc).getMessage();
+ String value = message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().getNodeValue();
+ if ((null != value) && value.equals(original)) {
+ message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().setNodeValue(modified);
+ System.out.println("*** Replacing: " + original + " with: " + modified);
+ }
+ else {
+ System.out.println("*** Not replacing: " + original);
+ }
+ result = true;
+ }
+ catch (Throwable t) {
+ t.printStackTrace();
+ }
+ return result;
+ }
+
+ public boolean handleResponse(MessageContext mc) {
+ return true;
+ }
+
+ public boolean handleFault(MessageContext mc) {
+ return true;
+ }
+}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Phone.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Phone.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Phone.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/Phone.java Fri May 13 16:30:30 2005
@@ -1,46 +1,46 @@
-package org.apache.beehive.sample;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-public class Phone implements java.io.Serializable {
-
- private static final long serialVersionUID = 1L;
-
- private int areaCode;
- private String exchange;
- private String number;
-
- public Phone() { super(); }
-
- public Phone(int areaCode, String exchange, String number) {
-
- this.areaCode = areaCode;
- this.exchange = exchange;
- this.number = number;
- }
-
- public int getAreaCode() { return areaCode; }
- public void setAreaCode(int areaCode) { this.areaCode = areaCode; }
-
- public String getExchange() { return exchange; }
- public void setExchange(String exchange) { this.exchange = exchange; }
-
- public String getNumber() { return number; }
- public void setNumber(String number) { this.number = number; }
-}
+package org.apache.beehive.sample;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class Phone implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private int areaCode;
+ private String exchange;
+ private String number;
+
+ public Phone() { super(); }
+
+ public Phone(int areaCode, String exchange, String number) {
+
+ this.areaCode = areaCode;
+ this.exchange = exchange;
+ this.number = number;
+ }
+
+ public int getAreaCode() { return areaCode; }
+ public void setAreaCode(int areaCode) { this.areaCode = areaCode; }
+
+ public String getExchange() { return exchange; }
+ public void setExchange(String exchange) { this.exchange = exchange; }
+
+ public String getNumber() { return number; }
+ public void setNumber(String number) { this.number = number; }
+}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/StateType.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/StateType.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/StateType.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/org/apache/beehive/sample/StateType.java Fri May 13 16:30:30 2005
@@ -1,33 +1,33 @@
-package org.apache.beehive.sample;
-
-/*
- * Copyright 2004 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$
- */
-
-public class StateType implements java.io.Serializable {
-
- private static final long serialVersionUID = 1L;
-
- private String state;
-
- public StateType() { }
-
- public StateType(String state) { this.state = state; }
-
- public String getState() { return state; }
- public void setState(String state) { this.state = state; }
-}
+package org.apache.beehive.sample;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class StateType implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private String state;
+
+ public StateType() { }
+
+ public StateType(String state) { this.state = state; }
+
+ public String getState() { return state; }
+ public void setState(String state) { this.state = state; }
+}
Modified: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/header/ServiceSignHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/header/ServiceSignHandler.java?rev=170107&r1=170106&r2=170107&view=diff
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/header/ServiceSignHandler.java (original)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/header/ServiceSignHandler.java Fri May 13 16:30:30 2005
@@ -1,57 +1,57 @@
-package web.header;
-
-/*
- * Copyright 2004, 2005 The Apache Software Foundation
- *
- * Licensed 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.
- *
- * $Header:$Factory
- */
-
-/*
- * Note: This sample was developed based on the example in the article:
- * http://www-128.ibm.com/developerworks/webservices/library/ws-tip-extend/
- */
-
-import javax.xml.rpc.handler.MessageContext;
-import javax.xml.rpc.handler.soap.SOAPMessageContext;
-
-/**
- * Service-side SignHandler. Verify signature on incoming request messages, sign
- * outgoing response messages,
- */
-public class ServiceSignHandler extends SignHandler {
- /**
- * Check incoming request message.
- */
- public boolean handleRequest(MessageContext mc) {
- checkIncoming((SOAPMessageContext) mc);
- return true;
- }
-
- /**
- * Sign outgoing request message.
- */
- public boolean handleResponse(MessageContext mc) {
- signOutgoing((SOAPMessageContext) mc);
- return true;
- }
-
- /**
- * Sign outgoing request message.
- */
- public boolean handleFault(MessageContext mc) {
- signOutgoing((SOAPMessageContext) mc);
- return true;
- }
-}
+package web.header;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+/*
+ * Note: This sample was developed based on the example in the article:
+ * http://www-128.ibm.com/developerworks/webservices/library/ws-tip-extend/
+ */
+
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+
+/**
+ * Service-side SignHandler. Verify signature on incoming request messages, sign
+ * outgoing response messages,
+ */
+public class ServiceSignHandler extends SignHandler {
+ /**
+ * Check incoming request message.
+ */
+ public boolean handleRequest(MessageContext mc) {
+ checkIncoming((SOAPMessageContext) mc);
+ return true;
+ }
+
+ /**
+ * Sign outgoing request message.
+ */
+ public boolean handleResponse(MessageContext mc) {
+ signOutgoing((SOAPMessageContext) mc);
+ return true;
+ }
+
+ /**
+ * Sign outgoing request message.
+ */
+ public boolean handleFault(MessageContext mc) {
+ signOutgoing((SOAPMessageContext) mc);
+ return true;
+ }
+}