Error importing wsdl wizard

0
Hi, Im trying to import a WSDL in the import webservice wizard, but i get an error. 'MIOS_SubmitNotifications is an operation with a primitive return type'  Its about the following operation: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="MIOS_SubmitNotifications" targetNamespace="http://nsc.nl/xi/nsx" xmlns:p2="http://ns-x.nl/notifications" xmlns:p1="http://nsc.nl/xi/nsx" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:documentation/> <wsp:UsingPolicy wsdl:required="true"/> <wsp:Policy wsu:Id="OP_MIOS_SubmitNotifications"/> <wsdl:types> <xsd:schema targetNamespace="http://ns-x.nl/notifications" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://ns-x.nl/notifications" xmlns:q1="http://schemas.datacontract.org/2004/07/SubmitNotifications"> <xsd:import namespace="http://schemas.datacontract.org/2004/07/SubmitNotifications"/> <xsd:element name="SubmitNotificationsResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="SubmitNotificationsResult" type="q1:SubmitResult" minOccurs="0" form="qualified" nillable="true"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="SubmitNotifications"> <xsd:complexType> <xsd:sequence> <xsd:element name="notifications" type="q1:ArrayOfNotification" minOccurs="0" form="qualified" nillable="true"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> <xsd:schema targetNamespace="http://schemas.datacontract.org/2004/07/SubmitNotifications" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.datacontract.org/2004/07/SubmitNotifications"> <xsd:complexType name="ArrayOfNotification"> <xsd:sequence> <xsd:element name="Notification" type="Notification" minOccurs="0" maxOccurs="unbounded" form="qualified" nillable="true"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ArrayOfParameter"> <xsd:sequence> <xsd:element name="Parameter" type="Parameter" minOccurs="0" maxOccurs="unbounded" form="qualified" nillable="true"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Parameter"> <xsd:sequence> <xsd:element name="Name" type="xsd:string" form="qualified" nillable="true"/> <xsd:element name="Value" type="xsd:string" form="qualified" nillable="true"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="SubmitResult"> <xsd:sequence> <xsd:element name="Result" type="xsd:int" form="qualified"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Notification"> <xsd:sequence> <xsd:element name="MessageId" type="xsd:string" form="qualified" nillable="true"/> <xsd:element name="NotificationSchedule" type="xsd:dateTime" minOccurs="0" form="qualified"/> <xsd:element name="NotificationType" type="xsd:string" form="qualified" nillable="true"/> <xsd:element name="Parameters" type="ArrayOfParameter" minOccurs="0" form="qualified" nillable="true"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="p2.INotificationService_SubmitNotifications_InputMessage"> <wsdl:documentation/> <wsdl:part name="parameters" element="p2:SubmitNotifications"/> </wsdl:message> <wsdl:message name="p2.INotificationService_SubmitNotifications_OutputMessage"> <wsdl:documentation/> <wsdl:part name="parameters" element="p2:SubmitNotificationsResponse"/> </wsdl:message> <wsdl:portType name="MIOS_SubmitNotifications"> <wsdl:documentation/> <wsdl:operation name="MIOS_SubmitNotifications"> <wsdl:documentation/> <wsp:Policy> <wsp:PolicyReference URI="#OP_MIOS_SubmitNotifications"/> </wsp:Policy> <wsdl:input message="p1:p2.INotificationService_SubmitNotifications_InputMessage"/> <wsdl:output message="p1:p2.INotificationService_SubmitNotifications_OutputMessage"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="MIOS_SubmitNotificationsBinding" type="p1:MIOS_SubmitNotifications"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> <wsdl:operation name="MIOS_SubmitNotifications"> <soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> <wsdl:input> <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:input> <wsdl:output> <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="MIOS_SubmitNotificationsService"> <wsdl:port name="HTTP_Port" binding="p1:MIOS_SubmitNotificationsBinding"> <soap:address location="http://sw025v445.dev.sp01.nl:80/XISOAPAdapter/MessageServlet?senderParty=&amp;senderService=DEV_NSX&amp;receiverParty=&amp;receiverService=&amp;interface=MIOS_SubmitNotifications&amp;interfaceNamespace=http%3A%2F%2Fnsc.nl%2Fxi%2Fnsx" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:port> <wsdl:port name="HTTPS_Port" binding="p1:MIOS_SubmitNotificationsBinding"> <soap:address location="https://sw025v445.dev.sp01.nl:50001/XISOAPAdapter/MessageServlet?senderParty=&amp;senderService=DEV_NSX&amp;receiverParty=&amp;receiverService=&amp;interface=MIOS_SubmitNotifications&amp;interfaceNamespace=http%3A%2F%2Fnsc.nl%2Fxi%2Fnsx" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Someone knows what is wrong with this? 
asked
3 answers
0

Did you include the full message?

If the full message is "Operation MIOS_SubmitNotifications  is an operation with a primitive return type. This wizard does not have support for that, but you can create mappings and web service calls manually." then it means that you can't use the wizard, but you can still use the WSDL to create a consumed web service.

answered
0

Im getting further now. 

I got now the following error: 'Cannot find the declaration of element 'not:SubmitNotifications'.'

 

The ':not' is a namespace. But this request has 2 different namespaces. How can i add this both namespaces to the Webservice? 

answered
0

The request i send from soap that is working now is: 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:not="http://ns-x.nl/notifications">
   <soapenv:Header/>
   <soapenv:Body>
      <not:SubmitNotifications>
         <SubmitNotifications>
            <!--Optional:-->
            <notifications>
               <!--Optional:-->
               <notifications>
                  <Notifcation>
                     <!--Zero or more repetitions:-->
                     <Notification>
                        <MessageId>1</MessageId>
                        <!--Optional:-->
                        <NotificationSchedule>2018-11-14T00:00:00</NotificationSchedule>
                        <NotificationType>s</NotificationType>
                        <!--Optional:-->
                        <Parameters>
                           <!--Optional:-->
                           <Paramters>
                              <Parameter>
                                 <!--Zero or more repetitions:-->
                                 <Parameter>
                                    <Name>?</Name>
                                    <Value>?</Value>
                                 </Parameter>
                              </Parameter>
                           </Paramters>
                        </Parameters>
                     </Notification>
                  </Notifcation>
               </notifications>
            </notifications>
         </SubmitNotifications>
      </not:SubmitNotifications>
   </soapenv:Body>
</soapenv:Envelope>

but the request it has to be:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:not="http://ns-x.nl/notifications" xmlns:sub="http://schemas.datacontract.org/2004/07/SubmitNotifications" xmlns:rad="http://www.radiuz.com/">
   <soapenv:Header/>
   <soapenv:Body>
            <not:SubmitNotifications>
         <not:notifications>
            <sub:Notification>
               <sub:MessageId>1</sub:MessageId>
               <sub:NotificationSchedule>2018-11-14T00:00:00</sub:NotificationSchedule>
               <sub:NotificationType>SEND_EMAIL_1069</sub:NotificationType>
               <sub:Parameters>
                  <sub:Parameter>
                    <sub:Name>Number</sub:Name>
                     <sub:Value>1642544677</sub:Value>
                  </sub:Parameter>
                  <sub:Parameter>
                     <sub:Name>EmailTemplateId</sub:Name>
                     <sub:Value>S_1069</sub:Value>
                  </sub:Parameter>
                  <sub:Parameter>
                     <sub:Name>AdditionalFee</sub:Name>
                     <sub:Value>5,00</sub:Value>
                  </sub:Parameter>
               </sub:Parameters>
            </sub:Notification>
         </not:notifications>
      </not:SubmitNotifications>
   </soapenv:Body>
</soapenv:Envelope>

 

answered