If you meet the below exception...
faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint
faultSubcode:
faultString: No endpoint
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:org.apache.axis.NoEndPointException
Solution.
- Client program update below. (Example)
make the Stub with URL and service.
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.holders.StringHolder;
import org.apache.axis.AxisFault;
import nadevsoawm.HISNACommSupplier.PRIME.ORION.ZSUS_CO_OPRM004.HISNACommSupplier_PRIME_ORION_ZSUS_CO_OPRM004_BinderStub;
import nadevsoawm.HISNACommSupplier.PRIME.ORION.ZSUS_CO_OPRM004.IN_DATA;
import nadevsoawm.HISNACommSupplier.PRIME.ORION.ZSUS_CO_OPRM004.OUTPUT;
import nadevsoawm.HISNACommSupplier.PRIME.ORION.ZSUS_CO_OPRM004.holders.OUT_DATAHolder;
public class WSClient {
public static void main(String[] args) throws MalformedURLException, ServiceException {
// TODO Auto-generated method stub
IN_DATA inData = new IN_DATA("OCOM15001");
StringHolder IFRESULT = new StringHolder();
StringHolder IFFAILMSG = new StringHolder();
OUT_DATAHolder outData = new OUT_DATAHolder();
URL url = new URL("http://nadevsoawm:5115/ws/HISNACommSupplier.PRIME.ORION:ZSUS_CO_OPRM004");
ServiceFactory serviceFactory = ServiceFactory.newInstance();
javax.xml.rpc.Service service = serviceFactory.createService(new QName("ZSUS_CO_OPRM004"));
try {
HISNACommSupplier_PRIME_ORION_ZSUS_CO_OPRM004_BinderStub stub = new HISNACommSupplier_PRIME_ORION_ZSUS_CO_OPRM004_BinderStub(url, service );
stub.ZSUS_CO_OPRM004Response(
"IF1", //IF_ID
"HMA",
"TEST", //SENDER
"TEST", //RECIVER
"", //IF_DATE
"", //IF_TIME
inData, IFRESULT, IFFAILMSG, outData);
System.out.println(inData);
OUTPUT[] outputList = outData.value.getOUTPUT();
System.out.println(outputList.length);
System.out.println(outputList[0].getAUFNR());
System.out.println(outputList[0].getFIPEX());
System.out.println(outputList[0].getTEXT1());
} catch (AxisFault e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException (0) | 2016.01.22 |
---|---|
메일발송 (0) | 2015.05.29 |
java process 옵션 검색 명령 jps (0) | 2014.04.18 |
html chart 는 google chart 가 좋네요 (0) | 2014.04.16 |
java.util.logging.Logger example (0) | 2014.04.10 |
댓글 영역