Hello. The essence of the question: I need to generate wsdl with xsd. I have the following xsd:
<element name="requestStatusDelivery"> <complexType> <sequence> <element minOccurs="0" name="msgIdExt" type="string" /> </sequence> </complexType> </element> <element name="responseStatusDelivery"> <complexType> <sequence> <element minOccurs="0" name="msgIdExt" type="string"/> <element minOccurs="0" name="statusDelivery" type="string"/> </sequence> </complexType> </element> spring-ws-servlet:
<bean id="SMS" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"> <property name="schema"> <bean id="xsd" class="org.springframework.xml.xsd.SimpleXsdSchema"> <property name="xsd" value="/WEB-INF/Sms.xsd"/> </bean> </property> <property name="portTypeName" value="SMS"/> <property name="locationUri" value="http://localhost:8080/SMS"/> </bean> If you leave everything like this, then <wsdl:operation></wsdl:operation> will not be created in wsdl. But if you register statusDeliveryRequest instead of requestStatusDelivery in xsd, and statusDeliveryResponse instead of responseStatusDelivery, then everything will be generated as it should. Please tell me how can I ignore the default suffixes or prefixes?
I can prescribe it for this bean and for this example everything will work fine.
<property name="requestSuffix" value="StatusDelivery" /> <property name="responseSuffix" value="StatusDelivery" /> But, let's say in one xsd there are several such request and response methods. Then properedya no longer help. I would like to prescribe a complete disregard of suffixes globally, for all bins.