Migrate Mule 3 to Mule 4 – facing issues with SOAP Service consumption using Webservice Consumer

I have an existing Mule 3 api which is consuming a SOAP webservice

We are migrating our API from Mule 3 to Mule 4

Using Anypoint Studio - 7.16 , Mule runtime 4.5
Webservice Consumer version - 1.8.7

As stated above everything is working fine in Mule 3 .
The issue faced in Mule 4 is whenever am trying to invoke a soap operation using Consume component keep getting this error :

[04-25 21:04:21] ERROR DefaultExceptionListener
[[MuleRuntime].uber.01: [emp-int-v1].my_soap_flowFlow.BLOCKING
@4b5b089]:
******************************************************************************** Message : Error trying to acquire a new connection:null
Element : my_soap_flowFlow/processors/4 @
emp-int-v1:implementation/my_soap_flow.xml:176 (Consume) Element
DSL : <wsc:consume doc:name=”Consume”
config-ref=”Web_Service_Consumer_Config_MyTest” operation=”Create”>
wsc:message wsc:body</wsc:body> wsc:headers</wsc:headers> </wsc:message> </wsc:consume> Error type : WSC:CONNECTIVITY FlowStack : at
my_soap_flowFlow(my_soap_flowFlow/processors/4 @
emp-int-v1:implementation/my_soap_flow.xml:176 (Consume)) Payload
Type :
org.mule.runtime.core.internal.streaming.bytes.ManagedCursorStreamProvider
——————————————————————————– Root Exception stack trace: java.lang.NullPointerException at
org.mule.wsdl.parser.locator.WsdlLocator.getImportInputSource(WsdlLocator.kt:52)
at
com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:774)

Have made sure wsdl is fine by importing in SOAP UI and testing out the same operation which works fine

Here is the code for web service consumer and global config for the same

<wsc:consume doc:name="Consume" config-ref="Web_Service_Consumer_Config_MyTest" operation="Create">
            <wsc:message >
                <wsc:body ><![CDATA[#[vars.mySoapBody]]]></wsc:body>
                <wsc:headers ><![CDATA[#[vars.mySoapHeaders]]]></wsc:headers>
            </wsc:message>
        </wsc:consume>

<wsc:config name="Web_Service_Consumer_Config_MyTest" doc:name="Web Service Consumer Config"  >
        
<wsc:connection wsdlLocation="emp.wsdl" service="EmpService" port="EmpPort" 
    address="https://fictitious.cfg/services/soap" soapVersion="SOAP11">
                    <wsc:web-service-security >
                        <wsc:username-token-security-strategy username="empUser" password="empPwd" />
                    </wsc:web-service-security>
                </wsc:connection>
            </wsc:config>

I have tried to enable soap debug logs by adding below config in log4j.xml

    <AsyncLogger name="org.mule.service.http.impl.service.HttpMessageLogger" level="DEBUG"/>
    <AsyncLogger name="org.mule.service.http" level="DEBUG"/>
    <AsyncLogger name="org.mule.extension.http" level="DEBUG"/>
    <AsyncLogger name="org.apache.cxf" level="DEBUG"/>
    
    <AsyncLogger name="org.mule.service.soap" level="DEBUG"/>
    <AsyncLogger name="org.mule.extension.ws" level="DEBUG"/>

But somehow logs do not show any soap request details ….
Based on the error am wondering if the webservice consumer is not able to read/ parse wsdl ?

Note – all of this works fine in Mule 3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật