如何从C#XML发送请求(使用字符串数组)并从Java中的wsdl服务获取响应

时间:2019-05-14 13:22:18

标签: arrays xml wsdl

我创建了基于几何网络跟踪的数据,以字符串数组的形式收集。 我想向基于Java的wsdl服务发送请求。

我可以在传递单个参数的同时获得响应。 现在以我的情况而言,使用电缆集合作为数组,需要将请求发送到wsdl服务以获取url,并应加载到webbrowser工具包中。

这是使用单个参数进行测试的。

        ServiceReference1.CreateCaseStudyResourceClient clien = new ServiceReference1.CreateCaseStudyResourceClient();
        ServiceReference1.NATOPOLOGYApplicationRequest request = new ServiceReference1.NATOPOLOGYApplicationRequest();
        ServiceReference1.NATOPOLOGYApplicationResponse res = new ServiceReference1.NATOPOLOGYApplicationResponse();

        ServiceReference1.NATOPOLOGYApplicationRequestFEEDINGPOINT feedingPint = new ServiceReference1.NATOPOLOGYApplicationRequestFEEDINGPOINT();
        ServiceReference1.NATOPOLOGYApplicationRequestFEEDINGPOINTFEED101 feedingpoint2 = new ServiceReference1.NATOPOLOGYApplicationRequestFEEDINGPOINTFEED101();

        //feedingpoint2.
        request.APPLICATIONID = "1";
        request.RoleID = "";
        request.SchemaName = "WBDEV01";
        request.SDISCOMID = "";
        request.UserID = "ankith";
        request.Version = "wb";

        String[] strAry = {"a","b","c"};
        request.MIP1510 = strAry;
        try
        {
            request.MIP1510[0] = "dtr_test";
            request.MIP2010[0] = "Ht_line_test";
            request.MIP2011[0] = "Lt_line_test";
        }catch(Exception ex)

0 个答案:

没有答案