// This class was generated by the JAXWS SI, do not edit.
/*
 * Copyright (c) 2007, 2009, Oracle and its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * $Id: SwaTestImpl2.java 62602 2011-04-21 14:51:41Z kgrucci $
 */

package com.sun.ts.tests.jaxws.wsi.w2j.rpc.literal.swatest;

import javax.xml.ws.WebServiceException;
import javax.jws.WebService;

@WebService(
    portName="SwaTestTwoPort",
    serviceName="WSIRLSwaTestService",
    targetNamespace="http://SwaTestService.org/wsdl",
    wsdlLocation="WEB-INF/wsdl/WSW2JRLSwaTestService.wsdl",
    endpointInterface="com.sun.ts.tests.jaxws.wsi.w2j.rpc.literal.swatest.SwaTest2"
)
public class SwaTestImpl2 implements SwaTest2 {
    public java.lang.String putMultipleAttachments(com.sun.ts.tests.jaxws.wsi.w2j.rpc.literal.swatest.InputRequestPut request, javax.activation.DataHandler attach1, javax.activation.DataHandler attach2)  {
	try {
	    String response = "ok";
	    System.out.println("Enter putMultipleAttachments() ......");
	    if(attach1 == null) {
		System.err.println("attach1 is null (unexpected)");
		response = "not ok";
	    }
	    if(attach2 == null) {
		System.err.println("attach2 is null (unexpected)");
		response = "not ok";
	    }
	    System.out.println("Leave putMultipleAttachments() ......");
	    return response;
	} catch (Exception e) {
	    throw new WebServiceException(e.getMessage());
	}
    }

    public java.lang.String echoNoAttachments(com.sun.ts.tests.jaxws.wsi.w2j.rpc.literal.swatest.InputRequestString request)  {
	try {
	    System.out.println("Enter echoNoAttachments() ......");
	    String response = request.getMyString();
	    System.out.println("Leave echoNoAttachments() ......");
	    return response;
	} catch (Exception e) {
	    throw new WebServiceException(e.getMessage());
	}
    }
}
